Home » Search

About object

81-90 of 200Refresh
Forum
11

Query can't see recently persisted object

does not appear to present a read consistent view of persisted objects within the same transaction. e ... . However if I call flush() on the EntityManager after the persist() the object will be found. Clearly ... the transaction. Is there a way of using or configuring ObjectDB to ensure read consistency of objects persisted
Forum
11

First query before any of the object has been stored

I have some code that, before writing an object via ObjectDB makes a query to ensure the new object is different from what's already stored.  The problem is that, before any instances of that object ... some other persistence related exception.  How can I know if any of an object has been stored
Forum
11

Changing existing objects from Entity to Embedded

-only, made a migration utility which read the original objects, converted them to the new classes and stored ... this matter. Is the change of not-embedded to embedded supported by ObjectDB for existing objects ... . To use embedded objects you must declare classes as embeddable (rather than the reference fields as in
Forum
11

Does aggregate function "greatest" work on entity objects?

Does aggregate function "greatest" work on entity objects? do not come to the function "compareTo ... static final long serialVersionUID = 1L; @Override public int compareTo(Object t ... .DialogItem[ id=" + getId() + " ]"; } } Thanks for your help. Entity objects are not comparable
Forum
11

Embedding Managed Entities in Embedded Objects = bad idea

Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't tried embedding un-managed entities in embeddable objects, though I imagine that's not a great idea. The the error message isn't all that obvious (attempting to persist object which already has an id
Forum
11

How to define database structure and insert some initial objects from scratch

the initial database structure of our application? We know objectdb is all about objects and probably doesn't ... , however, could be simple. Just build your entity objects and persist them. e.g. public class Main {     public ... .createEntityManager();         // Store 1000 Point objects in the database:         em.getTransaction().begin
Issue
11

New entity objects are duplicated on merge cascading

When merge is cascaded to a new entity object that has not been persisted ... managed ..." exception, when the duplicated object is referenced from another new / dirty entity object by a reference with cascading persist disabled. The following test case demonstrates
Forum
11

ObjectDB 2.6.9_06 (embedded): Cascading merge resulting in duplicate objects

this class. If I load a NaturalPerson entity from the database, then add a new address to the object's "addresses" list and use EntityManager.merge(object) to persist it along with the new address ... "EntityManager.persist(object)" instead, only one Address entity is created (as expected). Am I
Forum
11

Removing objects where ManyToMany relationships exist

It is application responsibility to prevent broken references. When an OtherEntity object is deleted ... you for your answer and help. Two short follow-up questions: You write that trying to access a removed object ... well enough, even if there's millions of Entity and OtherEntity objects in the database, and ten-thousands
Forum
11

selecting objects that have a particular key/value in persistant HashMap

, String> called 'pMap' as a persistable field.  I am able to create Person objects and persist them as ... that the pMap field of some Person objects has the key/value pair "location'/'California'.  Can I create a JPA query that selects such objects?  Something like the following (but clearly does not work