RE: Cayenne Transactions

2011-09-14 Thread Durchholz, Joachim
On 14/09/11 9:15 PM, Durchholz, Joachim wrote: >> dropping down to native SQL, > > Moving to SQL will not be one of the changes you'll need to make. Ah, I see I was being unclear. I meant the places where the program drops down to raw SQL. E.g. for importing data from other databases where the a

Re: Cayenne Transactions

2011-09-14 Thread Aristedes Maniatis
On 14/09/11 9:15 PM, Durchholz, Joachim wrote: But getting rid of HQL, dropping down to native SQL, and changing all the Hibernate types to Cayenne types could require a lot of rewriting that don't improve the project in themselves; also, I do have some trepidation that I'll need to rework par

RE: Cayenne Transactions

2011-09-14 Thread Durchholz, Joachim
> I think you misunderstood - there are 1..1 relationships in Cayenne of > course. Phew. > There's no one to one correspondence between Cayenne and Hibernate features > :-) Phew :-))) (Some of Hibernate's features are massive misfeatures IMNSHO.) Re my own status, I was forced to shelve the

Re: Cayenne Transactions

2011-09-14 Thread Andrus Adamchik
On Sep 14, 2011, at 12:18 PM, Durchholz, Joachim wrote: >> if you are looking for 1..1 correspondence, there won't be one > > Oh. That's one difference I missed. > > We do have a one-to-one relationship, with one end optional. > How does one deal with that in Cayenne? I think you misunderstood

RE: Cayenne Transactions

2011-09-14 Thread Durchholz, Joachim
> if you are looking for 1..1 correspondence, there won't be one Oh. That's one difference I missed. We do have a one-to-one relationship, with one end optional. How does one deal with that in Cayenne? > See other replies in this thread. I can only add that Cayenne is as mature as > Hibernate,

Re: Re : Cayenne Transactions

2011-09-13 Thread Andrus Adamchik
Hi, not sure if you subscribed to the list and receiving the traffic from the list or only the emails cc'd to your address, as there were other replies in this thread. I am cc'ing now, but you may want to check the archive for the ongoing discussion. On Sep 13, 2011, at 10:16 PM, stéphane Les

Re : Cayenne Transactions

2011-09-13 Thread stéphane Lestoclet
>http://cayenne.apache.org/doc20/understanding-transactions.html Thanks for the link. In fact, I already read almost all the Cayenne documentation http://cayenne.apache.org/doc/understanding-transactions.html (which I think more recent) >I use Cayenne in a fairly straight forward manner, and pe

Re: Cayenne Transactions

2011-09-13 Thread Andrus Adamchik
Hi there, See other replies in this thread. I can only add that Cayenne is as mature as Hibernate, and has its own approaches to a set of persistence problems (so if you are looking for 1..1 correspondence, there won't be one). Cayenne most certainly can be and has been integrated with all kind

Re: Cayenne Transactions

2011-09-13 Thread Mike Kienenberger
At one point, there was a Spring with Cayenne example by Andrus. Not sure how dated it is now. https://cwiki.apache.org/CAY/spring-integration-examples.html On Sun, Sep 11, 2011 at 10:41 AM, stéphane Lestoclet wrote: > Hi, > > > The Cayenne documentation states the following : > > Chapter: Und

Re: Cayenne Transactions

2011-09-12 Thread Malcolm Edgar
Please take a look at the example at the bottom of the page: http://cayenne.apache.org/doc20/understanding-transactions.html I use Cayenne in a fairly straight forward manner, and perform transactions explicitly in code rather than using an AOP approach. With regard to Spring integration, Cayenn

Re: Cayenne Transactions vs MySQL Transactions

2010-10-28 Thread Michael Gentry
about if cayenne implemented these two mechanisms (transactions and locking) > or > just called the proper methods from the DB. > > Thanx a lot > > Bruno > > -Mensagem original- > De: Michael Gentry [mailto:mgen...@masslight.net] > Enviada: quinta-feira,

RE: Cayenne Transactions vs MySQL Transactions

2010-10-28 Thread Bruno René Santos
Oh and yes I'm using INNODB :) Thanx again Bruno -Mensagem original- De: Michael Gentry [mailto:mgen...@masslight.net] Enviada: quinta-feira, 28 de Outubro de 2010 15:16 Para: user@cayenne.apache.org Assunto: Re: Cayenne Transactions vs MySQL Transactions 1) Cayenne does a

RE: Cayenne Transactions vs MySQL Transactions

2010-10-28 Thread Bruno René Santos
ms (transactions and locking) or just called the proper methods from the DB. Thanx a lot Bruno -Mensagem original- De: Michael Gentry [mailto:mgen...@masslight.net] Enviada: quinta-feira, 28 de Outubro de 2010 15:16 Para: user@cayenne.apache.org Assunto: Re: Cayenne Transactions vs MySQL Tran

Re: Cayenne Transactions vs MySQL Transactions

2010-10-28 Thread Michael Gentry
1) Cayenne does a begin transaction and end transaction when it commits (assuming you aren't using container-managed transactions, in which Cayenne is deferring that operation to the container). Are you at least using InnoDB with MySQL? MySQL hasn't had the best track record for handling transact

Re: Cayenne Transactions

2008-03-06 Thread Malcolm Edgar
Ok thanks for the info Andrus. Have been just writing a TransactionFilter for Click, and just wanted to know whether this was possible. Not something I would actually use. regards Malcolm Edgar On Fri, Mar 7, 2008 at 5:45 AM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > If the goal is to reuse t

Re: Cayenne Transactions

2008-03-06 Thread Andrus Adamchik
If the goal is to reuse the same transaction between requests, I'd suggest using some other transaction manager (Spring? J2EE? I never tried cross-request transactions, not sure what solution is the best). For Cayenne to play nicely with it, check "Container Managed Transactions" in the Mod