Hello
I am working on a web application where the server end of the application will be based upon Spring + Hibernate. For database, we have Oracle 11 and MS SQL Server 2008. In the application, some database tables are in Oracle while some are from SQL Server.
How can I configure both databases in one hibernate.cfg file? Like for example when working with EJB3, you can easily give multiple data sources using <persistence-unit> tag in the same persistence.xml file. Then they can be referred in the SessionBeans with @PersistenceContext.
Can I do the same in hibernate?
Thanks
|