Issue clearing ORM session when using similar objects in flush scenario

Description

I Hav ethe current test case:

It basically creates a new user in the datbase, flushes to make sure it persists
Then using my abstraction method it deletes by ID, I flush to persist and then clear the session to make sure the object is removed from the hibernate session cache. Then I try to load it and check if it exists. If I run this test case in isolation, then I have no issues. However, If I run this alongside other test cases that are similar, code below. Then the expectation fails, the entity load does in deed return the deleted user object.My gut feeling is that the clear session is not removing the objects from session.

Here are companion tests:

All the tests can be found here https://github.com/coldbox-modules/cbox-cborm/blob/development/tests/specs/ActiveEntityTest.cfc

Environment

None

Activity

Luis Majano 
6 December 2018 at 16:15

I will test again when I can.

Pothys - MitrahSoft 
6 December 2018 at 05:53

No more further detail, so changed the status into rejected.

Michael Offner 
1 February 2018 at 09:43
(edited)

any news on this? without any further info we have to reject the ticket.

Pothys - MitrahSoft 
8 September 2017 at 11:59

Hi ,

I've convert the above input into test case but no luck, test case passes fine for me. , Please Let Me Know if i missed anything on this test case.

Pull request: https://github.com/lucee/Lucee/pull/276

Cannot Reproduce

Details

Assignee

Reporter

Priority

Labels

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

Sprint

Affects versions

Created 19 July 2017 at 17:22
Updated 5 February 2021 at 12:14
Resolved 6 December 2018 at 05:53