@ElementCollection for enumerations is failing when enabling insert ordering

Description

When persisting an entity which contains an element collection referencing an enumeration, an exception occurs when hibernate.order_inserts is set to true. The following examples gives my test setup (also attached as simple maven test project)

Enumeration

Entity class

persistence.xml

Stacktrace

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Markus Jessenitschnig

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Blocker
Configure