How to create two same tables in different schema’s by using single configuration file?



How to create two same tables in different schema’s by using single configuration file?..

Answer / Kanchan Kotiya

To create two same tables in different schema's by using a single configuration file with Hibernate, you can achieve this by defining multiple 'hibernate-configuration.xml' files or by using a single 'hibernate.cfg.xml' file and setting the 'hibernate.dialect' property to specify the database dialect (including schema information) for each sessionFactory configuration.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is hibernate query object?

1 Answers  


What is scalar query in hibernate?

1 Answers  


Explain the types of hibernate instance states.

1 Answers  


What are the states in hibernate?

1 Answers  


What is hibernate entitymanagerfactory?

1 Answers  


How do you implement one to one relationship in hibernate with java annotation?

1 Answers  


What the four ORM levels are in hibernate?

1 Answers  


What is a polymorphic association?

1 Answers  


How to call stored procedure in hibernate with out parameter example?

1 Answers  


How many types of transaction are there in hibernate?

1 Answers  


What is the difference between update and merge method?

1 Answers  


What are the two types of collections in hibernate?

1 Answers  


Categories