About embedded

manual

Storing JPA Entity Objects

Explains how to use JPA to store (persist) entity objects in the database.... Explicit Persist Referenced Embedded Objects Referenced Entity Objects ... other persistable types can only be stored in the database embedded in containing entities (as field values). A ... See JavaDoc Reference Page... . Referenced Embedded Objects The following code stores an Employee instance ...

 
api-jpa

JPA Annotations for Fields

Reference (JavaDoc) of JPA 2 field annotations, including @Basic, @Embedded, @EmbeddedId, @Version, @Transient, @Enumerated, @MapKeyEnumerated, @Temporal and @MapKeyTemporal.... javax.persistence.Basic javax.persistence.Embedded javax.persistence.ElementCollection ...

 
forum_thread

Embedded Object inside another embedded object - is that possible?

I have an entity with an embedded object - it works fine. Now I am trying to add an embedded object inside the first level embedded object - but it does not seem to store it and does not throw either... I was wondering if it was a limitation or not? has anyone tried this before? Thanks ... I have an entity with an embedded object - it works fine. Now I am trying to add an embedded object inside the first level embedded object - but it does not seem ...

 
forum_thread

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).     #1 2012-06-01 07:35 Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't ...

 
forum_thread

collection of embedded objects

1. In general, are there any restrictions of the use of @Embedded objects in collections, compared to @Entity? 2. If you have a large nested collection of @Embedded objects, and you remove the parent @Entity, does the remove cascade through the whole collection? 3. Is searching through collections of @Embedded objects more expensive (time) than searching through collections of @Entity? ... 1. In general, are there any restrictions of the use of @Embedded objects in collections, compared to @Entity ? 2. If you have a large nested collection of @Embedded objects, and you remove the parent @Entity , does the remove ...

 
forum_thread

Embedded in JDO metadata not working in objectDB 2.x ?

Hi, I am using JDO access to the database with the persistence defined in package.jdo XML metadata files. In those metadata files I have few persistence-capable classes which had extents in ObjectDB 1 (with an OID for every instance) and all other classes were embedded (so without extent and own OID) in those few peristence-capable ones. Example of JDO metadata: ... an OID for every instance) and all other classes were embedded (so without extent and own OID) in those few peristence-capable ones. ... > <field name = "rackGroupList" embedded = "true" /> </class >   <class ...

 
forum_thread

Weird behaviour with enhanced classes and embedded entities

Hi, I've found some weird behaviour in my project (www.tinymediamanager.org): Sometimes some entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing. Here is a small sscce which reproduces the issue: ... Sometimes some entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing. Here is a ... void addEmbeddedEntity ( MyEmbeddedEntity embedded ) { embeddedEntities. add ( embedded ...

 
forum_thread

Server vs embedded mode in multi-instance scenario

We are creating a web app that will have multiple different clients, each on their own EC2 instance(s). The clients do not need to share any data, so each could have its own ObjectDB. Clients have a user base of about 2,000 to 60,000 users that could possibly be using their application at any given time (100k absolute maximum). We will probably have multiple instances per client for availability concerns as well as auto scale during peak usage, at least for the benefit of our web application if not for objectdb.... there will only be one active instance of the app, use embedded mode inside the web application itself. Then if we ever have to boot ... say otherwise, with such a big performance improvement for embedded mode, but maybe that has a limit. Is there a guideline as to system ...

 
forum_thread

Embedable & Reference?

Hi! I've got a situation I do not understand. Assume code like this: ... assigning this.thing = thing they are actually different embedded objects after retrieving from the db? Does this also mean that referencing an already embedded object will save it twice in the db? If so, how can I achieve ...

 
forum_thread

Using explorer with a live embedded db

I want to use ObjectDB explorer with a running embedded db. This issue:  http://www.objectdb.com/database/forum/617   shows a way to do it. I followed the instructions, but still received an error when trying to connect: "...database ... currently in use by another process" I used an explorer on the same machine, trying to connect in both embedded and client-server mode. I could connect when I stopped my program that embedded the db. ... I want to use ObjectDB explorer with a running embedded db. This issue: ... an explorer on the same machine, trying to connect in both embedded and client-server mode. I could connect when I stopped my program that embedded the db. Is   <embedded-server enabled="true" ...