[jboss-user] [JBoss Tools] - how can I reverse engineer and create POJOs from an existing database?

Gustavo Ludwig do-not-reply at jboss.com
Thu Mar 7 09:09:44 EST 2013

Gustavo Ludwig [https://community.jboss.org/people/gtludwig] created the discussion

"how can I reverse engineer and create POJOs from an existing database?"

To view the discussion, visit: https://community.jboss.org/message/801327#801327

I need, as a prototype evaluation, to develop a new version of an existing application which consults an existing database that uses the MyISAM engine, hence no foreign keys. So, I hoped to create the POJOs from the database and build the new app from the bottom. Since this application can not write data into the database, HIbernate would ease querying data via HQL.

I found this wikihow on the subject: 
 http://www.wikihow.com/Generate-Hibernate-Pojo-Classes-from-DB-Tables http://www.wikihow.com/Generate-Hibernate-Pojo-Classes-from-DB-Tables

But it generated one pojo and one pojoId class for each entity. I don't know if this is right or not, but afterwards I got tangle up on my other chores and haven't been able to continue on it.

Can someone throw me some pointers and hopefully a good tutorial on the matter?

Thanks in advance,

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130307/fd3ea87e/attachment.html 

More information about the jboss-user mailing list