About object

91-100 of 200Refresh
Forum
10

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
10

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
10

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
10

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
10

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
10

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
10

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
10

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
Forum
10

A few questions on object database design

there are advantages and disadvantages in each method. In many cases using embedded objects improves performance ... , if the entity object becomes too big and it includes a lot of data that is not always needed
Forum
10

Adding multi part path index on non-embedable object member

Is there a way to add single member index on members of a object member which is not configured embedable but is/are mapped by id like the two members below.  @Entity public class Customer ... { ... } There is a documentation says it works on embedded objects only. So since it reference