Re: Cayenne vs Hibernate Comparison

2010-09-29 Thread Robert Zeigler
Indeed I think Borut continued from the old thread with a mind to post his observations on cayenne vs. hibernate, eg, integration with tapestry5, ease of development, etc. with his new project, latest code, etc. Those observations would be appropriate under the existing thread and existing s

Re: Cayenne vs Hibernate Comparison

2010-09-29 Thread Mike Kienenberger
Let me recommend a new thread with a more appropriate subject. I doubt many people expect questions about t5cayenne in a thread about Hibernate. On Wed, Sep 29, 2010 at 9:39 AM, Borut Bolčina wrote: > Hi Robert (and others), > > I am starting one fresh project and wanted to test-drive t5cayenne.

Re: Cayenne vs Hibernate Comparison

2010-09-29 Thread Robert Zeigler
Ok, so, t5c doesn't depend on resin-hessian directly; cayenne-rop does. Since I've done cayenne dev work, I already had the dependency. Are you using tapestry-cayenne-server, or tapestry-cayenne-client? server shouldn't need the dependency at all; if it's complaining about it, let me know and

Re: Cayenne vs Hibernate Comparison

2010-09-29 Thread Borut Bolčina
This is what I got, but mind I am behind company nexus - I'll try at home with clean local repo. Missing: -- 1) com.caucho:resin-hessian:jar:3.1.6 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId

Re: Cayenne vs Hibernate Comparison

2010-09-29 Thread Robert Zeigler
Hm. Strange.. I work on it frequently, and compile it fine w/out that dependency? I'll check into this. Robert On Sep 29, 2010, at 9/298:39 AM , Borut Bolčina wrote: > Hi Robert (and others), > > I am starting one fresh project and wanted to test-drive t5cayenne. For > trunk sources to compi

Re: Cayenne vs Hibernate Comparison

2010-09-29 Thread Borut Bolčina
Hi Robert (and others), I am starting one fresh project and wanted to test-drive t5cayenne. For trunk sources to compile you have to add caucho http://caucho.com/m2 in the parent POM. Now lets take this baby for a spin :-) -Borut 2010/9/6 Robert Zeigler

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Marek Stanisław Wawrzyczny
Hi, It's been a while since I've used Cayenne and so far my dealings with it have been based around dabbling with code that's being handled by more competent people. ;) Having said that, I've used Hibernate for about 4-5 years and have some experience with it so here's my 2c. Lazy initialisati

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Joe Baldwin
Michael, Dude, you really have to start a cogent advertising campaign to promote Cayenne! These differences you point out (along with what I understand to be a deficiency in faulting behavior over the lifetime of a data object), are not insignificant. (I do believe that they are not widely un

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Joe Baldwin
Robert, Thanks again for your insight (and mapping some of the technical terms). Just as a random test of current faulting behavior I googled more on Hibernate and found: http://bwinterberg.blogspot.com/2009/08/how-to-eagerly-fetch-associations-with.html It appears that the Gavin-lazy

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Borut Bolčina
2010/9/6 Robert Zeigler > > On Sep 6, 2010, at 9/61:47 PM , Borut Bolčina wrote: > > > Hello Joe, > > > > I just recently began two projects based on Hibernate (and Tapestry 5), > so I > > have limited knowledge to compare, but some of the differences > immediately > > showed up: > > > > 1.Code L

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Michael Gentry
The Hibernate Session is tied to a database connection. A Cayenne DataContext requests a connection from the DB connection pool when you commitChanges() or performQuery() and then releases it when done. Hibernate therefore has issues in a web application where you don't know how many request/respo

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Robert Zeigler
I don't think you're misunderstanding. Their implementation causes me (and countless others) constant headaches. HibernateSession is the closest thing in Hibernate to the Cayenne ObjectContext (DataContext). But they aren't perfectly aligned. A session is certainly closer in sensibilities to a

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Robert Zeigler
On Sep 6, 2010, at 9/61:47 PM , Borut Bolčina wrote: > Hello Joe, > > I just recently began two projects based on Hibernate (and Tapestry 5), so I > have limited knowledge to compare, but some of the differences immediately > showed up: > > 1.Code Life cycle > If you have the luxury to start a

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Joe Baldwin
Robert, > And basically, that's it in a nutshell. The thread is discussing fetching a > lazy relationship after the session has closed. If that were the /only/ > "fringe case" of lazy relationship navigation in hibernate, it would probably > be tolerable. But it turns out, it's /not/ the onl

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Borut Bolčina
Hello Joe, I just recently began two projects based on Hibernate (and Tapestry 5), so I have limited knowledge to compare, but some of the differences immediately showed up: 1.Code Life cycle If you have the luxury to start a project with no database schema, then in Hibernate you can start with P

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Mike Kienenberger
On Mon, Sep 6, 2010 at 2:02 PM, Robert Zeigler wrote: > > > RE ObjectContext vs Session > > I may be mixed up but it sounds like the ObjectContext is similar in > concept to EOF. It sounds like you are saying that among other things the > Hibernate-Session makes simple transactional tasks much mo

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Robert Zeigler
On Sep 6, 2010, at 9/611:16 AM , Joe Baldwin wrote: > Robert, > > All I can say is "wow", thanks for the insights. This is especially > important because you use both frameworks. > > Please let me ask some more questions. (Note: as I said, I was initially > attracted to Cayenne because it h

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Joe Baldwin
Robert, All I can say is "wow", thanks for the insights. This is especially important because you use both frameworks. Please let me ask some more questions. (Note: as I said, I was initially attracted to Cayenne because it had familiar design patterns to EOF, which I thought was fairly matu

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Joe Baldwin
Michael, (IMHO) Your anecdote reveals a not-unfamiliar trend. (And with no ill-will towards Hibernate) ... it seems that Hibernate was embraced by project managers because they saw a lot of resumes with Hibernate, and programmers learned Hibernate because a lot of Project Managers asked for

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Robert Zeigler
Hi Joe, First, this e-mail wound up a lot longer than I intended, apologies! The short version is: having used both a fair bit, I prefer cayenne, but they both have strengths and weaknesses. Most of this e-mail details what I view as weaknesses in Hibernate. :) On to the long version! I stil

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Theresa Stewart
Hi. I am very interested in having a concrete list of technical reasons developers prefer Cayene. I have worked with Cayene only so I have no real insight into the issues that caused the developers to revolt. A table perhaps that all could share. Perhaps one that developers where you work

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Michael Gentry
Hi Joe, I don't have a Cayenne vs Hibernate comparison, but I can tell you a little about how things have shifted a bit where I work. Hibernate was the official ORM for non-WebObjects projects, which use EOF, of course. (We have a lot of legacy WO projects to maintain.) The WO people were much m

Re: Cayenne vs Hibernate Comparison

2010-09-06 Thread Andrus Adamchik
There's been discussions on this list, but I haven't seen a full systematic comparison. When people ask me about this I usually frame this discussion as "what's unique about Cayenne", as I am not a Hibernate user and don't know it fine details. As I mentioned in the 3.0 announcement blog: ht