When {{EntityManager#getReference}} is called to obtain reference to an entity, currently what happens is: * If the entity is
---- h2. Original description
When using bytecode enhanced entities {{EntityManager.getReference}} does not seem to return a proxy but a fully initialized entity just like {{EntityManager.find}}. The example project comes with two maven profiles, the default activated one does enhancement. You can disable enhancement with the profile *no-enhancement* to see how it succeeds with non-enhanced entities. |
|