- Open source object/relational mapping tool for Java
- Provides persistent classes and persistent logic
- In addition to mapping, provides data query and retrieval facilities
- Steps: Create a POJO, create an XML mapping file for object to table columns, use Hibernate APIs to load/store the persistent objects
- hibernate.cfg.xml file keeps properties such as, database connection string and password, database dialect, and mapping files locations
- Mapping files of the pattern *.hbm keeps mapping between a specific Java class and one or more database tables
- Commonly used Hibernate classes:
- org.hibernate.SessionFactory, org.hibernate.Session, org.hibernate.Transaction
- A list of Hibernate APIs
- Class to class mapping can be done using associations. Associations can be one to many, many to one, many to many. (unidirectional and bidirectional)
- All bi-directional associations need one side as inverse. In an association (bidirectional) the many side needs to be the inverse
From: http://sitestree.com/?p=5077
Categories:Java Short Notes
Tags:
Post Data:2012-01-03 04:34:35
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada
