Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic