• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Error in reverse engineering from an existing database

 
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All!

I am using hibernate tools in Eclipse helios to reverse engineer hibernate mappings and POJOs from an existing DB2 express - C database.
However, using the same configuration, I am unable to do that via ant build .
As soon as I invoke an exporter, the connection is forcibly closed.



My build file contains the following :

My intent is to generate JPA annotation based entities ,but so far, nothing is working without the wizard. Should I use a custom <hbmtemplate> task instead?
If anyone has gone through a similar experience, please share.
 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Update : This error has been resolved after I had specified autocommit to true in my hibernate.properties file.

hibernate.connection.autocommit=true

Still, the setup is unable to generate JPA entities from the database as <jpaconfiguration> configuration cannot co-exist with the <jdbcconfiguration> configuration.
 
For my next trick, I'll need the help of a tiny ad ...
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic