Hibernate (framework): Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 3:
Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to [[SQL]] data types), but also provides data query and retrieval facilities and can significantly reduce development time otherwise spent with manual data handling in SQL and [[JDBC]].
 
Its goal is to relieve the developer from a significant amount of common data persistence-related programming tasks. Hibernate adapts to the developer's development process, whether starting from scratch or from a legacy database. Hibernate generates the SQL calls and relieves the developer from manual result set handling and object conversion, keeping the application portable to all SQL databases. Hibernate provides transparent persistence for "[[Plain Old Java Object|Plain Old Java Objects]]"; the only strict requirement for a persistent class is a no-argument constructor. (Proper behavior in some applications also requires special attention to the ''equals()'' and ''hashcode()'' methods.[http://www.hibernate.org/109.html])
 
Hibernate is typically used both in [[Swing (Java)|Swing]] applications and in [[J2EE]] applications using [[Java Servlet|servlets]] or [[EJB]] session beans.