aspose file tools
The moose likes Other Application Frameworks and the fly likes Copy Data From One Database to other using hibernate ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Copy Data From One Database to other using hibernate ?" Watch "Copy Data From One Database to other using hibernate ?" New topic
Author

Copy Data From One Database to other using hibernate ?

Jayaraj Jaganathan
Ranch Hand

Joined: Jun 29, 2009
Posts: 68
DDL and data are in mysql database .

we need to migrate to hsqldb.
we are having correct hbm files.

we have successful created the DDL with the help of

<property name="hibernate.hbm2ddl.auto">create</property>


now we need data. so i planned to write a event
say when there is a load in mysql it will save it in hsqldb database.

but i get "org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions"

please help me how to solve this problem.



 
 
subject: Copy Data From One Database to other using hibernate ?
 
Threads others viewed
query.list() and query.uniqueResult() in hibernate return null
Simple Hibernate Example That Works
tangled up with session management 101
Hibernte Error
Hibernate Exception: Could not insert and JDBC Rollback failed..
jQuery in Action, 2nd edition