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
@Entity is useful with model classes to denote that this is the entity or table
@Table is used to provide any specific name to your table if you want to provide any different name
Note: if you don't use @Table then hibernate consider that @Entity is your table name by default and @Entity must
@Entity
@Table(name = "emp")
public class Employee implements java.io.Serializable
{
}