Tech Tutorials Database
GeekArticles Java J2SE
 

Hibernate Class Generation Using hbm2java

 
Author: onjava.com
Category: J2SE
Comments (0)

Hibernate uses mapping files to express the mapping of Java classes to database tables. In a complex project, keeping mappings in sync with your Java code can be burdensome and error-prone. Fortunately, the hbm2java tool can automate this by generating POJO classes from the mapping files. John Ferguson Smart shows how to use hbm2java with Ant and Maven, and how to customize the behavior of the generated classes.

Read More...




Sponsored Links




Read Next: Using Global/Distributed Transactions in Java/JDBC with Oracle Real Application Clusters



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe