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

后端 未结 10 3104
执念已碎
执念已碎 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:21

    I also came across this issue. Here is my solution:

    the error: https://gist.github.com/wencheng1994

    I solve that. It mainly because the db account has a higher authority. I set the "hibernate.hbm2ddl.auto=update", So when hbm2ddl works, it tried to find all exists shcema I defied. But there is two schema exist the table with the same name. then the db account can find that. so it found "more than one table in the namespace"

    All I need to do is to make the db account lower authority so that it can not find table in other schema. (one shcema relation one db account).

提交回复
热议问题