GeeCON Prague 2014*
The moose likes Object Relational Mapping and the fly likes which Eclipse plug-in could help me to generate j2ee bean assuming have hbm file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "which Eclipse plug-in could help me to generate j2ee bean assuming have hbm file ?" Watch "which Eclipse plug-in could help me to generate j2ee bean assuming have hbm file ?" New topic
Author

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

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
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

Joined: Mar 05, 2004
Posts: 209

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

Joined: Nov 12, 2003
Posts: 67
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


Regards,<br />Venkat Dasari<br />SCJP 1.4, SCBCD.
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
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


blog - InfoQ.com
 
GeeCON Prague 2014
 
subject: which Eclipse plug-in could help me to generate j2ee bean assuming have hbm file ?