About fetch

forum_thread

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id IN :ids This querey works as long as I don't set the property "id" as @Id. If i set @Id to any other member, this query works, if I set id as @Id, it stops working and gives zero results. Is this a known limitation or a bug? Do you have any idea how to solve this problem? ... I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT ...

 
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? ... Page... annotation on the collection to specify fetch policy. Currently ObjectDB doesn't cascade operations ...

 
forum_thread

Join query problem with new statetment

Hi, I'm trying to implement some reporting logic in my application and got nasty exception when using query with join. The query code is: ... ( targetEntity = Product. class , fetch = FetchType . LAZY ) private ...

 
api-jpa

javax.persistence.criteria.JoinType

Defines the three types of joins.(Enum of JPA)

 
forum_thread

Navigation through Path to evaluate collection

Hello, I need to evaluate a field ("identifier") which is situated in a collection, within an entity. As stated in the documentation it is not possible to navigate there with the dot operator since its a collection. Is it there a way to evaluate this field? Here is the query, the entity and the related embeddable class. Thanks ... id ; @ ElementCollection ( fetch = FetchType . EAGER ) private ...

 
api-jdo

FetchPlan.maxFetchDepth

The depth of references to instantiate, starting with the root object.(Annotation Element of javax.jdo.annotations.FetchPlan)

 
api-jdo

jdoNewObjectIdInstance(o)

Create a new instance of the class used for JDO identity, using the key constructor of the object id class.(Method of javax.jdo.spi.PersistenceCapable)

 
api-jdo

newObjectIdInstance(pcClass, obj)

Create a new instance of the class used by the parameter Class for JDO identity, using the key constructor of the object id class.(Method of javax.jdo.spi.JDOImplHelper)

 
forum_thread

Object explorer cannot open odb file. ObjectDB many-to-many relationship

I created a data model to test many-to-many relationship with a link table as following (full code in attachement) ... ; em. refresh ( u1 ) ; ///fetch the Assignements collection of u1 assertNotNull ( u1. ...

 
api-jdo

fetchIntField(fieldNumber)

Fetch one field from the field manager.(Method of javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier)