@JoinTable annotation is not respected by hbm2ddl

Description

hbm2ddl does not take into account table name defined in @JoinTable annotation and thus might lead to unexpected errors like identifier too long on Oracle.

this started to be visible after upgrade to hibernate 5 which resulted in recent bug report for jBPM running on Oracle: https://issues.jboss.org/browse/JBPM-5729

Please let me know if there are any other details needed to help resolve this.

Environment

None

Activity

Show:
Maciej Swiderski
March 7, 2017, 12:16 PM

this can be closed as it is not hibernate (not jBPM as initially filed) bug. This turned out to be caused by Spring Boot that changes the default physical name strategy to org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy and by that ignores names of the @Table annotations.

I can't close it myself but it is certainly can be closed, thanks for investigation and support on IRC!

Chris Cranford
March 7, 2017, 4:27 PM

No problem , closing as requested.

Assignee

Chris Cranford

Reporter

Maciej Swiderski

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

4.2.20

Components

Affects versions

Priority

Major
Configure