The EJB 3 standard annotations are contained in the javax.persistencepackage, so we import this package as the first step. Second we used the@Entity annotation to the Employee class which marks this class as an entity bean, so it must have a no-argument constructor that is visible with at least protected scope.
|