The following table shows EJB 3 annotations together with their corresponding packages. The list is not exhaustive, only annotations described in this book are shown here.
Annotation |
Package |
---|---|
@Remote, @Stateless, @EJB, @Stateful, @Remove, @Local, @TransactionAttribute, @ApplicationException, @MessageDriven, @ActivationConfigProperty, @Timeout |
javax.ejb |
@Resource, @PostConstruct, @PreDestroy |
javax.annotation |
@PersistenceContext, @Entity, @Id, @Table, @Basic, @TableGenerator, @GeneratedValue, @SequenceGenerator, @Column, @OneToOne, @OneToMany, @ManyToMany, @JoinColumn, @JoinTable, @JoinColumns, @Embedded, @Embeddable, @Enumerated, @MapKey, @Lob, @Temporal, @IdClass, @Inheritance, @DiscriminatorColumn, @DiscriminatorValue, @NamedQuery, @NamedQueries, @SqlResultSetMapping, @EntityResult, @FieldResult, @ColumnResult, @SqlResultSetMappings, @NamedNativeQuery, @NamedNativeQueries, @PostLoad, @PrePersist, @PostPersist, @PreRemove, @PostRemove, @PreUpdate, @PostUpdate, @EntityListeners @Version |
javax.persistence |
@AroundInvoke, @Interceptors, @ExcludeClassInterceptors, @ExcludeDefaultInterceptors |
javax.interceptor |
@WebService, @WebMethod |
javax.jws |
@WebServiceRef |
javax.xml.ws |
@RolesAllowed, @PermitAll, @DenyAll, @RunAs, @DeclareRoles |
javax.annotation.security |