About enum

api-jpa

JPA Miscellaneous

Reference (JavaDoc) of JPA API, including PersistenceUtil, PersistenceUnitUtil, Cache, CacheRetrieveMode, CacheStoreMode, FlushModeType, LockModeType, PessimisticLockScope.... and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) ... javax.persistence.CacheStoreMode Other enum types are provided for setting of various JPA operations: ...

 
api-jpa

values()

Returns an array containing the constants of this enum type.(Static Method of javax.persistence.EnumType)

 
api-jpa

values()

Returns an array containing the constants of this enum type.(Static Method of javax.persistence.FetchType)

 
api-jpa

values()

Returns an array containing the constants of this enum type.(Static Method of javax.persistence.AccessType)

 
api-jpa

values()

Returns an array containing the constants of this enum type.(Static Method of javax.persistence.CascadeType)

 
api-jpa

values()

Returns an array containing the constants of this enum type.(Static Method of javax.persistence.ValidationMode)

 
api-jpa

values()

Returns an array containing the constants of this enum type.(Static Method of javax.persistence.InheritanceType)

 
api-jdo

values()

Returns an array containing the constants of this enum type.(Static Method of javax.jdo.annotations.SequenceStrategy)

 
api-jdo

values()

Returns an array containing the constants of this enum type.(Static Method of javax.jdo.annotations.DiscriminatorStrategy)

 
issue

@Enumerated(EnumType.STRING) annotation inhibits proper execution of IN expressions.

When the following annotation is present on an enum type entity field: @Enumerated(EnumType.STRING) Queries using JPQL IN expressions on this field won't work correctly anymore. This issue has been described in forum post 681 (JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums). See also the attached test case (play with adding and removing the Enumerated annotation). Best regards, and thank you for this great piece of work! ... When the following annotation is present on an enum type entity field: @Enumerated(EnumType.STRING) Queries ...