aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate Annotations vs HBMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Annotations vs HBMS" Watch "Hibernate Annotations vs HBMS" New topic
Author

Hibernate Annotations vs HBMS

vShyam Sundar
Ranch Hand

Joined: Oct 13, 2010
Posts: 60
Hi Ranchers,

Which is the best option to start building up an application with hibernate, Either annotations or hbms. Please share your thoughts on this and pros and cons of each.

Thanks,
Shyam.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3832

It may have to do with the preference of the developers as well. But using vendor specific annotations over a config files can limit the portability of the application to a different vendor. If for example JPA annotations can be used as they are widely implemented by the vendors as it is the standard for the Java persistence.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
vShyam Sundar
Ranch Hand

Joined: Oct 13, 2010
Posts: 60
Hi,
Thanks for your info.
What is vendor specific annotations?


Thanks,
Shyam.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3832

What is vendor specific annotations?

They are only provided by each vendors for non-standardized additional/advanced proprietary features.
 
jQuery in Action, 2nd edition
 
subject: Hibernate Annotations vs HBMS