About enum

api-jpa

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.persistence.EnumType)

 
api-jpa

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.persistence.FetchType)

 
api-jpa

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.persistence.CascadeType)

 
api-jpa

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.persistence.ValidationMode)

 
api-jpa

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.persistence.InheritanceType)

 
api-jpa

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.persistence.CacheRetrieveMode)

 
api-jdo

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.jdo.annotations.InheritanceStrategy)

 
api-jdo

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.jdo.annotations.PersistenceModifier)

 
api-jdo

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.jdo.annotations.DiscriminatorStrategy)

 
forum_thread

JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums

Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN :enumFieldList)" And enum field is defined in MyEntity as: @Enumerated(EnumType.STRING) @Column(nullable = false) @Index private MyEnumType enumField; And MyEnumType is defined as: public enum MyEnumType { VALUE1, VALUE2, VALUE3, VALUE4 } and I call: ... o WHERE (enumField IN :enumFieldList)" And enum field is defined in MyEntity as: @ Enumerated ( ... And MyEnumType is defined as: public enum MyEnumType { VALUE1, VALUE2, VALUE3, VALUE4 } ...