Re: CheckDatabaseForCascadePersistToDetachedEntity=true in OSGi

2014-05-04 Thread Rick Curtis
27) > > > > > at > > > > > > > > > org.apache.geronimo.transaction.manager.TransactionImpl.beforeCompletion(TransactionImpl.java:511) > > > > > at > > > > > > > > > org.apache.geronimo.transactio

Re: CheckDatabaseForCascadePersistToDetachedEntity=true in OSGi

2014-05-01 Thread john
forePrepare(TransactionImpl.java:413) > > > > > I was thinking that this is what > > the CheckDatabaseForCascadePersistToDetachedEntity=true property is so I > > added it to the persistence unit. > > > > > > > > http://java.sun.com/xml/ns/persistence"; > version="2.0"

Re: CheckDatabaseForCascadePersistToDetachedEntity=true in OSGi

2014-05-01 Thread Rick Curtis
> When I try save a model which has a reference to one of the readonly catalogs (which I don't want to update) and which I get through the catalogs-persistence service (so the model-persistence is handling an object from another persistence unit) The problem is that you're trying persist an Entity

CheckDatabaseForCascadePersistToDetachedEntity=true in OSGi

2014-04-30 Thread john
But it doesn't change anything. Should this option remove the problem I am having? Should it work in OSGi? Are there any suggestions as to what I am doing wrong and if it is possible at all? Cheers John -- View this message in context: http://openjpa.208410.n2.na

CheckDatabaseForCascadePersistToDetachedEntity=true in OSGi

2014-04-30 Thread John Bower
Hi My setup is - servicemix 5.0.0, openjpa 2.2.2, Mysql 5.5 database. I have 4 bundles, model-persistence, catalogs-persistence, models and catalogs. The 2 persistence bundles each have a persistence unit. The model-persistence bundle provides an OSGi service to save a model which is defined in