Hi Mark, Rafal is working on this now, so add yourself as a watcher on TRUNK-2015 and re-test this against trunk when he's committed something.
We've been having trouble tracking down all the possible edge cases of this, so running the HFE unit tests would be really nice. -Darius On Wed, Nov 30, 2011 at 9:41 AM, Mark Goodrich <[email protected]> wrote: > 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**** > > ** ** > > ** ** > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list _________________________________________ 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]

