ObjectDB Database Search

1-50 of 88 results

jakarta.persistence.criteria.CriteriaBuilder.array(Selection...)

array (    Selection ... selections ) Create an array -valued selection item. Parameters: selections - selection items Returns: array -valued compound selection. Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.array(List)

array (    List selections ) Create an array -valued selection item. Parameters: selections - list of selection items Returns: array -valued compound selection. Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 3.2

persisting object with long[][] arrays of array

arrays (not arrays of arrays ) -    @Entity public class TESTObject2 implements ... object's arrays of arrays are n x 1 - so the amount of data saved is exactly the same - So it looks like there is something ObjectDb (2.7.1) does not like about arrays of arrays . Thanks EKK   EKK

SELECT clause (JPQL / Criteria API)

[] elements, one for each result row. Each array contains two elements: the first is the country name ... ]); } As an alternative to representing compound results with Object arrays , JPA supports using ... . The CriteriaBuilder interface provides three factory methods for building CompoundSelection instances: array

JPA Persistable Types

`, `Date`, and math types. Multi-value types: Collections, maps, and arrays . Miscellaneous types: Enum ... , and Properties . Arrays , including multi-dimensional arrays . Both generic ( for example, `ArrayList ... their values (that is, elements in collections and arrays , and keys and values in maps) are either `null

Updating JPA Entities

section in Chapter 5. However, detecting changes to arrays requires using snapshots even if the entity classes are enhanced. Therefore, for efficiency, ObjectDB by default ignores array changes ... previously, array changes are not detected automatically by default, but you can report a change explicitly

PostUpdate on array changes

objectdb.conf file I will revisit the issue of dirty tracking of arrays . However, I have these new ... ? dmoshal David Moshal Can't seem to get array tracking to work. Given an entity (class A)  ... on JDO. Question: Is array tracking only available with the JDO api ? dmoshal David Moshal  

Query by array element

This query is not supported since you cannot access arrays in queries. You can implement a method in MyEntity that wraps the array access operation and then use that method in the query. It is supported by

Problem with byte arrays in JDO - ClassCastException

A bizarre ClassCastException is thrown if I attempt to obtain a byte array field as the result of a Query: Exception in thread "main" java.lang.ClassCastException: java.lang.Boolean cannot be cast to [B at spiffy.test.ObjectdbTest.main(ObjectdbTest.java:44) package spiffy.test; import java.util

Problem with byte arrays in JDO - internal exception

Problem with byte arrays in JDO - internal exception

Database Schema Evolution

to any other date/time type. From any collection or array type to any other collection or array type ... to any collection or array that can contain that object as an element. From any map type to any

JPA Criteria Query Selection and Results

composed of multiple items, commonly used for projections. It supports three types: arrays ( CriteriaBuilder. array ), application defined result classes  ( CriteriaBuilder.construct ), and tuples ... ;the result as an array of objects or as individual values by index, alias string or

ObjectDB Object Database Features

) indices. Collection and array elements are indexable (extremely fast JOIN queries). Map keys ... , Hashtable, WeakHashMap, IdentityHashMap, LinkedHashMap, TreeMap and Properties. Arrays , including multidimensional  arrays . Any other serializable type . Lifecycle Events JPA callback methods

Index Definition

to an entity Arrays and collections that contain values of the above types, including null You can define ... -tree keys are all the unique values from the indexed field (or arrays of values for composite indexes

Entity Management Settings

time is sufficient and more efficient than double cascading. The element The arrays attribute of the element specifies whether to automatically track modifications to array cells in enhanced classes

GROUP BY and HAVING clauses

[] arrays of length three. The first element in each array is a String object for the initial letter

JPA Query Structure (JPQL / Criteria)

( select , distinct , multiselect , array , tuple , construct ) Criteria FROM ( from , join , fetch

JPA Criteria API Queries

, multiselect , array , tuple , construct ) FROM clause ( from , join , fetch ) WHERE clause ( where ) GROUP

jakarta.persistence.criteria.CriteriaBuilder

. Since: Jakarta Persistence (JPA) 1.0 CompoundSelection array ( Selection ... selections ) Create an array -valued selection item. Parameters: selections - selection items Returns: array -valued compound selection. Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item

jakarta.persistence.criteria.CriteriaQuery

method. An argument to the multiselect method must not be a tuple- or array -valued compound selection ... class X, an instance of type X[] will be returned for each row. The elements of the array ... of type Object[] will be instantiated and returned for each row. The elements of the array

jakarta.persistence.SchemaValidationException

, Exception... failures ) Constructs a new instance with a message and, optionally, an array ... - an array of exceptions, each representing a separate problem message - an overall message Since: Jakarta Persistence (JPA) 1.0 Public Instance Methods Exception[] getFailures () An array of problems

Can not have unique index on Byte Array

an index that does not allow duplicate keys. An index on a collection or array (including byte[]) treats every element in the collection or the array as a separate entry. Therefore, if a field of collection or array type is declared as unique an exception is thrown if any element is repeating

jakarta.persistence.criteria.CriteriaQuery.multiselect(Selection...)

be a tuple- or array -valued compound selection item. The semantics of this method are as follows ... for each row. The elements of the array will correspond to the arguments of the multiselect method, in ... for each row. The elements of the array will correspond to the arguments to the multiselect method

jakarta.persistence.criteria.CriteriaQuery.multiselect(List)

method must not be a tuple- or array -valued compound selection item. The semantics of this method are as ... , an instance of type X[] will be returned for each row. The elements of the array will correspond ... row. The elements of the array will correspond to the elements of the list passed

Exception on comparing array fields against parameters in queries

Exception on comparing array fields against parameters in queries

not possible to add an existing object to an array via explorer

not possible to add an existing object to an array via explorer

Entity Update - Is the documentation up to date?

automatically. Second, I'm using an array of entities inside another entity, and setting the elements of that array without calling JDOHelper.makeDirty.  These changes are also automatically ... well but it may be less portable. I'm using an array of entities inside another entity, and setting the elements of that array

jakarta.persistence.SchemaValidationException.SchemaValidationException(String,Exception...)

instance with a message and, optionally, an array of exceptions, each representing a problem detected while validating the schema. Parameters: failures - an array of exceptions, each representing

Bug: ClassCastException by retrieval

Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: package test; import java.util. Arrays ; import javax.persistence.Entity; import javax.persistence.EntityManager ... .getTa()); System.out.printf(" Arrays : %s %n", Arrays .toString(tn2.getTa()));   Character[] la

Navigation to Collection Elements

") // the element itself is a map How about arrays like x. array [1] and x. array [1][2] ? Thanks & Best ... it to be done in JPA/JDO queries. How about arrays like x. array [1] and x. array [1][2] ? If such navigations ... expressions (by using JPA's JOIN or JDO's contains). The array expressions that you wrote are not

jakarta.persistence.NamedNativeQueries

NamedNativeQuery[] value (Required) Array of NamedNativeQuery annotations. Since: Jakarta Persistence (JPA) 1

jakarta.persistence.Tuple

(JPA) 1.0 Object[] toArray () Return the values of the result tuple elements as an array . Returns

jakarta.persistence.criteria.CompoundSelection

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.CompoundSelection Type Parameters: - the type of the selection item Super Interfaces: Selection , TupleElement The CompoundSelection interface defines a compound selection item (a tuple, array , or result of a constructor

jakarta.persistence.Basic

should use the date/time types defined in the package java.time , or the primitive array types char

jakarta.persistence.NamedQueries

article explains how to use NamedQueries . Annotation Elements NamedQuery[] value (Required) An array

jakarta.persistence.NamedStoredProcedureQueries

) 2.1 Annotation Elements NamedStoredProcedureQuery[] value (Required) Array

jakarta.persistence.criteria.CriteriaBuilder.tuple(Selection...)

: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.tuple(List)

: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.CriteriaBuilder.construct(Class,Selection...)

item. Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Tuple.toArray()

Jakarta Persistence (JPA) Method in jakarta.persistence.Tuple Object[] toArray() Return the values of the result tuple elements as an array . Returns: tuple element values. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedNativeQueries.value

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedNativeQueries NamedNativeQuery[] value (Required) Array of NamedNativeQuery annotations. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedStoredProcedureQueries.value

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedStoredProcedureQueries NamedStoredProcedureQuery[] value (Required) Array of NamedStoredProcedureQuery annotations. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedQueries.value

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedQueries NamedQuery[] value (Required) An array of NamedQuery annotations. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.SchemaValidationException.getFailures()

Jakarta Persistence (JPA) Method in jakarta.persistence.SchemaValidationException Exception[] getFailures() An array of problems detected while validating the schema. A persistence provider might choose to fail fast upon encountering a problem with one database object, in which case

Dirty checking

thinking, I need to: 1) set the config file to track array changes. 2) capture all entities changed ... another transaction. Note that you have to enable array change tracking only if you have Java arrays (e.g ... portable and more efficient) are automatic. support Support Great, thanks, I'm not using Java Arrays

Problem with distinct select, order by and equivalent alias/attribute path

de.solvit.objectdbtest.entity.Street; import java.util. Arrays ; import java.util.List; import java.util ... class Main {     private static final List locations = Arrays .asList(    ... ;  );     private static final List streets = Arrays .asList(     

Unable to convert 1.x odb file to 2.x

check the attachments. I believe this could be caused by having an array of objects as the value in ... data. support Support Thanks for your help. The issue with the object array in a map I will solve via some migration to a structure where the value in the map will be a user defined class containing the array . jakab Gergely Jakab

Saving custom list which implements java.util.List fails

: ... For example, the Arrays .asList method returns an instance of an internal Java collection type ... EntityWithList { private List words = Arrays .asList("not", "ArrayList"); } @Entity public class Point ... defined classes. Notice, however, that similarly to the  Arrays .asList example from the manual

Use temporary files to enable very large transactions

the first level cache (by flush() and detach()). But an array of bytes, any ObjectDB memory ... will be bigger after flush. Also we see in a heap dump many byte arrays which are referenced by ObjectDB classes. The count of byte arrays grows after flush and clear, although we start the GC

Enhanced classes problem

a  CacheableJobAccountingInfo[] array into a  CacheableJobAccountingInfo field ... , which should solve the problem. Using arrays for relationships is non standard (not supported by JPA ... with the List instead of array and another problem occurs:   java.lang.ArrayIndexOutOfBoundsException: -1