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.
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!
No problem , closing as requested.