Akm, looking for it.
On Fri, Jul 10, 2015 at 11:40 AM, akm <[email protected]> wrote: > Thanks. This works now. > > The exception that I get has a null message. Is this intentional or should > it have the EclipseLink error message? > *The EclipseLink error is -* > Caused by: java.lang.IllegalStateException: During synchronization a new > object was found through a relationship that was not marked cascade > PERSIST: > com.myApp.entities.Adventure@8e44be4. > at > > org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.discoverUnregisteredNewObjects(RepeatableWriteUnitOfWork.java:303) > > > *The Repository message is* > INFO: [failed] > > test.com.myApp.it.test.CascadeTestWithRepository#createBookingWithRepository > message: Failed calling Repository: > > [Repository=com.myApp.entities.BookingRepository,entity=com.myApp.entities.Booking,method=saveAndFlush,exception=class > org.apache.deltaspike.data.api.QueryInvocationException,message=Failed > calling Repository: > > [Repository=com.myApp.entities.BookingRepository,entity=com.myApp.entities.Booking,method=saveAndFlush,exception=class > org.apache.deltaspike.data.api.QueryInvocationException,message=Failed > calling Repository: > > [Repository=com.myApp.entities.BookingRepository,entity=com.myApp.entities.Booking,method=saveAndFlush,exception=class > java.lang.reflect.InvocationTargetException,*message=null* > > > > -- > View this message in context: > http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Cascade-persist-and-merge-with-Repository-tp4661002p4661037.html > Sent from the Apache DeltaSpike Incubator Discussions mailing list archive > at Nabble.com. > -- Best regard, Daniel Cunha (soro)
