This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reverse Engineering: From Tables to JPA entities

 
Rafael De la Guetto
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I need to generate a business application model as JPA entities from the raw tables of a given Data Base. I know that the E/R model is more poor than the OO model, but I assume the loose of information.
What I need to know is if somebody knows any tool or framework that offers an API that fulfill this functionality to be directly invoked by Java.
I am looking for something similar to "Hibernate Toos". The problem is that Hibernate Tools is designed to be used from Ant or as an Eclipse Plugin, but i need to invoke the functionality directly from Java through an API.

I hope somebody can help me.
Thank you very much.
Bye!
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..

Have you tried Netbeans?..
In netbeans we could Reverse Engineering from tables in Database converted automatically to JPA Entities..

what kind of application you want to build? is it Web based or desktop based?..

Thanks..
 
Rafael De la Guetto
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Well, i could use Netbeans o Hibernate tools, but these offer me a Graphical way to do the reverse engeneering. I need a framework or tool that lets me throught a java API, to control the process from a java program.

What i am trying is to do a framework able to generate the domain model of any application from the tables of a given Data Base...

Thank you for your response.
Bye!
 
rajesh jadhav
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See http://www.reversejava.com for a dynamic reverse engineering application which generates UML Sequence diagram and view of Participating Class diagram
from any Java Application at runtime
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OpenJPA contains a command-line app that does DB reverse engineering: http://openjpa.apache.org/builds/1.2.2/apache-openjpa-1.2.2/docs/manual/manual.html#ref_guide_integration_revmappingtool OpenJPA being open source, you could adapt it to your purposes if necessary.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic