Re: Object state after persist: consistent with JPA?

2009-03-12 Thread Francisco Peredo
Yes, but the thing is I already have some systems built with JPA/Hibernate, so I do need JPA compliace (maybe not full, but very close to full) Well, JPA has its own object context like feature, it is called "entityManager" the problem is that its API is poorer than Cayenne's API As I stated bef

Re: Object state after persist: consistent with JPA?

2009-03-12 Thread Francisco Peredo
c" API. > > Andrus > > On Mar 12, 2009, at 4:35 PM, Francisco Peredo wrote: > >> >> Hi! >> >> And about the state of an object after you call >> entityManager.persist(object) with Cayenne... can your offer any >> insights?...I mean in what s

Object state after persist: consistent with JPA?

2009-03-12 Thread Francisco Peredo
) Does it really need to be COMMITTED to be consistent with JPA? Or is this an abstraction leak in JPA/Hibernate ? Regards, Francisco Aristedes Maniatis wrote: > > > On 12/03/2009, at 9:04 AM, Francisco Peredo wrote: > >> Hi!I really wonder why nobody has built something like C

Re: Coming from EOF: Cayenne vs Hibernate

2009-03-11 Thread Francisco Peredo
Hi!I really wonder why nobody has built something like Cayenne on top of JPA, I mean, it should be clear that Cayenne is higher level API that offers a lot of advantages...I have another question: when using in Cayenne JPA api... after you call entityManager.persist(object)... in what state is the

Re: Coming from EOF: Cayenne vs Hibernate

2009-03-11 Thread Francisco Peredo
Nope, it does not have anything like it. JbossSeam does support nested conversations, but since the underlying ORM (Hibernate) has no support for anything like it, there is a kind of "impedance mismatch" that makes nested conversations very unusable (even the Seam experts use nested conversation o

Re: Coming from EOF: Cayenne vs Hibernate

2009-03-11 Thread Francisco Peredo
Hi! Thanks a lot for your answers Robert and Mike, Robert was right, I was looking for short term/ temporary pk that can be apparently be obtained with obj.getObjectId() for cases where the object has not been persisted in to the database. Seems like Cayenne could be a better fit for the way my

Coming from EOF: Cayenne vs Hibernate

2009-03-11 Thread Francisco Peredo
Hi! My first contact with an ORM was EOF... an ever since I have felt that nothing compares to it ;-). The thing is, I have had to work with JPA/Hibernate for a few years now... and I feel it has some weaknesses I really do not like, I am thinking about "switching to cayenne" but first i would li