• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate Tools: Reverse engineering behavior . . .

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After years of JDBC, I've finally been given a chance to take the Hibernate plunge. We have a legacy database that resides on an AS/400 for which I'm generating entity and dao code using the Hibernate Tools plug-in for Eclipse. The following is a snippet of a Subscriber.reveng.xml file I've built:


NOTE: In the xml above, <ttable> is intentionally spelled with two Ts to prevent it from being interpreted as html. In the actual reveng.xml file, it's spelled correctly.

Among others, I used the reverse engineering feature of Hibernate Tools as part of my pro-Hibernate argument. But to my disappointment, the customizations I've added to my Subscriber.reveng.xml file seem to have no effect whatsoever on the source code produced via Hibernate Tools & Eclipse. The class specified in ttable is ignored so that the entity classes produced are Customerdb, CustomerdbHome, and CustomerdbId (with every single field in the table defined as part of a composite key). The customizations I've added for the columns -> properties and the primary key definition are also completely ignored. I realize that I can refactor the names, etc., but according to Java Persistence with Hibernate this should work.

What am I missing???

thanks in advance,
dgg
 
Dallas Gimpel
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Happened to come across this today . . . I had also posted my question to the Hibernate forum where it was eventually answered (thanks again, Max) so I thought I'd post a link to the resolution in case anyone else has a similar problem.
dgg
 
reply
    Bookmark Topic Watch Topic
  • New Topic