aspose file tools
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


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "store the data in hibernate" Watch "store the data in hibernate" New topic
Author

store the data in hibernate

ashok sangi
Greenhorn

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
Bartender

Joined: Mar 24, 2008
Posts: 3886
    
    5

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


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: store the data in hibernate
 
It's not a secret anymore!