1,105,232 Community Members

hibernate /multiple oracle schemas

Member Avatar
Samaka
Newbie Poster
2 posts since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hello,


I'm doing a simple J2EE application that will interact with a database like Oracle and you know that a database can have multiple oracle schemas and that is the problem (because I do not know how to configure hibernat with multiple schemas :( because my application can handle multiple schemas . ​​is there a way to make the configuration file hibernat dynamic and can control it with jsp page . if any of you can help me I will be very grateful and thanks in advance

good day,
Sincerely,

Member Avatar
kb18001
Newbie Poster
2 posts since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

this scenario of configuring multiple schemas is like multiple database. So you have to define the multple session factories in your application. in your application, configure multiple session factiories in hibernate.cfg.xml.

Please let us know if you need any information on this

Member Avatar
Samaka
Newbie Poster
2 posts since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

thanks for your replay , but can you explain to me I don't understand what you mean !

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: