Hi everyone,
we are usig Hibernate as persistence provider under JBoss AS 5.1.0 and also in Java SE deployments. In both scenarios Hibernate scans the entity class definitions for annotations during an early initialization phase and stores the information about the entities (ORM) for the lifetime of the process.
I would be interested in a way to force Hibernate to re-read the entity definitions (ORM) at a later point in time. The reason for doing so is that we plan to have one or more entity classes that will be extended with additional persistent properties at runtime (e.g. via javassist). While we can extend entities already, Hibernate would not accept recently added properties because of its initial snapshot.
Thanks for sharing your opinions and experiences, -Rainer
|