CGLIB « Map « JPA Q&A





1. Mismatch CGLIB classes with table per hierarchy inheritance    forum.hibernate.org

When I fetch a "Form" object which includes a list of "Field" objects, due to lazy fetching (?), proxy objects (is this the right term) are created using CGLIB for the contained "Field" objects. The proxy object class generated is a subclass of the top class of the table per class hierarchy "Field" and cannot be cast into subclasses of the ...

2. Inheritance/PolymorphismProblem with CGLIB generated Proxies    forum.hibernate.org

Hibernate version:[3.05 and 3.1rc2] we use polymorphism in our persistent classes; we have three classes: class T class S extends T class L L has a reference that is formally typed to T. At runtime, instances of S (T's subclass) may be in L's collection of Ts. So, if Hibernate (re-)loads L's collection of Ts, it instantiates CGLIB proxies. Unfortunately, the ...

3. proxies, CGLIB enchancing, inheritance and confusion    forum.hibernate.org

cryozot wrote: Hibernate caches proxies by entity's primary key. If in some query you retrieved instance of SomeClass, where refA is initialized to lazy-loading proxy pointing to instance of class B, all other queries, that must return same instance of B, will instead return same proxy of type A. I reported same issue today on this forum: http://forum.hibernate.org/viewtopic.php?t=955817 You may workaround ...

4. Boolean mapping CGLIB error    forum.hibernate.org

private boolean afiliado; private boolean contactado; public boolean isAfiliado() { return afiliado; } public boolean isContactado() { return contactado; } public void setAfiliado(boolean afiliado) { ...

5. CGlib in parent/child delete operation    forum.hibernate.org

Author Message Cue Post subject: CGlib in parent/child delete operation Posted: Sun Jan 21, 2007 1:28 pm Regular Joined: Tue May 04, 2004 6:15 am Posts: 51 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.2.1GA Mapping documents: Code: