ObjectDB Database Search

1-50 of 200 results

JPA Extended API Reference Guide

. The JPA types are organized in this reference into the following sections : Defines ... . For a comprehensive guide on using JPA with ObjectDB, refer to the ObjectDB manual .

ObjectDB API Reference

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

Database Explorer

makes navigation easier. Because references between database objects are represented as parent-child ... and can therefore be represented by more than one node. To help identify circular references , a special {R ... . Editing values and references You can edit simple field values inline in the Tree and Table viewer

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

Retrieving JPA Entities

method is useful when you need a reference to an entity but not its data, for example, to set ... the entire database into memory, which is often unacceptable. You can exclude a persistent reference field ... and non-map references is FetchType . EAGER , which means the retrieval operation cascades

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

Storing JPA Entities

with a reference to an Address instance: Employee employee = new Employee("Samuel", "Joseph ... instance. To avoid a dangling reference in the database, an IllegalStateException is thrown on commit if a persisted entity references another entity that is not stored in the database at the end

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

WebService : Failed to get reference value of field using enhanced method

.apache.axis2.AxisFault: Failed to commit transaction: Failed to get reference value of field field ... exceptions: org.apache.axis2.AxisFault: Failed to commit transaction: Failed to get reference value ... to get reference value of field using enhanced method" . ClassCast error was only once by me... --- I

Repair broken references in entities

. Are all broken references in other entities on this removed/persisted entity repaired again? best regards ... type with the same primary key, and then references to the old entity should point to the new one (eliminating broken references ). support Support

find out if an entity is refered by other entities

) for a specific relationship ( reference field), so you may have to use many queries to cover all the possible relationships that may reference that child object. As a permanent solution

Embedable & Reference?

behavior. Embedded objects cannot be shared by multiple references . If you have multiple references

Does ObjectDB support @Parent for @Embeddable reference to parent?

/questions/5060891/jpa-how-can-an-embeddable-object-get-a- reference -to-its-owner   webel Dr Darren

Cascading merge() leading to "Attempt to persist a reference to a non managed instance" error

to persist a reference to a non managed ObjectDbCascadingMergeTest$Parent instance - field

removed objects stay with null field values in the reference

. But you may still have broken references to that object, like links to a web page that doesn't exist. support Support

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

Deleting JPA Entities

a transaction. Cascading remove Marking a reference field with CascadeType . REMOVE (or CascadeType ... entities that the field references . @Entity class Employee { : @OneToOne ( cascade = CascadeType . REMOVE ... that references an Address entity. Because of the CascadeType.REMOVE setting, when an Employee

Detached JPA Entities

to related entities, mark the reference field with CascadeType . DETACH or CascadeType ... field that references an Address entity. Because the field is marked with CascadeType.DETACH ... the reference field with CascadeType . MERGE or CascadeType . ALL . When you merge the entity

Index Definition

.util.Date , java.sql.Date , java.sql.Time , java.sql.Timestamp Any enum type A reference ... ; : } @Embeddable class Address { String street; String city; : } Indexes must always refer to values ... of references to the entities that contain that value. Indexes require maintenance time and consume

JPA Relationships Annotations

attributes (persistent fields or properties) in persistent classes that hold a reference or a collection of references to other entities. Jakarta Persistence (JPA) provides annotations to configure ... a collection. Defines a single-valued association where multiple entities reference a single target entity

Managing JPA Entities

been modified or removed during a transaction are held in the persistence context by weak references ... to use strong or soft references instead of weak references . Use the contains method to check

JPA Primary Key

.OffsetDateTime , java.time.Instant. Any enum type. A reference to another entity. Composite primary key ... if there are many references to Event objects in the database, because references to entities hold

Entity Management Settings

for the two entity cache mechanisms: The ref attribute specifies the reference type for holding non ... references in the persistence context (until commit or flush ), regardless of this setting. The level2

ObjectDB Object Database Features

. Online searchable JPA API Reference  (based on JavaDoc). Online searchable  JDO API Reference  (based on JavaDoc). Tutorials Various downloadable  tutorials for Eclipse, NetBeans

JPA Entity Fields

: @OneToOne , @ManyToOne : For references to entity types. @OneToMany , @ManyToMany : For collections and maps

Setting and Tuning of JPA Queries

) or "LAZY" . When LAZY is used, result entities are returned as references with no content

Server Configuration

.odb refers to a database file named db.odb in a subdirectory named my within the data directory

JPA Named Queries Annotations

of the ObjectDB Manual. Query references Access named queries in the application by name or by using

JPA Metamodel Attributes

, wrappers, Strings), embedded objects, and associations ( reference fields and properties

JPA Queries

instructions, refer to the JPA Query API section in the ObjectDB manual. Criteria query API

JPA Class Enhancer

), but persistent fields that reference entities directly (in a one-to-one relationship) must be loaded

What is the Java Persistence API (JPA)?

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

JPA Runtime Tuning & Configuration

provides a quick reference for applying these settings across different scopes. Setting Global

JPA Metamodel and Graphs

and further explanation, refer to the JPA Metamodel API section in the ObjectDB manual. Criteria query

Paths and Types in JPQL and Criteria API

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

JPA Persistence Unit

definition. JPA refers to these as managed classes. Classes listed in mapping files, as well as annotated

jakarta.persistence.EntityManager

createQuery ( TypedQueryReference reference ) Create an instance of TypedQuery for executing a named query written in the Jakarta Persistence query language or in native SQL. Parameters: reference - a reference ... to the database. Managed entities which reference the given entity continue to reference

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

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

that every Element object (except Project itself) gets a Project reference on construction: INFO ... exception: Caused by: javax.ejb.EJBException: Attempt to persist a reference to a non managed com

Deleting a broken reference that was fixed to null in the Explorer

Using version 2.7.4_01, we did a repair. After repair a former link to a missing reference was converted to null. This cannot be deleted using explorer   hgzwicker Hans-Georg Zwicker Thank you for this report. Build 2.7.4_02 fixes the issue. support Support

Cascade.ALL with LAZY fetchtype does not clean up all references on remove

Hello, I have a tree of entity classes that reference others using Cascade.ALL in combination with FetchType.LAZY. If I now delete a root entity using EntityManager.remove all leaf nodes will not be deleted. This only applies to the leaf nodes. If I add an additional the behaviour changes

References to objects of missing obsolete entity classes

References to objects of missing obsolete entity classes

jakarta.persistence.NamedAttributeNode

) 1.0 String subgraph (Optional) If the attribute references a managed type that has its own AttributeNodes, this element is used to refer to that NamedSubgraph definition. If the target type ... ) If the attribute references a Map type, this element can be used to specify a subgraph for the Key in the case