Enhanced entity delete not cascaded for some case

Description

Delete is not cascaded for enhanced entities, resulting in foreign key constraint error in database. The same code works if entities are not enhanced. I will attach the test case.

Environment

None

Activity

Show:
Guillaume Smet
January 16, 2019, 9:44 PM

The test case does not work properly: the properties files should be in src/test/resources and the entity should be in src/main/java otherwise they are not enhanced.

Attaching a working test case.

Guillaume Smet
January 16, 2019, 9:55 PM

I deployed a local snapshot and I can confirm the issue is fixed in master.

Guillaume Smet
January 16, 2019, 10:00 PM

as it's assigned to you, I let you decide if we need to add an additional test case or if we're good with the fix and test case in HHH-13129.

With my updated test case, the issue is fixed with the latest snapshot.

Gail Badner
January 17, 2019, 7:37 AM

, thanks for doing that! There are already tests for cascade-delete in HHH-13129, so I think we're good.

Gail Badner
January 17, 2019, 7:41 AM

I left 5.4.1 as a fix version, since this is actually a different bug than described by HHH-13129.

I resolved it as a duplicate of HHH-13129, because the commit that fixes this issue has a message that mentions only. It should have mentioned both and HHH-11807.

Duplicate

Assignee

Gail Badner

Reporter

Taro App

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major