I just noticed that the @Entity
annotation was deprecated in Hibernate 4
, now I need to replace it somehow. I have the following entity class:
@Entity
public class Employee{
@GeneratedValue(strategy=GenerationType.AUTO)
private Integer id;
@Column(name="name")
private String name;
public void setId(Integer id){
this.id = id;
}
public Integer getId(){
return id;
}
public void setName(String name){
this.name = name;
}
public String getName(){
return name;
}
}
What annotation should I use instead in that case?