File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes store the data in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "store the data in hibernate" Watch "store the data in hibernate" New topic

store the data in hibernate

ashok sangi

Joined: Mar 23, 2011
Posts: 24
hi all

how to store the same objects in to the two different data bases in hibernate please any body can help me

for this i have write

1.two configuration files
2.two mapping files
3.create the two sessions

so my intention is other than this is there any solution for the above problem please any help me
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3902

Yes you need separate components/files as you mentioned if you use multiple databases.

[How to ask questions] [Twitter]
I agree. Here's the link:
subject: store the data in hibernate
It's not a secret anymore!