org.hibernate.boot.model.naming.Identifier equals method returns false for org.hibernate.boot.model.naming.DatabaseIdentifier

Description

On startup, I'm getting:
INFO InformationExtractorJdbcDatabaseMetaDataImpl - HHH000262: Table not found: User
INFO InformationExtractorJdbcDatabaseMetaDataImpl - HHH000262: Table not found: Container
Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Attempt to resolve foreign key metadata from JDBC metadata failed to find column mappings for foreign key named [FK750C8EB77CA9281D]

Debugging lead to this place in the code (InformationExtractorJdbcDatabaseMetaDataImpl.processGetTableResults):
if(tableName.equals(this.identifierHelper().toIdentifier(resultSet.getString("TABLE_NAME"))))

So, org.hibernate.boot.model.naming.Identifier.equals is invoked with org.hibernate.boot.model.naming.DatabaseIdentifier as a parameter.

This happens in a 3rd cycle only. Loop goes over all database tables 2 times successfully. (why it does 3 loops is a puzzle to me anyway).

Environment

None

Status

Assignee

Unassigned

Reporter

Stepan Samarin

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.0

Priority

Major