With spring.jpa.hibernate.ddl-auto=update hibernate wrongly finds SYS.CATALOG

时间:2015-09-30 23:13:53

标签: spring oracle hibernate jpa

We're using Sping Boot and Hibernate with Oracle in our app and in dev mode at start we set:

spring.jpa.hibernate.ddl-auto=update

We have a JPA entity call Catalog and from it, Hibernate is supposed to create a DB table named CATALOG (if it doesn't exist). Apparently, there is a bug in Hibernate and instead of not-finding and creating a new CATALOG table, it reports:

o.hibernate.tool.hbm2ddl.TableMetadata   : HHH000261: Table found: SYS.CATALOG

This happens only with that entity/table and seems that the name CATALOG is confusing Hibernate. If we change the name it works fine, but we don't want to change the name of the table. We want it to be CATALOG.

Does anybody know how we can workaround that problem?

0 个答案:

没有答案