JBoss Community

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

created by Gustavo Ludwig in JBoss Tools - View the full discussion

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

 

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,

gtludwig

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community