On 10/05/2016 10:37pm, Andrea Biasillo wrote:
> Hi!
> 
> My name is Andrea Biasillo, I am software architect in Dataloy AS, Bergen
> Norway. In one of our project we use Cayenne as ORM. Unfortunately we are
> facing the same problem reported by this case:
> 
> https://issues.apache.org/jira/browse/CAY-1898
> 
> Is  this case never  been taken in consideration? Is there a solution or at
> least a work-wround?


I'm pretty sure that issue was found in one of my projects, and the workaround 
was just to rewrite the offending code to commit the delete before trying to 
insert an identical object. Or else just mutate the old object into the values 
you need.

That is, our workaround wasn't to hack Cayenne to reorder the queries, but just 
to break up the commits. Wrap them into a database transaction if you need to.

Ari




-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Reply via email to