Hi,

tomorrow I want us to discuss an issue which arouse in
https://tickets.openmrs.org/browse/TRUNK-2588 .

The thing is that although we try to setup Hibernate to work in the
MANUAL flush mode the setting has never been respected. In the effect
we experience flushes during transactions whenever Hibernate decides
to do so. I do not think it is bad, but it does not work with our AOP
save handlers, because things may be saved before handlers are
triggered resulting in not-null or transient value exceptions.

I have attached a patch to the ticket which fixes this behavior by
setting the flush mode to COMMIT at the beginning of each transaction.
As I commented on the ticket I do not feel it is the right approach
and we should consider changing AOP save handlers to Hibernate
interceptors. Opinions are welcome.

-Rafal

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to