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

Marc Ackermann 
17 August 2017 at 16:41

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

Pothys - MitrahSoft 
17 August 2017 at 07:42

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.

Michael Offner 
16 August 2017 at 13:22

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 
16 August 2017 at 06:17

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 
14 August 2017 at 15:21

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?

Fixed

Details

Assignee

Reporter

Priority

Labels

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 11 June 2017 at 12:45
Updated 8 May 2020 at 19:59
Resolved 4 September 2017 at 08:15