Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Aditi Msc   on Feb 19 In Java Category.

  
Question Answered By: Coleman Smith   on Feb 19

For each table, you may add two more attributes named "entity" and "schema". entity is defined to prevent collision between entities with the same name in different schemas, and schema is your real database  namespace. Then you use the entity name in your HQL. We have tested this method with MySQL. On saturday, when I am back at work, I will be able to send you hbm.xml files if you need more details, but I think searching those two attributes will guide you to the answer.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Using Hibernate to connect to more than one db Or get search suggestion and latest updates.


Tagged: