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

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

    I have same issue with such configuration

    @Entity
    @Table(name = "NOTIFICATION")
    public class Notification {
        ...
    }
    

    issue was resolved for me when I moved table name from @Table to @Entity

    @Entity(name = "NOTIFICATION")
    @Table
    public class Notification {
        ...
    }
    

提交回复
热议问题