File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 3816

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: 3816

What is vendor specific annotations?

They are only provided by each vendors for non-standardized additional/advanced proprietary features.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Hibernate Annotations vs HBMS
 
Similar Threads
Hibernate and EJB 3.0
where is the error
Idea 7 Hibernate annotations
Add constraints to table with Hibernate.
which book is good for learning hibernate