Appendix A. Annotations and Their Corresponding Packages

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, ...

Get EJB 3 Developer Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.