ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
205

persisting object with long[][] arrays of array

.clear();         emg.close();         EMF.close();     } as a comparison I ran it with simple arrays (not arrays of arrays) - @Entity public class TESTObject2 implements Serializable{     private ... ();         EMF.close();     } note that the dimension of the first object's arrays of arrays are n x 1
145

PostUpdate on array changes

"/> <cascade-persist always = "true" on-persist = "true" on-commit = "true"/> <dirty-tracking arrays ... objectdb.conf file I will revisit the issue of dirty tracking of arrays. However, I have these new concerns ... Moshal Can't seem to get array tracking to work. Given an entity (class A) with property b_list
139

Query by array element

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 ObjectDB
136

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
85

array(selections)

Method javax.persistence.criteria.CriteriaBuilder CompoundSelection<Object[]> 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: JPA 2.0
32

SELECT clause (JPQL / Criteria API)

Object[] elements, one per result. The length of each result Object[] element is 2. The first array cell contains the country name (c.name) and the second array cell contains the capital city name (c ... an alternative to representing compound results by Object arrays, JPA supports using custom result
29

Can not have unique index on Byte Array

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 more that once even if there are no 2 arrays or collections
8

Constants.OPTION_ARRAY

Static Field javax.jdo.Constants String OPTION_ARRAY "javax.jdo.option.Array" Since: JDO 2.1 See Also: PersistenceManagerFactory.supportedOptions()
3

[ODB1] Chapter 4 - JDO Metadata

, arrays and references to user defined classes are excluded by default. The default-fetch-group attribute ... . Wrapper objects, strings, dates, collections and arrays are embedded by default. To use them as non ... field, empty collection, 0 size array, and so on). primary-key The primary-key attribute, defined in
2

[ODB1] Chapter 3 - Persistent Classes

. java.math.BigInteger and java.math.BigDecimal Any array of persistent type, including multi dimensional arrays Some of the persistent types above are defined as optional by JDO (arrays ... not make the class persistence aware. One exception, however, is in working with persistent array

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support