- Introduction
We will have the following components in our database application:
- Student.java – A JSF managed bean class.
- DatabaseOperation.java – This class is used to perform the Db related operations using hibernate framework.
- HibernateUtil.java – This class helps in creating the SessionFactory object from the hibernate configuration file.
- Student.hbm.xml – A mapping file for the persistent or the POJO class.
- hibernate.cfg.xml – Hibernate configuration file containing database related information.
- hibernate.reveng.xml – A mapping file to specify the type of mappings and table filtering.
1.1 Hibernate