I just ran into another flushing-related issue while running the Html Form Entry unit tests against the 1.9.0-alpha...
When changing the provider model in 1.9.0, the legacy setProvider(Person) method was depreciated but was also modified to provide backwards compatibility with the existing provider module. To do this, service methods which execute db queries are now called from within the setProvider method. These queries end up triggering a hibernate flush, which, in turn, is causing an a "not-null property references a null or transient value" on a dateCreated in certain cases within HFE. This is another reason for moving dateCreated into the AuditableInterceptor (TRUNK-2015) sooner rather than later. Looks like this is scheduled to be fixed for 1.9 beta so I'm going to ignore these failing unit tests against 1.9.0-alpha and I will test again after the beta comes out. I will add, however, that having a setter method trigger a flush might cause other unexpected issues. Mark _________________________________________ 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]

