@ManyToOne referencing entity with @OneToOne relationship as primary key could cause org.hibernate.AnnotationException depending on referenced entity or package name

Description

Relationship like below:

could cause org.hibernate.AnnotationException:

Occurring of this error depends on package name and entity name

Environment

JDK Version: 1.8.0_161

Status

Assignee

Unassigned

Reporter

Bartlomiej Niemiec

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure