Hi,
Dynamic models seem to be fully integrated to hibernate 5, not in beta now :)
Hibernate 5 documentation (
http://docs.jboss.org/hibernate/stable/core/userguide/html_single/Hibernate_User_Guide.html#dynamic-model) mention a main update :
Quote:
A given entity has just one entity mode within a given SessionFactory. This is a change from previous versions which allowed to define multiple entity modes for an entity and to select which to load. Entity modes can now be mixed within a domain model; a dynamic entity might reference a POJO entity, and vice versa.
So : Entity A is handle by POJO mode and Entity B by MAP mode in the current Session.
My goal is to have Entity A mapped with annotation, in POJO Mod, and Entity B with hbm file in MAP mode (or better mapped at runtime by code), and to define a one2one relation between this 2 entities. I need to access Entity B from Entity A with classic getter.
I'm looking for advanced documentation & exemple about Dynamics Models in Hibernate 5 (i didn't found any) and the use of this new behaviour. Have ever used it ? Advice, Feedback ?
Thanks