I don't remember what version of Apache Cayenne you are using, but you can find the documentation on transactions at these two URLs.
https://cayenne.apache.org/docs/3.0/understanding-transactions.html https://cayenne.apache.org/docs/4.0/cayenne-guide/persistent-objects-objectcontext.html#transactions On Tue, Dec 27, 2016 at 9:29 AM, Kumar <kumar9885035...@gmail.com> wrote: > Hey > > I have few native sql queries(some inserts, some updates). I want to fire > all at once. I mean to say if success then everything should be success > else none. If one is failed then do i have a chance to rollback? > > Thanks > Kumar