Hi Christian, I'm not a Hibernate expert by any stretch, but here are my high-level notes on differences between Cayenne and Hibernate:
* Cayenne doesn't have a LazyInitializationException (LIE). * Cayenne doesn't have a TransientObjectException (TOE). * Cayenne objects are NOT proxied. Cayenne objects are OO (inheritance) while Hibernate objects are POJOs (which are then proxied). * Cayenne doesn't need Spring for transaction management because of the DataContext. (Technically, Hibernate doesn't need Spring either, but Spring is quite often used to manage Hibernate.) * Cayenne doesn't need DAOs. * Cayenne has a native GUI. * Cayenne has great optimistic locking support that uses real data instead of arbitrary artifacts which are more fragile. BTW, the LIE and TOE are what caused one project here to start using Cayenne instead of Hibernate. Also, I'm not sure I'd focus as much on Cayenne vs Hibernate, but talk about the strengths of Cayenne (GUI, DataContext, Optimistic Locking, etc). mrg On Thu, Feb 24, 2011 at 6:01 AM, Christian Grobmeier <[email protected]> wrote: > Hi guys, > > as you might know, I am writing from time to time small articles for > the press. I have spoken with my mag recently and they are interested > in a new Cayenne article as I suggested. I was thinking about > comparing Hibernate to Cayenne (there is a good email thread somewhere > in the archives with inspiriation) but I am willing to listen for > other suggestions. Articles are always good marketing and probably you > have a specific topic you want to promote. Ideas? Suggestions? Let me > know. > > Cheers > Christian >
