Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Auto code Generation tool for entity classes

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone help me to know if there is any tools available which can create entity classes and relations by connecting to the DB. ANy help is much appreciated.

cheers
Sumatheja
 
Ranch Hand
Posts: 662
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which IDE are you using?
Also which DB are you using?
 
sumatheja dasararaju
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thanks for the reply. I am using Eclipse Helios and oracle 10g.
 
Arun Kumarr
Ranch Hand
Posts: 662
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try this eclipse plug-in - http://hibernator.sourceforge.net/
There are other eclipse plug-ins which let you to connect to database and reverse engineer from the tables.

1. http://www.hibernate.org/subprojects/tools.html
2. http://sourceforge.net/projects/hibernator/
 
sumatheja dasararaju
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Arun,
I tried using hibernate reverse engineer tool but the schema is not getting loaded and there's no clear documentation or tutorials for this.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Using Eclipse, there are several plugins to generate JPA entities from an existing database. I would add Dali to those listed by Arun.
AFAIK, these tools will produce a one-shot reverse of your database. If your need is to reverse a changing database using bottom-up strategy, you'll have to be careful to any change you add manually to the generated entities: they will be lost each time you reverse the schema.


 
Arun Kumarr
Ranch Hand
Posts: 662
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you specify the driver information, the exact URL with schema details, userId and password?
May be the userId and password which you're using to login doesn't have access to the required schema.
Can you post some screenshot and what errors are you getting?
 
sumatheja dasararaju
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
Thanks for your help. The issue was reading oracle meta info was taking a long time. Hibernate reverse engineer worked well for me.
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!