ObjectDB Database Search

1-50 of 200 results

JPA Persistable Types

Persistable types are data types that can be used for storing data in the database. ObjectDB supports all JPA persistable types , which include: User-defined classes: Entity classes, mapped superclasses, and embeddable classes. Simple Java data types : Primitive types , wrapper classes, `String

JPA Metamodel Types

and enumerations to represent the persistent types within a domain model. Metamodel Types Hierarchy in Jakarta Persistence (JPA) 3.2 Base type definitions The core abstractions of model  types are the following components: The top-level interface of the types  hierarchy, representing any persistent

jakarta.persistence.metamodel.Type.getPersistenceType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Type PersistenceType getPersistenceType() Return the persistence type . Returns: persistence type . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Type.getJavaType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Type Class getJavaType() Return the represented Java type . Returns: Java type . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Path.type()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Path Expression type () Create an expression corresponding to the type of the path. Returns: expression corresponding to the type of the path. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceContext.type

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext PersistenceContextType type (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. Default: PersistenceContextType.TRANSACTION Since: Jakarta Persistence (JPA) 1.0

Possible cause for "Enhancement of type ... is old and cannot be used"

We get the following log: [2015-06-08 13:07:02 #1 type .user] Enhancement of type com.btc.ep ... :-2962887009206123121) [2015-06-08 13:07:02 #2 type ] Type com.btc.ep.requirement.bl.internal.ScopeRequirementContainerImpl is not enhanced. [2015-06-08 13:07:02 #3 type .user] Enhancement of type com.btc.ep

Update Entity references if we change the type of an entity

Hello, we must change (extend) our entity model and therefor we convert the type of some entities ... as a pair of ( type + id) rather than just an id. This enables faster navigation between objects, as retrieval of an object is faster when its exact type is known. Following your request we added a new

DB Doctor sets type to "unknown" for new fields

Hi, we are using ObjectDB 2.5.4_04 on Linux. We added two new Boolean fields to a persistable type ... to the schema as expected, however their type is set to unknown - we were expecting Boolean. The attached ... . If you run in DB Explorer select r.emergency from RecordingMetaData as r you will notice that the type (RSL

Custom collection types

, nevertheless it causes some questions. I checked that i can easily change the type of collection between ... achieve this for collections which are not in java.util package? if this collection type will be used in first app release to allow data to be imported to db, can we next changed this type to standard

Enhancer failure: Failed to process class file of type

Stack trace below:   [ObjectDB 2.7.1_02] Failed to process class file of type 'app.model.ClientSession' (error 422) com.objectdb.o.UserException: Failed to process class file of type 'app.model ... to generate dynamic type jdk.internal.reflect.SerializationConstructorAccessorImpl    

OEM: Too many persistable types (>10) - exceeds evaluation limit (error 1011)

_03] javax.jdo.JDODataStoreException Too many persistable types (10) - exceeds evaluation limit (error ... . [ObjectDB 2.7.2_04] javax.jdo.JDODataStoreException Too many persistable types (10) - exceeds ... _xxx" is from the test computer that throws the "too many persistable types " error.  

Type xxx is not found (error 301)

The error: Type User is not found (error 301) occurs when I query the db for a type before any instances of that type have been persisted, e.g.: return em.createQuery ("SELECT a FROM User a").getResultList (); What I was expecting was an empty list, not an error. Is there some enhancement

Why can't we persist an object with a field of type EnumMap in ObjectDB?

Hi, Is there a reason why we can't persist an object with a field of type EnumMap in ObjectDB ... Serializable type if you enable this ability in the configuration. But using this feature is not recommended. ObjectDB provides better support (i.e. more efficient and portable) for specific types  

Failed to enhance dynamic type

to generate dynamic type com.quasado.galaxy.foundation.api.language.LanguageContext I am curious why he does even try to generate dynamic type ?? Can he simply ignore such things and enhance ... to overcome this by generating a dynamic synthetic type . Usually it succeed but in some cases it fails

ClassCastException of same object type

so that different types of storage are possible in order to allow previous data to still be read from csv files

_PersistenceException: Type is not found on getSingleResult.

that's been initialized i get this error: com.objectdb.o._PersistenceException: Type Estudiante is not found

JPA inheritance issue with ObjectDB - Field not found in type error

this query, I get the following error: Error executing query: Field 'retired' is not found in type 'com

Entity Type is not found (error 301) in Query

Entity Type is not found (error 301) in Query

JPA Attributes Annotations

, relationship types , and data storage formats. General field mapping Configure standard state mapping behavior ... , wrappers, Strings). While optional for supported types , it allows configuration of fetch strategies ... to perform optimistic locking checks. Enum mapping Configure how Java enumerated types are persisted and used

JPA Entity Fields

a value of one of the supported persistable types . ObjectDB supports persistent fields with any declared type , including a generic java.lang.Object , as long as the actual runtime value is a persistable type or null . You can mark each persistent field with one of the following annotations

JPA Metamodel Attributes

and enumerations to represent the attributes of managed persistent types (entities, embeddable ... are represented by: Represents single-valued attributes. This includes basic types (primitives ... the following hierarchy: The base interface for all collection-valued attributes, defining the element type

jakarta.persistence.EntityGraph

Jakarta Persistence (JPA) Interface jakarta.persistence.EntityGraph Type Parameters: - The type of the root entity. Super Interfaces: Graph This type represents the root of an entity graph ... and entity relationships. The root must be an entity type . The methods to add subgraphs implicitly create

jakarta.persistence.Graph

. IllegalArgumentException - if the attribute is not an attribute of this managed type .. Since: Jakarta Persistence ... to a collection element that is a managed type . This allows for construction of multi-node entity graphs that include related managed types . Parameters: attribute - attribute Returns: subgraph for the element

jakarta.persistence.EntityManager

(defined by an entity type and primary key) there is at most one entity instance. The entity instances ... their primary key, and execute queries which range over entity types . An entity may be disassociated from ... pessimistic lock on an entity instance. The full range of possible lock types is enumerated by LockModeType

JPA Criteria Query Expressions

and selections, enabling the construction of dynamic, type -safe queries. These interfaces represent ... .SimpleCase Queries may include many different types of expressions and JPA implementations may implement tens and hundreds of classes to manage these different expression types . JPA simplifies

SELECT clause (JPQL / Criteria API)

Result expressions that represent anything other than entities (for example, values of system types ... . get ("currency")). distinct (true); The select method takes one argument of type Selection and sets ... type (as set when CriteriaQuery is instantiated): If the expected result type is Object or Object

FROM clause (JPQL / Criteria API)

(you can use type expression to exclude descendant classes from iteration). For example, in ... variables represent iteration over all the database objects of a specified entity type . JPQL provides an additional type of identification variable, a join variable, which represents a more limited

Index Definition

of one of the following persistable types : Primitive types : boolean , byte , short , char , int ... .util.Date , java.sql.Date , java.sql.Time , java.sql.Timestamp Any enum type A reference to an entity Arrays and collections that contain values of the above types , including null You can define

Storing JPA Entities

of other persistable types can be stored in the database only as embedded objects in containing ... is thrown if the database already contains another entity of the same type with the same primary key ... of persistable types other than entity classes are automatically stored as embedded objects in

JPA Lifecycle Events

. The argument's type can be Object or a more specific entity type . The listener class must be stateless

JPA Named Queries Annotations

instances of the following interface: Represents a named query, including its name, result type , and hints. Retrieve it by result type from EntityManagerFactory.getNamedQueries , and use it to get a TypedQuery instance via EntityManager.createQuery .

JPA Query Expressions (JPQL / Criteria)

, and types ( get , type ) Arithmetic expressions ( sum , diff , prod , quot , mod , abs , neg , sqrt

jakarta.persistence.EntityManagerFactory

the application, and which must be colocated in their mapping to a single database. If two entity types ... via the PersistenceConfiguration API. Every persistence unit has a transaction type , either JTA , or RESOURCE_LOCAL . Resource ... other useful APIs: an instance of Metamodel exposing a model of the managed types associated

jakarta.persistence.Convert

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Convert Implemented Interfaces: Annotation Target: Method, Field, Type Specifies how the values of a field or property are converted to a basic type , enabling a converter defined autoApply=false , overriding the use of a converter

jakarta.persistence.Enumerated

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Enumerated Implemented Interfaces ... an enumerated type . This annotation is optional if the type of a persistent field or property is a Java enum type . The Enumerated annotation may be used in conjunction with the Basic annotation, or

jakarta.persistence.Embeddable

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Embeddable Implemented Interfaces: Annotation Target: Type Declares a type whose instances are stored as an intrinsic part of an owning entity, sharing the identity of the entity. A single embeddable type may be used as the type

Apache License, Version 2.0, January 2004

to compiled object code, generated documentation, and conversions to other media types . "Work" shall

Database Transaction Replayer

by setting the path attribute in the configuration . The recording directory contains two types

Database Replication and Clustering

it synchronized with the master. A single ObjectDB server can manage different types of databases, including

Detached JPA Entities

entity with the same identity (the same type and primary key). If a corresponding managed entity does

Strings in JPQL and Criteria Queries

, trailing, or both types of characters (usually spaces). For example: TRIM(' UK ') is evaluated to 'UK

Collections in JPQL and Criteria Queries

you to use both the IN and MEMBER OF operators with any type of collection. In ObjectDB, these operators

jakarta.persistence.MapKeyColumn

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyColumn Implemented Interfaces ... is a basic type . If the name element is not specified, it defaults to the concatenation ... to the generated SQL to create a column of the inferred type . Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Converter

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Converter Implemented Interfaces: Annotation Target: Type Declares that the annotated class is a converter and specifies ... mapping descriptor. The target type for a converter is determined by the actual type argument of the first

jakarta.persistence.IdClass

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.IdClass Implemented Interfaces: Annotation Target: Type Specifies a composite primary key type whose fields or properties map to the identifier fields or properties of the annotated entity class. The specified primary key type

jakarta.persistence.Lob

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Lob Implemented Interfaces ... should be persisted as a large object to a database-native large object (LOB) type . Portable applications should use the Lob annotation when mapping to a database Lob type . The Lob annotation may be used in

jakarta.persistence.MapKeyEnumerated

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyEnumerated Implemented Interfaces: Annotation Target: Method, Field Specifies the enum type for a map key whose basic type is an enumerated type . The MapKeyEnumerated annotation can be applied to an element collection or

Unlimited JPA Persistable Types

Ashton Hogan Actually you can persist any Serializable type by setting the configuration . There is no point in persisting most of the non serializable types such as Thread , because when retrieved from ... it wouldn't matter what the object type is, surely? ThreaT Ashton Hogan

jakarta.persistence.MapKeyClass

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyClass Implemented Interfaces: Annotation Target: Method, Field Specifies the type of the map key for associations of type Map . The map key can be a basic type , an embeddable class, or an entity. If the map is specified using Java