• Post Reply Bookmark Topic Watch Topic
  • New Topic

Auto generation of Hibernate mappings from DB details

 
Ajeeth Kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to auto-create the hibernate mappings for a big DB using some tools. I am using "WorkShop for WebLogic" (similar to or built on Eclipse).

I am facing some problems, like the following:

1) I am not getting all the associations between the tables defined in the HBM XML files and POJOs(I am selecting some 30-40 tables out of the whole lot)
2) The Pojo classes and hbm.xml files seem to have duplicate variables and methods, like the one shown below.
private java.sql.Timestamp BeginTime;
private java.sql.Timestamp BeginTime;

I find this difficult to handle as I have almost 10 duplications for each variable and method in each class.
I tried to use Quick Fix, but Workshop sucks it doesnt do anything .
Is there any tool that would do the job for me, better than "DB Xplorer" ?
 
Ajeeth Kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys.. any suggestion??
 
permaculture is giving a gift to your future self. After reading this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!