Spring Hibernate Integration Sybase

Spring Hibernate Integration Sybase

Spring Hibernate Integration Sybase Spring with Hibernate is good combination of building enterprise applicaiton where Spring will handle all application level responsibility and Hibernate will interact with the database. In this tutorial I will be using Spring 4.1.5.RELEASE which is … Continue reading

Add hbm file hibernate configuration file

Add hbm file hibernate configuration file

Add hbm file hibernate configuration file If you want to add newly create *.hbm file to your hibernate.cfg.xml file please use sample tag for it. Here Person.hbm.xml is file name which is inside com/javahonk/model folder

Sample hibernate cfg xml file

Sample hibernate cfg xml file

Sample hibernate cfg xml file For reference how to create hibernate.cfg.xml file you could use below sample file where it includes data base properties setting, show sql property and resource mapping file location setting.

Method buildSessionFactory type Configuration deprecated

Method buildSessionFactory type Configuration deprecated

Method buildSessionFactory type Configuration deprecated The method buildSessionFactory() from the type Configuration is deprecated With new version of Hibernate 4.0, 4.1, 4.2, 4.3 buildSessionFactory() is deprecated so please use below sample Utility calss to get SessionFactory: