Re: How to properly replace DataDomain....

2018-03-06 Thread Nikita Timofeev
Hi, Not sure why your custom DataDomainProvider is never called. Your binding looks good to me, and nothing there was changed in 4.0.B1 (see [1]). But you should change PCATransactionFilter binding, as List bindings were redesigned. Correct way to add filter is following: ServerModule.contributeD

How to properly replace DataDomain....

2018-03-06 Thread Juan Manuel Diaz Lara
I am using  4.0.M5. The next code used to work in a previous version, but now PCADataDomainProvider is never called to create my custom DataDomain: public class ServerModuleWithPostCommitActions implements org.apache.cayenne.di.Module {     @Override     public void configure(Binder binder) {  

Re: How to call a procedure as part of commitChanges ?

2018-03-06 Thread Juan Manuel Diaz Lara
I tried a db trigger fired on db commit (when all cayenne data is flushed to db), but a problem arise if there is some db exception: persistent objects stay "commited" because commitChanges changes the persistenceState before db commit, It is desirable that persistenceState remains o returns to

Re: How to call a procedure as part of commitChanges ?

2018-03-06 Thread Maik Musall
Hi Juan, couldn't you do this more easily and reliably with a db trigger? Maik > Am 06.03.2018 um 16:11 schrieb Juan Manuel Diaz Lara > : > > Is there any way to call a stored procedure as part of commitChanges ? > I would like to call a stored procedure after flushing my persistent objects

How to call a procedure as part of commitChanges ?

2018-03-06 Thread Juan Manuel Diaz Lara
Is there any way to call a stored procedure as part of commitChanges ? I would like to call a stored procedure after flushing my persistent objects but before the real db commit, for instance, to make some process on the db as part of committing my objects, but transactionally. performInTransac