Advantages of Hibernate:
- Hibernate does not require you to map one POJO to one table. A POJO can be constructed
out of a selection of table columns, or several POJOs can be persisted into a single table. - Hibernate directly supports inheritance relationships and the various other relationships
between classes. - Hibernate persistence has no requirement for a J2EE application server or any other special
environment. It is, therefore, a much more suitable solution for stand-alone applications,
client-side application storage, and other environments in which a J2EE server is not immediately
available. - Hibernate uses POJOs that can very easily and naturally be generalized for use in other
applications. There is no direct dependency upon the Hibernate libraries, so POJOs can be put
to any use that does not require persistence; or they can be persisted using any other “POJOfriendly”
mechanism.
Hibernate presents no problems when handling serializable POJOs. - Any Java object capable of being persisted
to a database is a candidate for Hibernate persistence. Therefore, Hibernate is a natural
replacement for ad hoc solutions, or as the persistence engine for an application that has not
yet had database persistence incorporated into it. Furthermore, by choosing Hibernate persistence,
you are not tying yourself to any particular design decisions for the business objects
in your application.
COMMENTS: NONE YET FOR THIS POST
POSTED BY admin ON March 25th, 2010. PERMALINK