We're updating the issue view to help you get more done. 

hbm2ddl.auto=validate should validate ForeignKeys and UniqueConstraints

Description

I have turned on spring.jpa.hibernate.ddl-auto=validate in my application and expected it to report missing foreign keys and other database constraints that have been specified in my entities but it did not. It appears to handle tables and columns well but ignores database constraints. I am using SQL Server 2016. Am I missing something or is this just not supported?

Environment

None

Status

Assignee

Unassigned

Reporter

Kevin Wood

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.3.9

Priority

Major