name attribute in @Entity and @Table
I have a doubt name attribute is there in both
@Entity and @Table
for example I am allowed to have same value for name attribute
@Entity(name = "someThing")
@Table(name = "someThing")
and I can have different names as well for same class
@Entity(name = "someThing")
@Table(name = "otherThing")
can anybody tell me what is the difference between these two and why we
have same attribute in both ?
No comments:
Post a Comment