I have a requirement where in I should be able to generate POJO classes and xxx.hbm.xml files of the db tables dynamically in RUN time. (i.e, I would not be able to use the Hibernate Reverse Engineering WIZARD).
So how could I incorporate the functionality of Hibernate Reverse Engineering mechanism in java code?
I would like to further simplify my question: Lets assume that you have Database credentials, Table name and Hibernate Libraries in hand.. then how would you generate the corresponding xxx.hbm.xml file and POJO class of the Table using your java code?
|