• 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

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.
 
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic