Note that this issue appears in hibernate 5.0, only when
javax.persistence.schema-generation.database.action=drop-and-create
and
hibernate.hbm2ddl.auto=create-drop
are used together. In hibernate 4.3 that issue would only appear when not closing the entity manager before the entity manager factory.