On Thu, Feb 24, 2011 at 12:59 PM, Robert Zeigler <[email protected]> wrote: >> * Cayenne objects are NOT proxied. Cayenne objects are OO >> (inheritance) while Hibernate objects are POJOs (which are then >> proxied). > > :) Note that this actually means that using hibernate /does/ involve > inheritance, but it inverts the inheritance structure (hibernate proxies are > ultimately subclasses of your POJO's). But hibernate proxies can result in > some really hard to understand exceptions. ;) >
I agree completely with you here, Robert. I'm tried to explain to people many times about the inverted inheritance and proxied nature of Hibernate (often without a lot of success). It makes it hard to debug (especially stepping through with a debugger). mrg
