Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Reverse Engineering: From Tables to JPA entities

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic