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(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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…