ClassCastException when using enhanced entities

Description

The attached test case produces a ClassCastException when run (mvn test) with enhancement enabled. It runs fine without.

The exception seems to only occur in these particular circumstances:

  • the entity uses a PreUpdate-hook

  • the entity has a Version-column

  • one collection is created before persist, another one after persist

Unfortunately I was not able to narrow it down further.

Environment

None

Status

Assignee

Luis Barreiro

Reporter

Alexander Pinske

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure