About managed

api-jdo

javax.jdo.JDOHelper

This class can be used by a JDO-aware application to call the JDO behavior of PersistenceCapable instances without declaring them to be PersistenceCapable.(Class of JDO)

 
forum_thread

Navigation to Collection Elements

Greetings ObjectDB team, Suppose I have a collection typed field (list/map/set...) in my persistent object of class X. Can I navigate (as oppose to using JOIN) to individual elements (in JPA & JDO) ? e.g.: x.list.get(10) x.map.get("key") x.list.get(10).get("key") // the element itself is a map Thanks & Best Regards... Yes, you can navigate from any managed entity object to any other reachable managed entity object. All the expressions that you wrote are valid, if x is a ...

 
api-jpa

getAttributes()

Return the attributes of the managed type.(Method of javax.persistence.metamodel.ManagedType)

 
api-jdo

javax.jdo.spi.StateManager

This interface is the point of contact between managed instances of PersistenceCapable classes and the JDO implementation.(Interface of JDO)

 
api-jpa

getAttribute(name)

Return the attribute of the managed type that corresponds to the specified name.(Method of javax.persistence.metamodel.ManagedType)

 
api-jpa

joinTransaction()

Indicate to the entity manager that a JTA transaction is active.(Method of javax.persistence.EntityManager)

 
api-jdo

getObjectId(pc)

Return a copy of the JDO identity associated with the parameter instance.(Static Method of javax.jdo.JDOHelper)

 
api-jpa

javax.persistence.PersistenceContext

Expresses a dependency on a container-managed EntityManager and its associated persistence context.(Annotation of JPA)

 
forum_thread

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a mapped @OneToMany list and an unmapped @OneToMany list are viewable: a.listA_mapped:[{A}[4]"ownedElement1", {A}[5]"ownedElement2"] a.listB_unmapped:[{B}[2]"b1", {B}[3]"b2"] #1 2012-03-14 01:37 In the code example below (also attached) I would like to understand why I am able to print to console a lazy @On ...

 
api-jdo

RegisterClassEvent(helper, registeredClass, fieldNames, fieldTypes, fieldFlags, persistenceCapableSuperclass)

Constructs a new RegisterClassEvent.(Constructor of javax.jdo.spi.RegisterClassEvent)