About enum

api-jpa

valueOf(name)

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

 
api-jdo

valueOf(name)

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

 
api-jpa

valueOf(name)

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

 
api-jpa

valueOf(name)

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

 
api-jpa

valueOf(name)

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

 
api-jdo

valueOf(name)

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

 
api-jpa

valueOf(name)

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

 
api-jpa

valueOf(name)

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

 
api-jpa

valueOf(name)

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

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