ObjectDB Database Search

101-150 of 200 results

JPA vs JDO - which is more efficient for OneToMany queries?

implementations it is more efficient to use non collection references , to avoid a JOIN table (so a reference from ... ORM-based implementations. By the way, if you define the reference in Order , you can use an inverse ... , however, it is efficient to define the reference in either side. Therefore, the same definition

Some details about db behavior

is empty and I persist a valid B entity (that contains actual A reference ) I observe some behavior ... will refer to it. Please explain what is happening there? I know about cascade option, and if I use it A will be persisted under A type... but is B referring to that A or it is keeping a copy

Cascading makeTransient

of B contain the field __odbTracker of type com.objectdb.o.EMT, which then holds a reference ... enhancement. The problem is the direct reference from com.objectdb.o.EMT to A that prevents garbage collecting of A instances (the reference com.objectdb.o.ENT is less important since after making

Problem upgrading

.springframework.orm.jpa.JpaSystemException: Failed to set reference value of field property at.co.pjm.tracker ... ._PersistenceException: Failed to set reference value of field property at.co.pjm.tracker.persistence.Unit ... (Thread.java:745) [na:1.8.0_72] Caused by: com.objectdb.o._PersistenceException: Failed to set reference

Failed to resize file - file system limitation error

; Can you please advise on next steps? Thank you, Clinton   [12161] Page #26356937 has invalid reference from key 'AEA6C33' to child page #7 8764514. [12162] Page #27778657 has invalid reference from key ... reference from key 'A4F58B6' to child page #7 8764512. [12164] Page #33415486 has invalid reference

can removing an entity throw an exception if the entity is in use?

Suppose you have an entity @Entity class A { ... } and other entities with references to A.   e.g. @Entity class B { A a; // explicit reference to A List list; // list of A's Set set ... an instance of A, even if a managed B has some reference to that A. When I then find the B instance

Explorer in 2.3

for circular references ) c. Binary - Select some objects, serialize the data to a binary file ... and more importantly managing a scrollable window - require at least loading all the references in advance ... is to put a reference 'this' in the symbol table referring to the current object, which would allow

Updating Entities

around with toString() and tracing these objects' references around I found an interesting bit of information that I didn't realize before. Apparently the object references stored in each of my EntityManagers ... only Employees with this Paygrade e.setPaygrade(p); //Update the Paygrade reference to an existing one p

Felix, rollback exception, error 613

: Failed to get reference value of field field db.Point.x using enhanced method (error 613)    ... .PersistenceException: com.objectdb.o.UserException: Failed to get reference value of field field db.Point.x using ... to get reference value of field field db.Point.x using enhanced method     at com.objectdb

evictAll() behavior

references to your objects are always used (in order to detect future changes) and objects ... ).  ObjectDB doesn't hold strong references to hollow objects, so if your application doesn't hold strong references either - they can be garbage collected. support Support evictAll - i

Objectdb Doctor

are removed/deleted from the databases - it is the application responsibility to clear any references to them from other objects in the database (except references in inverse / mapped by fields ... during development and testing can help in identifying failures. If the Doctor reports broken references

Error 613 - i cant put a list into a Squad object

test.Squad.athlets using reflection: Attempt to persist a reference to a non managed 'test.Athlet ... .athlets using reflection: Attempt to persist a reference to a non managed 'test.Athlet' instance at com ... .athlets using reflection: Attempt to persist a reference to a non managed 'test.Athlet' instance at com

Eclipse plugin problem (using ObjectDB as a separate bundle)

a reference to a non managed com.epimss.lab.data.misc.OtherRqst instance (error 637) at com.objectdb.jpa ... default. Therefore, when you persist an object it must reference only objects that are already managed ... .objectdb.jpa.EMImpl.commit(EMImpl.java:277)  refers to JPA. Is this suppose to be there?  

Lock prevents PersistenceManager.close when retainValues = false

(Finalizer.java:209) Locked ownable synchronizers: - None " Reference Handler" - Thread t@2 java.lang.Thread.State: WAITING at java.lang.Object.wait(Native Method) - waiting on (a java.lang.ref. Reference $Lock) at java.lang.Object.wait(Object.java:502) at java.lang.ref. Reference .tryHandlePending( Reference

Entity Management Config questions

: The ref attribute specifies the reference type for holding non dirty entities in the persistence ... references in the persistence context (until commit or flush), regardless of this setting. Question : What exactly is the difference between "weak", "soft", and "strong" references ? dmoshal

Caching/Paging Questions...

references to such cached result objects ? or do ObjectDB exploits frequency of querying such objects ... (but the difference is not huge). You can either use application managed strong references or you can set the configuration , so strong references will be used automatically until the persistence context is cleared

Removing objects where ManyToMany relationships exist

responsibility to prevent broken references . When an OtherEntity object is deleted the application must also remove any references to it, including from the  setOfOtherEntities TreeSet . Broken references are not null values and they are more difficult to handle because accessing them cause exceptions

Dependency from enhanced classes to the objectDB library

not refer to a single project, but refers to the current workspace. To add objectDB lib ... which the objectdb.jar (when used as an OSGi bundle) exports types that enhanced classes reference ... & orm.xml) and has a reference to all bundles with entities. Basically this works. But only as long as

Slow searching with two indexes

- one is the primary key (id) and so is different for each object, and the other is an object reference ... at the database log, the way the query is run is that all values of the object reference key ... number of the most recent objects, like this: select from Thing where reference == :objectReference order

Multi-Threading/Distributed-Database Questions...

while still being able to cross reference objects on both, i.e. distributed database/graph of objects ? Kind Regards ... execution and multithreading in this previous thread . References from objects in one database to objects in another database are not supported. Applications can simulate such references by holding

javax.persistence.criteria.Root

JPA Interface Root Type Parameters: - the entity type referenced by the root Super Interfaces: FetchParent , From A root type in the from clause. Query roots always reference entities. Since: JPA 2.0 The FROM clause (JPQL / Criteria API) article explains how to use Root . Public Methods EntityType

Best practise loading big data

a reference on the retrived entities then we discover that the memory consumption is extremly high, many ... ? With enhanced classes ObjectDB is not expected to hold strong references (which prevents garbage ... and paths of strong references from roots to objects? support Support @Entity class MyStepBlockCollection

again merger missing logs + objectdb exception

it would be a great help. The Doctor also lists many broken references . Broken references could be application ... ). Are you aware for something in your application that can cause broken references or ... Support the broken references are something that we are aware of, not connected in general

Freeze during save

(Finalizer.java:209) Locked ownable synchronizers: - None " Reference Handler" - Thread t@2 java.lang.Thread.State: WAITING at java.lang.Object.wait(Native Method) - waiting on (a java.lang.ref. Reference $Lock) at java.lang.Object.wait(Object.java:502) at java.lang.ref. Reference .tryHandlePending( Reference

Referential Integrity

that reference integrity is not broken and there are no dangling references . Future versions of ObjectDB should support reference integrity. support Support *VERY* important feature for any serious db app ... most. And the only thing that blocked me from transfer to ObjectDB. huyi Ray Hu As indicated above, reference

Enhanced classes problem

, following errors occurs: Caused by: com.objectdb.o._PersistenceException: Failed to set reference value ... by: com.objectdb.o.UserException: Failed to set reference value of field field eu.ysoft.safeq.core ... /23 09:25:26.156 | Failed to set reference value of field field eu.ysoft.safeq.core.cache.entity

Unexpected Exception during commit

. I am not sure which reference causes the NullPointerException . The only reference in that line ... miss. On the next line other references that are related to the inverse field are used. Maybe that inverse reference field has special type or setting causing this problem.   support Support I've

ClassCastException thrown when running count query

look as the same exception. At least this one seems to be related to broken references . The Doctor detects many broken references in this database. Notice that currently ObjectDB doesn't enforce reference integrity and it is the application responsibility to avoid deletion from the database

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

the following explanation I will refer to the (bi-directional) ownedElements List of the Element class ... and lazy references are not expected to be loaded before detachment. You may ask - why EclipseLink works differently in this case? Good question but you will have to refer it to the EclipseLink guys

Out of Memory - Slow leak?

. It seems that there is a problem with some heavy objects that ObjectDB manages using  reference counting. Somehow in an unknown situation the reference count drops to -1 and then the objects are pinned ... . It should solve the problem by blocking an attempt to decrease the reference count below 0. In addition

javax.jdo.FetchPlan

that number of references from the initial object to be fetched. Parameters: fetchDepth - the depth

FetchPlan.setMaxFetchDepth(fetchDepth) - JDO Method

that number of references from the initial object to be fetched. Parameters: fetchDepth - the depth Return: the FetchPlan Since: JDO 2.0

javax.jdo.InstanceCallbacks

collection of referred instances can occur. Since: JDO 1.0 Public Methods void jdoPostLoad () Called

javax.jdo.JDOHelper

, PersistenceCapable classes are able to detect changes made to their fields. However, if a reference to an array

JDOHelper.makeDirty(pc,fieldName) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper void makeDirty (   Object pc,    String fieldName ) Explicitly mark the parameter instance and field dirty. Normally, PersistenceCapable classes are able to detect changes made to their fields. However, if a reference

PersistenceManager.getExtent(persistenceCapableClass,subclasses) - JDO Method

itself might not reference any instances, but only hold the class name and an indicator as to whether subclasses

javax.jdo.PersistenceManagerFactory

of primitive types and immutable reference types are restored to their values as of the beginning

PersistenceManagerFactory.setRestoreValues(restoreValues) - JDO Method

and immutable reference types are restored to their values as of the beginning of the transaction

javax.jdo.Transaction

of primitive types and immutable reference types are restored to their values as of the beginning

Transaction.setRestoreValues(restoreValues) - JDO Method

of modified instances of primitive types and immutable reference types are restored to their values as

javax.jdo.annotations.FetchPlan

fields retrieved by queries. Since: JDO 2.1 int maxFetchDepth default 1 The depth of references

javax.jdo.annotations.FetchPlan.maxFetchDepth

JDO Annotation Attribute in javax.jdo.annotations.FetchPlan int maxFetchDepth default 1 The depth of references to instantiate, starting with the root object. Since: JDO 2.1

javax.jdo.annotations.Persistent

. For example, "line.point1.x" refers to the member x in class Point that is embedded as member point1 in class

javax.jdo.annotations.Persistent.name

JDO Annotation Attribute in javax.jdo.annotations.Persistent String name default "" Name of the member when this is embedded in another object. The fully-qualified member name is used. For example, "line.point1.x" refers to the member x in class Point that is embedded as member point1 in class

javax.jdo.spi.JDOImplHelper

is called by the constructors of JDO Reference Implementation classes. Parameters: smClass - a Class

JDOImplHelper.checkAuthorizedStateManagerClass(smClass) - JDO Static Method

JDO Static Method in javax.jdo.spi.JDOImplHelper void checkAuthorizedStateManagerClass (   Class smClass ) Check that the parameter instance is a class that is authorized for JDOPermission("setStateManager"). This method is called by the constructors of JDO Reference Implementation

PersistenceCapable.jdoMakeDirty(fieldName) - JDO Method

JDO Method in javax.jdo.spi.PersistenceCapable void jdoMakeDirty (   String fieldName ) Explicitly mark this instance and this field dirty. Normally, PersistenceCapable classes are able to detect changes made to their fields. However, if a reference to an array is given to a method

javax.jdo.spi.StateInterrogation

. However, if a reference to an array is given to a method outside the class, and the array

StateInterrogation.makeDirty(pc,fieldName) - JDO Method

. However, if a reference to an array is given to a method outside the class, and the array is modified

StateManager.replacingStateManager(pc,sm) - JDO Method

that the owning StateManager is the only source of any change to its reference in the PersistenceCapable