Hibernate

1. First create project in eclipse(either java project/webproject)
2. configure the required jar for sql or mysql or any data base
2. right click on project and Add hibernate capabilities
3. then configure the hibenate configureation file

4. create the POJO code that will map the table column names eg.




5. create the mapping xml called authenticate.hbm.xml



6. create main class to run hibernate as standalone






7. run the application as like normal standalone java class

Comments

Popular posts from this blog

Spring MVC with Sqlite sample

Struts Tutorial Page