Shiaber Shaam
,
Ranch Hand
Mar 10, 2011 14:01:55
Is it a matter of convenience to choose between Annotations or HBM or XML. Please clarify when to choose what? Appreciate your time.
Paul Sturrock
,
Bartender
staff
Mar 11, 2011 02:10:46
Largely personal choice really. Annotations are good because your configuration is all in one place and they follow the JPA standard. XML is good because your simple Java objects are not cluttered with ORM specific annotations. Both support he same functionality.
Shiaber Shaam
,
Ranch Hand
Mar 11, 2011 10:48:32
Thanks, But, what about HBM files? when do we choose to use it?
Paul Sturrock
,
Bartender
staff
Mar 14, 2011 03:16:08
XML is good because your simple Java objects are not cluttered with ORM specific annotations
Michael Houlo
,
Ranch Hand
Mar 18, 2011 01:41:20
Shiaber Shaam wrote: Thanks, But, what about HBM files? when do we choose to use it?
Thing is : hbm files are just xml files with just a .hbm extension to highlight the fact that your xml file is an hibernate configuration file...
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com