HI All,
I am new to hibernate and I would to create POJO from xxx.hbm.xml file.
Is it possible? Please respond
Regards, Vikram A. Deshpande
HI All,
I am new to hibernate and I would to create POJO from xxx.hbm.xml file.
Is it possible? Please respond
Regards, Vikram A. Deshpande
See here http://onjava.com/pub/a/onjava/2005/12/14/hibernate-class-generation-with-hbm2java.html
See here for the download link for Hibernate Tools
The Hibernate Tools include an Ant Task allowing to generate Java code from mapping files (amongst other things). Check the section 4.4.2. POJO java code exporter (<hbm2java>) in the documentation.
The Hibernate3 Maven Plugin also supports this (with the hibernate3:hbm2java
goal).