ORM tries to create a unique constraint on a non existing table

Description

Hi,

Given the following mapping for the parent table (the fact that it is a @Entity, not a @MappedSuperclass is important):

with the following child table:

Hibernate logs the following error when starting the context (and the context is successfully started anyway):

This mapping was OK with Hibernate < 5 and Hibernate should not try to create a contraint for this table.

I will push a test case using the Hibernate templates in a followup comment.

Environment

None

Assignee

Andrea Boriero

Reporter

Guillaume Smet

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure