I\'m using JPA2 and both @Entity and @Table have a name attribute, e. g.:
@Entity(name=\"Foo\")
@Table (name=\"Bar\")
@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
@Entity
@Table(name = "emp")
public class Employee implements java.io.Serializable { }