Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which Eclipse plug-in could help me to generate j2ee bean assuming have hbm file ?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like hibernate. I like to design UML and then write hbm file. After that, I use Hibernate Synchronizer to generate plain java files . This solution is better for me.

Now the problem is, I have the hbm files. I want to generate J2EE session bean / Entity bean, not the plain files, which Eclipse plug-in could help me ?

I know the MiddleGen can do some bean generation. But its problem is, firstly you have to have the database tables, it is not from top to down, not from hbm file to database schema.

Let me simply my question, which Eclipse plug-in could help me to generate j2ee bean assuming I only have hbm file ?

Thanks
 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I know the MiddleGen can do some bean generation. But its problem is, firstly you have to have the database tables, it is not from top to down, not from hbm file to database schema.
]

Using middlegen u can able to create the tables using .hbm.xml file, in any database. view here
 
Venkat dasari
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI everybody,
i would like to know whether middlegen is inetegrated with eclipse or not? If yes, can i know where can i get it. Please provide some information regarding how to generate hbm files from the database schema using middlegen....

Please provide me the information.

Thanks a lot in advance....

With Regards,
Venkat Dasari
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Venkat, afaik there is no plugin available. Using Middlegen is quite easy. You just need to configure the database connection from Middlegen (you already got in the Middlegen distro a lot of samples) and start Middlegen. Afterwards you will be presented a nice drawing where you can configure some details and than... poof there you have your hbms.

./pope

ps: middlegen offers you a nice and easy experience
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic