ObjectDB Database Search

1-50 of 200 results

Modifying something with Explorer -> app JPQL with Enum doesn't work anymore

. The problem is that redeploying the application after that kind of usage of Explorer makes JPQL with Enum ... is that redeploying the application after that kind of usage of Explorer makes JPQL with Enum to don't work ... avoid editing enum values in the Explorer until this is solved. I think that editing enum values

@ElementCollection of type enum

.EAGER) private Set permissions; package x.x.x.x public enum UserPermission { BASIC, COACH, ADMIN ... entries). Bug: If UserPermission enum is modified by adding, for example, BASIC231 between BASIC ... (fetch = FetchType.EAGER) private Set permissions; saves enum values as ordinal, not String

mismatch after Enum changes

Hi, I have an entity, an attribute is a enum type: public enum MyEnum { AA, BB, CC, DD; } I populated the database, than I changed the enum types deleting some unused types (es. AA) without reset database:   public enum MyEnum { BB, CC, DD; } Now there are mismatches with enums in database

Using Enum type in NamedQuery: Field is not found in type

with queries that reference enum types. On my entity object is a static enum public static enum ... had it working with Hibernate - with just the quoted name string of the enum type in the query. ObjectDB ... class enum . Please try: SELECT o FROM Obj o WHERE o.type = com.my.fully.qualified.name.Obj$Type.A i

JPA Persistable Types

, Date and Math types. Multi value types - Collections, Maps and Arrays. Miscellaneous types: Enum ... method on an object of such proxy classes. Enum Types Every enum type (user defined or system defined ... defined enum types should be persisted. By default, enum values are represented internally by

Literals in JPQL and Criteria Queries

(e.g. 'abc' ), enum literals (e.g. mypackage.MyEnum.MY_VALUE ) and entity type literals (e.g. Country ... '} Enum Literals JPA 2 adds support for enum literals. Enum literals in JPQL queries use the ordinary Java syntax for enum values, but the fully qualified name of the enum type

Error in reading Enum in JPA - Failed to read using reflection

I have created a very simple Entity User which has an enum Status (INACTIVE, ACTIVE ... : com.xxx.Status is not an enum type satinder_2000 Satinder Singh Please check your enum definition. It should be ordinary enum with no annotations (such as @Entity ). If you cannot see anything wrong

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

:enumFieldList)" And enum field is defined in MyEntity as:     @Enumerated ... ; public enum MyEnumType { VALUE1, VALUE2, VALUE3, VALUE4 } and I call:      ... understood the JPA JPQL IN clause should work with Enum types - is that the case, or is this an objectdb

List of Enum Values in an entity

Entity with an ArrayList of Enums : private ArrayList flags; The flags are stored into the database ... ? Joachim Flashbaer Joachim Beig A rrays of enum values are expected to be supported by ObjectDB ... ;      public static enum MyEnum {         V1

Null enums and IS (NOT) NULL: NullPointerException

Hello. I'm getting NullPointerException when adding % enum field% IS (NOT) NULL or == (!=) NULL in ... class TEntity { public enum ExampleEnum { P1, P2 } @Id @GeneratedValue(strategy = GenerationType ... ) { this.entities = entities; } } Vladiator Vlad Myachikov Thank you for this report. Comparing enum

Schema evolution & renamed/moved enum

Hello, I have an entity with an attribute of type enum say com.pkg1.MyEnum. I created ... moved that enum to a different package and renamed it say com.pkg2.MyNewEnum, which is not the new ... to use the tag in the config file because my enum is not an entity. What is a the proper way

fetch by enum

I have Entity named Fruits  with a column Type which is a enum . I want to fetch the based on Type  Eg.  Query qry= em.createQuery("Select f from Fruits f where f.Type =: t ");         qry.setParameter("t",Type.Sweet);   But it return

JPA Annotations for Fields

The way a field of a persistable class is managed by JPA can be set by the following annotations: Additional annotations (and enum ) are designated for enum fields: Other additional annotations (and enum ) are designated for date and calendar fields: Chapter 2 of the ObjectDB manual explains how to use all the above annotations.

Database Schema Evolution

and enum values that are stored as numeric ordinal values (the default). From any type to Boolean or ... any type to String (using toString() if necessary). From String to numeric types including enum types

Shared (L2) Entity Cache

of the CacheRetrieveMode enum : CacheRetrieveMode . USE - cache is used. CacheRetrieveMode . BYPASS - cache is not ... has three valid values, which are defined as constants of the CacheStoreMode enum : CacheStoreMode

Control and Setting

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations:

ObjectDB Object Database Features

types (@Embeddable) Mapped super classes (@MappedSuperclass) Enum classes Serializable types Persistent

Index Definition

, java.sql.Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain

JPA Primary Key

.lang.String. java.util.Date , java.sql.Date , java.sql.Time , java.sql.Timestamp. Any enum type

JPA Annotations for Mapping (ORM)

The following JPA annotations and enums are designated for mapping a JPA object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.

JPA Annotations for Relationships

annotation enables configuring cascade and fetch policy, using the following enum types: Additional

Chapter 4 - JPA Queries (JPQL / Criteria)

(named) queries. It explains how to use the relevant interfaces, annotations, enums and methods

JPA Metamodel API

) in the persistent object model are represented by the following sets of interfaces and enum types

JPA Metamodel API Attributes

The following interfaces and enum types represent attributes (persistent fields and properties) in the JPA Metamodel API: See the Metamodel Attribute Interface Hierarchy section for more details and examples.

JPA Metamodel API Types

The following interfaces and enum represent types in the JPA Metamodel API:  See the Metamodel Type Interface Hierarchy section for more details and examples.

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly (as fields) or indirectly (as properties and get/set methods). JPA 2 provides an annotation and an enum for setting the access mode: More details are provided in chapter 2 of the ObjectDB manual.

Setting and Tuning of JPA Queries

to be visible to the query. Flush policy in JPA is represented by the FlushModeType enum , which has two values

Comparison in JPQL and Criteria API

). Enum values can be compared by using the equality operators (=, , == , != ). Instances of user

Enum fields are set to null and embeddable enum class does not show in explorer

I switched to version 2.8.2 and now it seems that my enum types are not recognized and the field ... ! The enum type is also not listed in the explorer. I am talking about an enum class, which implements ... this is relevant. public enum Role implements package.of.Role {     ... } @ElementCollection

javax.persistence.AccessType

JPA Enum AccessType java.lang.Object ∟  java.lang. Enum ∟  javax.persistence.AccessType ... Since: JPA 2.0 Enum Constants FIELD Field-based access is used. Since: JPA 2.0 PROPERTY Property-based access is used. Since: JPA 2.0 Public Static Enum Methods: AccessType[] values () Returns an array

javax.persistence.CacheRetrieveMode

JPA Enum CacheRetrieveMode java.lang.Object ∟  java.lang. Enum ∟  javax.persistence ... ) Entity Cache article explains how to use CacheRetrieveMode . Enum Constants BYPASS Bypass the cache ... : this is the default behavior. Since: JPA 2.0 Public Static Enum Methods: CacheRetrieveMode[] values () Returns

javax.persistence.CacheStoreMode

JPA Enum CacheStoreMode java.lang.Object ∟  java.lang. Enum ∟  javax.persistence ... The Shared (L2) Entity Cache article explains how to use CacheStoreMode . Enum Constants BYPASS Don't ... when reading from database. Since: JPA 2.0 Public Static Enum Methods: CacheStoreMode[] values

javax.persistence.CascadeType

JPA Enum CascadeType java.lang.Object ∟  java.lang. Enum ∟  javax.persistence.CascadeType ... cascade=ALL is equivalent to cascade={PERSIST, MERGE, REMOVE, REFRESH, DETACH} . Since: JPA 1.0 Enum ... Static Enum Methods: CascadeType[] values () Returns an array containing the constants of this enum type

javax.persistence.ConstraintMode

JPA Enum ConstraintMode java.lang.Object ∟  java.lang. Enum ∟  javax.persistence.ConstraintMode Used to control the application of a constraint. Since: JPA 2.1 Enum Constants CONSTRAINT ... _DEFAULT Use the provider-defined default behavior. Since: JPA 2.1 Public Static Enum Methods

javax.persistence.DiscriminatorType

JPA Enum DiscriminatorType java.lang.Object ∟  java.lang. Enum ∟  javax.persistence.DiscriminatorType Defines supported types of the discriminator column. Since: JPA 1.0 Enum Constants CHAR ... type. Since: JPA 1.0 STRING String as the discriminator type. Since: JPA 1.0 Public Static Enum Methods

javax.persistence.EnumType

JPA Enum EnumType java.lang.Object ∟  java.lang. Enum ∟  javax.persistence.EnumType ... article explains how to use EnumType . Enum Constants ORDINAL Persist enumerated type property or ... . Since: JPA 1.0 Public Static Enum Methods: EnumType[] values () Returns an array containing the constants

javax.persistence.FetchType

JPA Enum FetchType java.lang.Object ∟  java.lang. Enum ∟  javax.persistence.FetchType ... ManyToMany OneToMany ManyToOne OneToOne Since: JPA 1.0 Enum Constants EAGER Defines that data ... Static Enum Methods: FetchType[] values () Returns an array containing the constants of this enum

JDO Annotations for Mapping (ORM)

The following JDO annotations and enums are designated for mapping a JDO object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.

JDO Annotations for Fields

The way a field of a persistable class is managed by JDO can be set by the following annotations and enum types:

Miscellaneous JDO Annotations

This section contains miscellaneous JDO annotations and associated enum types:

javax.jdo.ObjectState

JDO Enum ObjectState java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.ObjectState This class defines the object states for JDO instances. Since: JDO 1.0 Enum Constants DETACHED_CLEAN ... Methods String toString () Since: JDO 1.0 Public Static Enum Methods: ObjectState[] values () Returns

javax.jdo.annotations.DiscriminatorStrategy

JDO Enum DiscriminatorStrategy java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.annotations.DiscriminatorStrategy Enumeration of the discriminator strategy values. Since: JDO 2.1 Enum ... .1 Public Static Enum Methods: DiscriminatorStrategy[] values () Returns an array containing

javax.jdo.annotations.ForeignKeyAction

JDO Enum ForeignKeyAction java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.annotations.ForeignKeyAction Enumeration of the foreign-key delete/update action values. Since: JDO 2.1 Enum ... Since: JDO 2.1 UNSPECIFIED Since: JDO 2.1 Public Static Enum Methods: ForeignKeyAction[] values

javax.jdo.annotations.IdGeneratorStrategy

JDO Enum IdGeneratorStrategy java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.annotations.IdGeneratorStrategy Enumeration of the id generator strategy values. Since: JDO 2.1 Enum Constants ... UNSPECIFIED Since: JDO 2.1 UUIDHEX Since: JDO 2.1 UUIDSTRING Since: JDO 2.1 Public Static Enum Methods

javax.jdo.annotations.IdentityType

JDO Enum IdentityType java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.annotations.IdentityType Enumeration of the identity type values. Since: JDO 2.1 Enum Constants APPLICATION Since: JDO ... Enum Methods: IdentityType[] values () Returns an array containing the constants of this enum type, in

javax.jdo.annotations.InheritanceStrategy

JDO Enum InheritanceStrategy java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.annotations.InheritanceStrategy Enumeration of the inheritance strategy values. Since: JDO 2.1 Enum Constants ... Since: JDO 2.1 Public Static Enum Methods: InheritanceStrategy[] values () Returns an array containing

javax.jdo.annotations.NullValue

JDO Enum NullValue java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.annotations.NullValue ... of the "field" and "property" elements. Since: JDO 2.1 Enum Constants DEFAULT Since: JDO 2.1 EXCEPTION Since: JDO 2.1 NONE Since: JDO 2.1 Public Static Enum Methods: NullValue[] values () Returns

javax.jdo.annotations.PersistenceModifier

JDO Enum PersistenceModifier java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.annotations ... 2.1 Enum Constants NONE Since: JDO 2.1 PERSISTENT Since: JDO 2.1 TRANSACTIONAL Since: JDO 2.1 UNSPECIFIED Since: JDO 2.1 Public Static Enum Methods: PersistenceModifier[] values () Returns an array

javax.jdo.annotations.SequenceStrategy

JDO Enum SequenceStrategy java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.annotations.SequenceStrategy Enumeration of the sequence strategy values. Since: JDO 2.1 Enum Constants CONTIGUOUS Since: JDO 2.1 NONCONTIGUOUS Since: JDO 2.1 NONTRANSACTIONAL Since: JDO 2.1 Public Static Enum

javax.jdo.annotations.VersionStrategy

JDO Enum VersionStrategy java.lang.Object ∟  java.lang. Enum ∟  javax.jdo.annotations.VersionStrategy Enumeration of the version strategy values. Since: JDO 2.1 Enum Constants DATE_TIME ... Since: JDO 2.1 Public Static Enum Methods: VersionStrategy[] values () Returns an array containing