Name attribute in @Entity and @Table

后端 未结 4 1903
一向
一向 2020-12-01 02:30

I have a doubt, because name attribute is there in both @Entity and @Table

For example, I\'m allowed to have same value for name attribute

@Entity(n         


        
4条回答
  •  情书的邮戳
    2020-12-01 03:17

    @Table's name attribute is the actual table name. @Entitiy's name is useful if you have two @Entity classes with the same name and you need a way to differentiate them when running queries.

提交回复
热议问题