ORM Data update not saved in the db -> Lucee Admin Issue

Description

So I have this code to update a dataset:

aTest = entityLoadByPK('artist', 1);
aTest.setType(5);
entitySave(aTest);
OrmFlush();

It has no effect to the database! The record is not updated.

Now I deselect the checkbox in Lucee Server Admin under
ORM / "Flush at request end"
and now the data is saved!

Environment

Fresh Lucee 5.2.1.9 Windows installation

Activity

Show:
Michael Offner
August 14, 2017, 3:21 PM

actally the Lucee versions does not matter a lot. What matters mostly is the Hibernate Extension version, so with which version you can you reproduce it?

Pothys - MitrahSoft
August 16, 2017, 6:17 AM

Hi ,
Issue found at Hibernate Extension version 3.5.5.63 version. It's working fine only on '3.5.5-Final' which is used in 4.5 versions.

Michael Offner
August 16, 2017, 1:22 PM

Latest version (Lucee 5.2.4.8, Hibernate 3.5.5.65) passes fine. One of the later Lucee version changed how Lucee handles "flushOnRequestEnd", maybe this solved the issue.
please test again with this version

Testcases:
https://github.com/lucee/Lucee/blob/5.2/test/tickets/LDEV1370.cfc

Pothys - MitrahSoft
August 17, 2017, 7:42 AM

Hi ,

I couldn't able to reproduce the issue on latest version(Lucee 5.2.4.8, Hibernate 3.5.5.65) . can you please check it on latest version.

Marc Ackermann
August 17, 2017, 4:41 PM

Yes, working fine now. Issue is fixed in version 5.2.4.10.

Fixed

Assignee

Michael Offner

Reporter

Marc Ackermann

Priority

Blocker

Labels

Fix versions

Affects versions

Configure