• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Copy Data From One Database to other using hibernate ?

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.



 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic