M
M
Maks Burkov2017-02-20 23:52:23
Java
Maks Burkov, 2017-02-20 23:52:23

Using XML mapping hbm.xml vs Annotations, which is better?

When setting up hibernate functionality, there are 2 types of table mapping: (Beginner's question)
1. hbm.xml file
2.Annotations

Which one is preferred by the majority at this time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmtm, 2017-02-21
@Maks00088

the main difference is that xml is convenient because everything is in one, everything is immediately visible,
annotations are easier to arrange, but if anything, you have to get into each class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question