Attempt to resolve foreign key metadata from JDBC metadata failed to find column mappings for foreign when keywords auto quoting is enabled

Description

This is a follow-up of the issue 10802. https://hibernate.atlassian.net/browse/HHH-10802

Test case

pom.xml

application.properties

Entity: Match.java

Spring boot app entry point - DemoApplication.java

Steps
1. Start the application so that the schema is created.
2. Start the application once again, it crashes upon starting with

From my point of view it has to have something in common with auto quoting key words set to true. I use PostgreSQL database.

In the previous versions the table for this entity was created by the following generated sql.

CREATE TABLE "Match"

Now it is created by
CREATE TABLE public."Match"

Seems like correcting one thing for cross schema mappings causes errors in one schema mappings. :]

Environment

JDK 1.8

Status

Assignee

Andrea Boriero

Reporter

Paweł Jaguś

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure