15,000 Jobs Available in:
Java, ASP, C#, PHP, SQL, SAP, MySQL and many more.
- Class Quick -
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.



This message was edited 1 time. Last update was at by Jayaraj Jaganathan

 
 
subject: Copy Data From One Database to other using hibernate ?
 
MyEclipse, The Clear Choice