Forums Register Login

Hiberante: Annotations Vs HBM Vs XML

+Pie Number of slices to send: Send
Is it a matter of convenience to choose between Annotations or HBM or XML. Please clarify when to choose what? Appreciate your time.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thanks, But, what about HBM files? when do we choose to use it?
+Pie Number of slices to send: Send
XML is good because your simple Java objects are not cluttered with ORM specific annotations
+Pie Number of slices to send: Send
 

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


reply
reply
This thread has been viewed 2418 times.
Similar Threads
ejb 3.0 vs spring
struts2 Vs spring mvc
Annotations vs XML
moving to hibernate annotations
Annotations vs XML
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:18:19.