Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in reverse engineering from an existing database

 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic