ImplicitNamingStrategy not always called for customizing unique key names

Description

This bug follows from the discussion in the forum:
https://forum.hibernate.org/viewtopic.php?f=1&t=1043610
I'll attach a test case in a minute.

The HBM mapping file contains a column "name" that's marked as unique. The goal is to provide a unique key name via a custom ImplicitNamingStrategy.
The ImplicitNamingStrategy contains a method "determineUniqueKeyName" for customizing unique key names, but it's not called at all in the test. The test cases setups up a custom NamingStrategy, but it's never called. You can also debug this in an IDE.

Environment

H2Dialect (Hibernate Test Templates) on Windows 7.
PostgreSQLDialect

Attachments

Assignee

Unassigned

Reporter

Holger Brands

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure