Hi,
I'm kind of new to Hibernate and we've decided to migrate our current application by using Hibernate as the persistence layer. This will involve the changes of both entity classes and database schema. In order to make the transition smooth, I'd like to do it in two steps:
1. Define entity classes using annotions.
2. Change the underlying database schema accordingly.
Here is my question:
I know that the entity classes are mapped to the database tables automatically by Hibernate or whatever persistence provider, is there a way for me to manually map entity to my own database schema, which in our case is our current database schema? This will allow us to redefine all entity classes first, verify to see if it works with the current database schema, and then change the database schema to the new one.
Any help is highly appreciated.
Thanks,
Weijun
|