package entity_bean; import javax.persistence.Entity; import javax.persistence.Id; import org.jboss.cache.aop.annotation.Serializable; @Entity public class CalendarEvent implements Serializable { @Id private int id; public CalendarEvent() {} public CalendarEvent(int identifiant) { this.id = identifiant; } @Id public int getId() { return id; } public void setId(int id) { this.id = id; } }