Internal Website Search

1-50 of 200 results

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 ... of these documentation pages is to serve as a reference . In order to learn how to use JPA and ObjectDB please read the ObjectDB manual .

ObjectDB API Reference

All about ObjectDB API Reference in Java/JPA database - explanations, examples, references, links and related information.

Database Explorer

provide easier navigation. Because every reference between two database objects is represented by ... objects. Editing Values and References You can edit simple field values inline in the Tree and Table ... Multi Line String  command to edit a multi-line string. Reference fields can be edited using

Retrieving JPA Entity Objects

accessed. The getReference method is useful when a reference to an entity object is required but not its content, such as when a reference to it has to be set from another entity object. Retrieval by ... , which is usually unacceptable. A persistent reference field can be excluded from this automatic cascaded

Soft Reference Object Cache Recommendation

SoftReference to my large byte[] and instruct ObjectDB to use soft reference for its Level One (L1) object data ... ", only contains a byte[] and uses a soft reference to make that array eligible for GC ... , so there is a strong reference to the byte[] when data needs to be written back to ObjectDB datastore

Storing JPA Entity Objects

an Employee instance with a reference to an Address instance: Employee employee = new Employee("Samuel ... a dangling reference in the database, an IllegalStateException is thrown on commit if a persisted entity object has to be stored in the database in a transaction and it references another entity object

Update Entity references if we change the type of an entity

. As example (like in the attached example): We have an EntityA that have a reference to an EntityB ... , because it's possible that many other entities have just a ID based reference with a simple 'int' field to this element. And we thought that also the real references are based on the ID. This step

Handling deleted references

? This would simplify my use case since all I have to do is to check if the reference is null and create a new ... other value) should be done in the same transaction, to avoid a reference from User to a deleted Profile ... cases where we cannot check for further references (e.g. if the same Profile instance is used twice

Broken @ManyToOne reference

, two instances are created and persisted: a Parent and a Child , the Child instance references the Parent ... reference written: testobjectdb.Parent@e425743 Parent reference read back: null Regards, Vladimir ... )   public AbstractParent prn; } the output of the tests seems as expected: Parent reference written

Missing (null) elements in eager loaded references

etc. So you say that despite of the eager fetching, it is possible that some deeper references are not ... that despite of the eager fetching, it is possible that some deeper references are not yet resolved ... ; Is there an event, notification which indicates that all references have been resolved? So I

Question: remove and recreate an object, do the references survive ?

it has been before, do the references from other objects survive this (assuming that no Doctor is done in between that would remove the orphane references ) ?   hgzwicker Hans-Georg Zwicker References ... reference cleaning. Run the Doctor with this java -Dobjectdb.temp.no-broken-ref-fix=true Doctor support Support Perfect, thanks hgzwicker Hans-Georg Zwicker

Mysterious "Attempt to persist a reference to a non managed instance" error

transaction: Attempt to persist a reference to a non managed failing.Ostrich instance (error 613 ... a reference to a non managed failing.Ostrich instance at com.objectdb.o._PersistenceException.b ... more Caused by: com.objectdb.o.UserException: Attempt to persist a reference to a non managed failing

Privacy Policy

our Service or parts of our Service. Company  ( referred to as either "the Company", "We", "Us" or "Our" in this Agreement) refers to ObjectDB Software Ltd, 109 Vernon House Friar Lane Unit 632 ...  is any information that relates to an identified or identifiable individual. Service   refers

JDO Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of JDO 2.2. The content is derived from the original JDO documentation with some additions and notes. The most basic JDO types are: All the other JDO types are organized into the following sections:

Detached Entity Objects

. Cascading Detach Marking a reference field with CascadeType . DETACH (or CascadeType ... ; : } In the example above, the Employee entity class contains an address field that references ... (e.g. to entity objects that the Address object references , if any). Bulk Detach The following

Deleting JPA Entity Objects

the database require an active transaction. Cascading Remove Marking a reference field with CascadeType ... an address field that references an instance of Address , which is another entity class ... may continue recursively when applicable (e.g. to entity objects that the Address object references

Working with JPA Entity Objects

during a transaction are held in the persistence context by weak references . Therefore, when a managed ... references or soft references instead of weak references . The contains method can check if a specified

Index Definition

, java.sql.Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain ... ; : } @Embeddable class Address { String street; String city; : } Indexes must always refer to values ... is associated with a list of references to the entities that contain that value. Indexes require maintenance

JPA Primary Key

. Reference to an entity object. Composite Primary Key A composite primary key consists of multiple ... . On the other end, such a primary key requires more storage space (especially if there are many references to Event objects in the database because references to entities hold primary key values

JPA Metamodel API

types  (which are referred to as managed types) in the persistent object model ... (); The ManagedType  interface adds methods for exploring managed fields and properties (which are referred

Entity Management Settings

the reference type for holding non dirty entities in the persistence context of the EntityManager ... entities are always held by strong references in the persistence context (until commit or flush

ObjectDB Object Database Features

distribution download . Online searchable JPA API Reference  (based on JavaDoc). Online searchable  JDO API Reference  (based on JavaDoc). Tutorials Various downloadable  tutorials

SELECT clause (JPQL / Criteria API)

path expressions , such as c.name , in query results is referred to as projection. The field values

JPA Entity Fields

- for references of entity types. OneToMany , ManyToMany - for collections and maps of entity types

Setting and Tuning of JPA Queries

" . When LAZY is used result entity objects are returned as references (with no content

Server Configuration

to the data path. For example, "objectdb://localhost/my/db.odb" refers to a database file db.odb in

JPA Persistable Types

The term persistable types refers to data types that can be used for storing data in the database. ObjectDB supports all the JPA persistable types, which are: User defined classes - Entity classes, Mapped superclasses, Embeddable classes. Simple Java data types: Primitive types, Wrappers, String

JPA Query Structure (JPQL / Criteria)

over objects in the database. A query variable that is bound to an entity class is referred to as a range

JPA Queries

are organized in this reference into three groups. SELECT and ORDER BY elements (including tuples): FROM clause

JPA Class Enhancer

can be loaded lazily (by using proxy objects), but persistent fields that reference entity objects directly

What is the Java Persistence API (JPA)?

database programming. A JPA implementation (sometimes referred to as a JPA provider) is needed in

JPA Annotations for Value Generation

can also reference a value generator, which is defined at the class level by using one of the following annotations

JPA Query API

shown above, is referred to in JPA as dynamic query construction because the query string

JPA Annotations for Relationships

Relationships are persistent fields in persistable classes that reference other entity objects. The four relationship modes are represented by the following annotations: Unlike ORM JPA implementations, ObjectDB does not enforce specifying any of the annotations above. Specifying a relationship

Paths and Types in JPQL and Criteria API

reference . In JPQL, the current FROM variable (or FROM tuple when there are multiple variables

JPA Persistence Unit

superclasses), which are referred to by JPA as managed classes, as part of a persistence unit definition

ORDER BY clause (JPQL / Criteria API)

currency, c.name AS name FROM Country c ORDER BY currency, name Alias variables are referred to as

Chapter 1 - Quick Tour

your IDE refer to one of the following tutorials: Getting Started with JPA and Eclipse Tutorial

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

a transaction (including the entity manager) the ODB file writer still holds a reference to entities. Performing similar calls repeatedly hence increases the number of references to entities not longer needed ... EmbeddedSystems Hello, we have already again problems that the ODB file writer still holds references

Lazy loading of mapped by (inverse) singular references

is needed. For ordinary reference fields the type of the references is stored within the entity objects, so it is always available. For mapped by (inverse) reference fields no information is stored in ... every entity object with inverse fields tracking which inverse fields have been loaded and references

spuriously objectdb objects have null references

from time to time we have in a multi threaded environment objects where all the references are null (i.e. references actions, childNodes), even after a subsequent refresh. we are using a separate ... { threadEntityManager.getTransaction().begin(); } catch (Exception e){ } } } ...   the reference

NULL reference, how to remove

;   hgzwicker Hans-Georg Zwicker More information is needed about this NULL reference ... such null references do you have? Do you have any idea what operation could be related ... reference ? If they are ordinary null values in the ArrayList then you can use List 's remove method. See also this question on stackoverflow.   support Support

[ODB1] Chapter 4 - JDO Metadata

and references to user defined classes are excluded by default. The default-fetch-group attribute ... attribute is relevant for persistent reference fields. It indicates whether or not the content of the referred object should be stored as part of the referring object, as an embedded object . Embedded

[ODB1] Chapter 6 - Persistent Objects

broken references in the database and simplifies development. The JDO specification limits the use ... . An embedded object cannot be shared by references from multiple objects. In addition, embedded objects ... or queried directly (an embedded object can only be retrieved using a reference from its containing

[ODB1] Chapter 9 - ObjectDB Explorer

of using the browser window is in navigation among objects. Because every reference between ... a multi line string. Use the "Set Reference " command to set a reference field to a new object, to an exiting object or to null. You can add objects or references to a persistent collection using

[ODB1] Chapter 3 - Persistent Classes

. The JDO specification refers to persistent classes as persistence capable classes . 3.1   ... ) must have a reference to an object whose type is persistent at storage time, e.g. an Integer , or null ... , List and Map ) cannot refer to an unsupported collection, or a collection that contains objects

[ODB1] Chapter 7 - JDOQL Queries

' , ... string "", " ", "abcd\n1234" , ... boolean true, false reference null   As shown in ... to reference a candidate object in other operations, such as method calls and comparison expressions ... to the this reference . Persistent fields of any entity that represents a persistent object can be accessed

[ODB1] Chapter 2 - A Quick Tour

can be stored in the database using JDO. The JDO specification refers to persistent classes as

[ODB1] Chapter 8 - ObjectDB Server

connection string "objectdb://localhost/my/db.odb" refers to a database file db.odb in

[ODB1] Chapter 5 - JDO Connections

(); } Every PersistenceManager instance holds a reference to an attached Transaction instance (i.e