@embededId containing a foreign key of an entity with inheritance giving an error on bootstraping

Description

Used this as my starting point: https://vladmihalcea.com/the-best-way-to-map-a-many-to-many-association-with-extra-columns-when-using-jpa-and-hibernate/

I have an entity named Attendance that has an and emebedid AttendacneId that has two columns lectureId (string) and studenId(UUID). The attendance entity also has other properties as well containing a ManyToOne relationship with student and lecture enity using the @MapsId on them. The student extends user entity where the id resides. now when I try to save anything I get this error.

My AttendanceId class

My Attendance class

My Student Class

My User class

My Lecture Class

Test case: https://github.com/sukhvir41/hibernate-test-case-templates
Forum link: https://discourse.hibernate.org/t/embededid-containing-a-foreign-key-of-an-entity-with-inheritance/2334

Environment

java 1.8, postgresql and H2(test case)

Status

Assignee

Unassigned

Reporter

Sukhvir Thapar

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure