org.hibernate.AnnotationException: Unable to create unique key constraint - if column not found

Description

Entity:

Embeddable containing the affected column:

Exception occurs:

The exception itself is about missing column or naming strategy (which is another problem), but this bug refers to incorrect usage of "unique constraint", since the code never specifies unique=true, so it should be just a regular index. i.e. "Unable to create index" would be an accurate error message.

An additional issue (which may be another bug?) is that hibernate.ddl-auto is not set, so I'm wondering why would Hibernate want to create anything?

Environment

Spring Boot 1.4.0, Hibernate Spatial, PostgreSQL 9.5

Assignee

Chris Cranford

Reporter

Hendy I.

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure