More than one table found in namespace (, ) - SchemaExtractionException

后端 未结 10 3235
执念已碎
执念已碎 2021-02-20 18:52

I have been facing this weird exception while trying to persist some values into a table using Hibernate in a Java application. However this exception occurs only for one parti

10条回答
  •  你的背包
    2021-02-20 19:01

    Simply, if u are using two schemas then u will get this error. To resolve this error u can use these steps :

    1. You need to delete extra schema.
    2. Or u can define default schemas or that schema are u using.
    
    spring.jpa.properties.hibernate.default_schema=nameOfSchema
    and
    jdbc:postgresql://localhost:5432/databaseName?currentSchema=nameOfSchema 
    

提交回复
热议问题