Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Annotations vs HBMS  RSS feed

 
vShyam Sundar
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3973
24
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vShyam Sundar
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for your info.
What is vendor specific annotations?


Thanks,
Shyam.
 
Vijitha Kumara
Bartender
Posts: 3973
24
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is vendor specific annotations?

They are only provided by each vendors for non-standardized additional/advanced proprietary features.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!