• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

 
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .....
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://docs.jboss.org/tools/3.1.0.CR2/en/hibernatetools/html/index.html
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic