-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to generate xxx.hbm.xml files dynamically using java
PostPosted: Mon Sep 29, 2014 2:18 am 
Newbie

Joined: Thu Sep 25, 2014 3:23 am
Posts: 1
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.