Package javax.persistence

Interface Summary

AssociationOverride The @AssociationOverride annotation.
AssociationOverrides The @AssociationOverrides annotation.
AttributeOverride The @AttributeOverride annotation.
AttributeOverrides The @AttributeOverrides annotation.
Basic The @Basic annotation.
Column The @Column annotation.
ColumnResult The @ColumnResult annotation.
DiscriminatorColumn The @DiscriminatorColumn annotation.
DiscriminatorValue The @DiscriminatorValue annotation.
Embeddable The @Embeddable annotation.
Embedded The @Embedded annotation.
EmbeddedId The @EmbeddedId annotation.
Entity The Entity annotation.
EntityListeners The @EntityListeners annotation.
EntityManager The main application interface to the persistence context.
EntityManagerFactory Factory for getting an entity manager.
EntityResult The @EntityResult annotation.
EntityTransaction Transaction context.
Enumerated The @Enumerated annotation.
ExcludeDefaultListeners The @ExcludeDefaultListeners annotation.
ExcludeSuperclassListeners The @ExcludeSuperclassListeners annotation.
FieldResult The @FieldResult annotation.
GeneratedValue The @GeneratedValue annotation.
Id The Id annotation.
IdClass The @IdClass annotation.
Inheritance The @Inheritance annotation.
JoinColumn The @JoinColumn annotation.
JoinColumns The @Column annotation.
JoinTable The @Table annotation.
Lob The @Log annotation.
ManyToMany The @ManyToMany annotation.
ManyToOne The @ManyToOne annotation.
MapKey The @MapKey annotation.
MappedSuperclass The @MappedSuperclass annotation.
NamedNativeQueries The @NamedNativeQuery annotation.
NamedNativeQuery The @NamedNativeQuery annotation.
NamedQueries The @NamedQuery annotation.
NamedQuery The @NamedQuery annotation.
OneToMany The @OneToMany annotation.
OneToOne The @ManyToOne annotation.
OrderBy The @OrderBy annotation.
PersistenceContext The @PersistenceContext annotation.
PersistenceContexts The @PersistenceContexts annotation.
PersistenceProperty The @PersistenceProperty annotation.
PersistenceUnit The @PersistenceUnit annotation.
PersistenceUnits The @PersistenceUnits annotation.
PostLoad The @PostLoad annotation.
PostPersist The @PostPersist annotation.
PostRemove The @PostRemove annotation.
PostUpdate The @PostUpdate annotation.
PrePersist The @PrePersist annotation.
PreRemove The @PreRemove annotation.
PreUpdate The @PreUpdate annotation.
PrimaryKeyJoinColumn The @Column annotation.
PrimaryKeyJoinColumns The @Column annotation.
Query The main application interface to the persistence context.
QueryHint The @QueryHint annotation.
SecondaryTable The @SecondaryTable annotation.
SecondaryTables The @SecondaryTable annotation.
SequenceGenerator The @SequenceGenerator annotation.
SqlResultSetMapping The @SqlResultSetMapping annotation.
SqlResultSetMappings The @SqlResultSetMappings annotation.
Table The @Table annotation.
TableGenerator The @TableGenerator annotation.
Temporal The @Temporal annotation.
Transient The @Transient annotation.
UniqueConstraint The @UniqueConstraint annotation.
Version The @Version annotation.

Class Summary

CascadeType The CascadeType enumeration
DiscriminatorType The DiscriminatorType enumeration
EnumType The EnumType enumeration
FetchType The @FetchType annotation.
FlushModeType The type of the flush modes.
GenerationType The GenerationType enumeration
InheritanceType The InheritanceType enumeration
LockModeType The type of the lock modes.
Persistence Bootstrap class to obtain an EntityManagerFactory.
PersistenceContextType The type of the persistence context.
TemporalType The type of the lock modes.

Exception Summary

EntityExistsException Thrown by the persistence provider when EntityManager.persist(Object) is called and the entity already exists.
EntityNotFoundException Thrown by the persistence provider when an entity reference obtained by EntityManager.getReference(Class, Object) is accessed but the entity does not exist.
NonUniqueResultException Thrown by the persistence provider when getSingleResult() is executed on a query and there is more than one result from the query.
NoResultException Thrown by the persistence provider when getSingleResult() is executed on a query and there is no result to return.
OptimisticLockException Thrown by the persistence provider when an optimistic locking conflict occurs.
PersistenceException Thrown by the persistence provider when a problem occurs.
RollbackException Thrown by the persistence provider when a transaction is required but is not active.
TransactionRequiredException