ObjectDB Database Search

101-150 of 200 results

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 Type {     A,B,C } that is stored in an @Enumerated member variable private Type type ; @Enumerated public Type getType() {     return type ; } I then try to query this field

Cascade type annotaion on an embeddable type

Cascade type annotaion on an embeddable type

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

TYPE Expression

Hi there! Trying to add a simple type expression with the criteria api like in your sample: cb.equal(e. type (), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o.UserException: Attempt to store an instance of a non persistable type java.lang.Class at com.objectdb.o.MSG.d

com.objectdb.o.TEX: Type ... is not found, for a class that's already been enhanced successfully.

this. ----------------------------------------------------------------------------------------------- [ObjectDB 2.8.1 Enhancer] 16 persistable types ... .MRTemplate     mr.model.MRTrader 11 NON persistable types have been enhanced:   ... -2019-09-12.conf [2019-09-13 17:13:02 #7 type ]  Type common.app.Model is not enhanced. [2019-09-13

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

Failed to generate dynamic type objectdb.java.util.ArrayList

.objectdb.o.InternalException: com.objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util.ArrayList com.objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util ... .objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util.HashSet com.objectdb.o

Enhancement of type is old and cannot be used

:   [2021-01-26 15:20:33 #22 type .user] Enhancement of type eu.extech.quant.listing.data ... :33 #23 type ] Type eu.extech.quant.listing.data.ProductListingRequest is not enhanced. [2021-01-26 15:20:33 #24 type ] Type eu.extech.quant.listing.data.ProductListingStateChangeList is not enhanced

Cast in typed query

the generic list type : @ElementCollection(fetch = FetchType.EAGER) private List types  = null; Now I can use "instanceof" within a query in order to select only elements of the specific type : SELECT o FROM OtherType o JOIN o. types t WHERE t instanceof MySpecificType But how can I cast

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

@AttributeOverrides , and postgresql + own TYPE

changes even if i wanted to. In structure of DB  is this. -- -- Name: address; Type : TYPE ; Schema: artio; Owner: facman --   CREATE TYPE address AS ( street character varying, city character ... varying ); ALTER TYPE artio.address OWNER TO facman; AS you notice, in my project i

DB Explorer cannot be opened after schema package renaming of entity types

The DB Explorer cannot be opened after schema package renaming of entity types because it seems that deprecated entity types which are removed from our java project break the database. In the database the entity types and deprecated entity types can be part of the identical package. The schema

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

Wrong @Id type

/ To repair IDs that have already changed their types you will have to 'touch' the objects and store ... to the correct type ). support Support We are using ObjectDB 2.4.6_07 in our production enviroment and 2.5.6 ... of ObjectDB explorer the type of the id column is displayed as long, as it shold be, but selecting

Failed to generate dynamic type

dynamic type  com.package.RootContainer (error 361) It seems that all dependent classes ... there is output from enhancer [ObjectDB 2.0] 3 persistable types have been enhanced: test.MyEntity1 test.MyEntity2 test.MyEmbeddable 2 NON persistable types have been enhanced: Main test.Manager   what does

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    

Logical Operators in JPQL and Criteria API

whose type is boolean - such as comparison operators: Predicate isLarge = cb. gt (country. get ("area

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 Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of the Java Persistence API (JPA) 2.0. The content is derived from the original JPA documentation (in the EclipseLink JPA 2 RI) with some additions and notes. The JPA types are organized into the following sections: The purpose

Retrieving JPA Entity Objects

retrieval by using a lazy fetch type : @Entity class Employee { : @ManyToOne ( fetch = FetchType . LAZY

JPA Queries

of special types , representing query elements. Running criteria queries, however, still requires

JPA Named Queries

receives a query name and a result type and returns a TypedQuery instance: TypedQuery query = em

WHERE clause (JPQL / Criteria API)

takes a variable number of arguments of Predicate type and uses an AND conjunction as

Defining a JPA Entity Class

classes, including which persistent types can be used for persistent fields, how to define and use

Shared (L2) Entity Cache

("javax.persistence.cache.retrieveMode",   CacheRetrieveMode . BYPASS ); // For retrieval by type

BIRT/ODA ObjectDB Driver

data source types . Enter data source name (e.g. ObjectDB Points ) and click Next . Specify an ObjectDB

JPA Annotations for Relationships

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

JPA Annotations for Classes

JPA defines three types of persistable classes which are set by the following annotations: Chapter 2 of the ObjectDB manual explains these annotations in detail. Entity and mapped super classes can be further configured by annotations that specify cache preferences and lifecycle event listener

ORDER BY clause (JPQL / Criteria API)

whose type is comparable (i.e. numbers, strings and date values) and is derived from the SELECT

ObjectDB Overview

. Can easily be embedded in applications of any type and size. Tested with Tomcat, Jetty, GlassFish

InterfaceRef jakarta.persistence.EntityManager

given persistent entity identity (defined by an entity type and primary key) there is at most one entity ... instances, plain entities by their primary key, and execute plain which range over entity types ... an optimistic or pessimistic lock on an entity instance. The full range of possible lock types is enumerated

InterfaceRef jakarta.persistence.EntityGraph

JPA Interface EntityGraph Type Parameters: - The type of the root entity. Super Interfaces: Graph This type represents the root of an entity graph that will be used as a template to define ... must be an entity type . The methods to add subgraphs implicitly create the corresponding attribute nodes as

InterfaceRef jakarta.persistence.Subgraph

JPA Interface Subgraph Type Parameters: - The type of the attribute. Super Interfaces: Graph This type represents a subgraph for an attribute node that corresponds to a managed type . Using ... of this managed type . IllegalStateException - if the EntityGraph has been statically defined Inherited

InterfaceRef jakarta.persistence.Graph

- if the attribute is not an attribute of this managed type . IllegalStateException - if the EntityGraph ... ) Add a node to the graph that corresponds to a collection element that is a managed type . This allows for construction of multi-node entity graphs that include related managed types . Parameters

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

type for delete operation Return: the query object Since: JPA 2.1 CriteriaUpdate ... operation. Parameters: targetEntity - target type for update operation Return: the query object Since: JPA 2 ... with the given result type . Parameters: resultClass - type of the query result Return: criteria query object

InterfaceRef jakarta.persistence.criteria.From

JPA Interface From Type Parameters: - the source type - the target type Super Interfaces: Expression , FetchParent , Path Represents a bound type , usually an entity that appears in the from clause ... for Join s of associations, embeddables, and collections belonging to the type , and for Path s

InterfaceRef jakarta.persistence.metamodel.MappedSuperclassType

JPA Interface MappedSuperclassType Type Parameters: - The represented mapped superclass type Super Interfaces: IdentifiableType , ManagedType , Type An instance of the type MappedSuperclassType represents a plain type . Since: JPA 2.0 Public Methods SingularAttribute getDeclaredId (Class   type

InterfaceRef jakarta.persistence.metamodel.EntityType

JPA Interface EntityType Type Parameters: - The represented entity type . Super Interfaces: Bindable , IdentifiableType , ManagedType , Type An instance of EntityType represents an plain type . Since: JPA 2.0 Public Methods SingularAttribute getDeclaredId (Class   type ) Return the attribute

InterfaceRef jakarta.persistence.criteria.Join

JPA Interface Join Type Parameters: - the source type of the join - the target type of the join ... type . Since: JPA 2.0 The FROM clause (JPQL / Criteria API) article explains how to use Join . Public ... , or null if the target of the join is an entity type . Return: metamodel attribute or null Since: JPA

InterfaceRef jakarta.persistence.criteria.Subquery

JPA Interface Subquery Type Parameters: - the type of the selection item. Super Interfaces ... . Since: JPA 2.0 Public Methods Expression as (Class   type ) Perform a typecast upon the expression, returning a new expression object. Unlike cast , this method does not cause type conversion

InterfaceRef jakarta.persistence.TypedQuery

JPA Interface TypedQuery Type Parameters: - query result type Super Interfaces: Query Interface used to control the execution of typed queries. See Also: Query Parameter Since: JPA 2.0 Chapter 4 ... : Query Since: JPA 2.0 Parameter getParameter (String name, Class   type ) Get the parameter

Removing of an entity removes also another entity type

rm from ResolverMapping WHERE rm. type = 'interfaces' // there are also other types like 'scopes' em ... WHERE rm. type = 'interfaces' // now the ResolverMappings with type = 'interfaces' are not available anymore, the result is empty, only the ResolverMappings with type = 'scopes' are still available in

delete of a collection in explorer changes type

accidently we used the option delete on a collection of type ArrayList . On doing so the type ... Hans-Georg Zwicker Is it only an issue with the type of the field as shown by the Explorer or ... have been committed / saved). support Support It is only the type of the filed, don't care

InterfaceRef jakarta.persistence.StoredProcedureQuery

getParameter (String name, Class   type ) Get the parameter object corresponding to the declared parameter of the given name and type . This method is required to be supported for criteria queries only. Parameters: name - parameter name type - type Return: parameter object Throws

Step 3: Create an ObjectDB Data Source

of available data source types . Enter data source name (e.g. ObjectDB Points ) and click Next . Specify

Step 1: Create a Java Project

We start by creating a new Java project, using: File New Project... If you are using Eclipse IDE for Java EE Developers, you can see in the [New] menu a command for creating a [JPA Project]. We are not using that type of project in this tutorial but rather an ordinary Java Project. In the [New

Spring MVC JPA Tutorial - NetBeans Project

the transaction type from RESOURCE_LOCAL to JTA in the persistence.xml file. If  a browser is not opened - open it at http://localhost:8080/Guestbook/.

Miscellaneous JDO Annotations

This section contains miscellaneous JDO annotations and associated enum types :

JDO External Listeners

The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level.

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 :