aspose file tools*
The moose likes Object Relational Mapping and the fly likes Tired of hibernate eclipse plugins.... any better way ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Tired of hibernate eclipse plugins.... any better way ?" Watch "Tired of hibernate eclipse plugins.... any better way ?" New topic
Author

Tired of hibernate eclipse plugins.... any better way ?

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Hi guys : I'm REALLY getting tired or relying on version specific eclipse plugins to do EVERYTHING for me.
Id like to try reverse engineering a hibernate schema from scatch.... that is, reverse engineering a database schema using hibernate by just writing my OWN java class, that uses the hibernate reverse engineering API.

Where do I start ? Does anyone have an example of the low level java API for reverse engineering ?

Or alternatively, do any of you out there know how to setup a maven project that reverse engineer's hibernate mapping code for a database connection ?

Thanks .....
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I can't really see why you'd want to use the reverse engineering API do to something the tools already do for you; there's no need to use the Eclipse plugin, use the Ant task. What specific problem are you trying to solve?
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Hi Again Dave : I'd like to run it as an ant task, but can't find any documentation and ---- as you Im sure by now can tell .... Im a little new to the whole ant / maven way of doing things. I guess you kind of answered my question. Is there good documentation on how to run hibernate reverse engineering as an ant task somewhere ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

http://docs.jboss.org/tools/3.1.0.CR2/en/hibernatetools/html/index.html
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Yes I actually really think this is a good tutorial, I used it to setup my current project. But it is slanted towards the eclipse plugin, rather than a lower level pure java or ant based strategy.... . Im looking for a strategy that is ide independent.
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Interesting. I noticed that although NetBeans supports less sophisticated refactoring, and less features than eclipse, I agree that the ones it does support are much cleaner, such as maven. I might take another look at it.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

jay vas wrote:But it is slanted towards the eclipse plugin, rather than a lower level pure java or ant based strategy.

What? There's an entire section dedicated to the Ant tools, and another about controlling the reveng.

http://docs.jboss.org/tools/3.1.0.CR2/en/hibernatetools/html/ant.html
http://docs.jboss.org/tools/3.1.0.CR2/en/hibernatetools/html/reverseengineering.html
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
I will check the ant section out..... Thanks!!!

I tried hiberclipse as well as hibernate tools And it appears that hibernate tools is much easier to use, once you finally have a console configuration and cfg.XML file that works perfectly. The problem is that you get virtually no error messages , donuts difficult totrace the problems in a reverse engineering workflow. This is true for both hibernate tools and hiberclipse .... And alot of eclipse plugins for that matter.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tired of hibernate eclipse plugins.... any better way ?