@OneToOne selfjoin of abstract class with @JoinTable wrong mapping

Description

Combination of

  1. @Entity abstract class ABlockableEntity

  2. @OneToOne(fetch=FetchType.LAZY)
    @JoinTable(
    name="QUEUE",
    joinColumns=
    @JoinColumn(name="child_id", referencedColumnName="id"),
    inverseJoinColumns=
    @JoinColumn(name="parent_id", referencedColumnName="id"))
    private ABlockableEntity parentId;

is failed on childs of ABlockableEntity.

Try sample project at https://github.com/qwazer/jpa_one2one_bug_report

test EventRepositoryTest failed
but tests with simple entities without inheritance are OK

Environment

all enviroments

Status

Assignee

Unassigned

Reporter

AR

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure