About enum

forum_thread

Native ObjectDB Support for EnumSet ?

Greetings ObjectDB team, Are embedded EnumSet objects faster to query than normal classes ? Does JPA/JDO offer native support to filter persistent objects by an EnumSet field's multi values ? For example: WHERE o.es == ES.A | ES.B | ES.C Thank you !... 11:42 Embedded enum sets are supported and are fast (but I am not sure to which classes you ... - otherwise you will not be able to see the enum set values in the Explorer (but you can instantiate it as ...

 
api-jpa

values()

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

 
api-jdo

values()

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

 
api-jpa

values()

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

 
api-jdo

values()

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

 
api-jpa

values()

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

 
api-jdo

values()

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

 
api-jpa

values()

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

 
api-jpa

values()

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

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