Details
Assignee
UnassignedUnassignedReporter
Marco BelladelliMarco BelladelliAffects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Marco Belladelli
Marco BelladelliAffects versions
Priority
Created last week
Updated last week
An assertion error is triggered when:
an instance of
EntityA
is created an persistedan instance of
EntityB
is createdanother instance of
EntityA
is created an not persistedEntityB.entityA
is set to the second, non-persistence instance ofEntityA
EntityB
is persisteda query is issued against
EntityB
in the same persistence contextFor this to happen,
EntitA
must have no@Version
attribute and a@GeneratedValue
identifier: this causes Hibernate to be unable to determine whether instances of this entity are transient or simply new, so no error is thrown when persistingEntityB
.This was originally reported as a Quarkus issue, see the reproducer here: .