About managed

manual

Working with JPA Entity Objects

Explains the entity object lifecycle and the persistence context.... life cycle of entity objects consists of four states: New, Managed, Removed and Detached. When an entity object is ... in the database. An entity object becomes Managed when it is persisted to the database via an EntityManager’s ...

 
api-jpa

javax.persistence.metamodel.MappedSuperclassType

Instances of the type MappedSuperclassType represent mapped superclass types.(Interface of JPA)

 
api-jpa

javax.persistence.metamodel.IdentifiableType

Instances of the type IdentifiableType represent entity or mapped superclass types.(Interface of JPA)

 
api-jpa

javax.persistence.metamodel.ManagedType

Instances of the type ManagedType represent entity, mapped superclass, and embeddable types.(Interface of JPA)

 
api-jpa

javax.persistence.metamodel.EmbeddableType

Instances of the type EmbeddableType represent embeddable types.(Interface of JPA)

 
api-jpa

javax.persistence.metamodel.EntityType

Instances of the type EntityType represent entity types.(Interface of JPA)

 
forum_thread

List managed entities for a given entity manager

Hi, Is there a way to find the number of managed entities given an entity manager? My application has some memory leaks - I am doing clear() on the entity manager(s) but may be I forgot some - so if there is a way to know how many entities are managed by each my entity mgr - it would be helpful. Thanks, EKK ... Hi, Is there a way to find the number of managed entities given an entity manager? My application has some ... some - so if there is a way to know how many entities are managed by each my entity mgr - it would be helpful. Thanks, ...

 
forum_thread

Mysterious "Attempt to persist a reference to a non managed instance" error

I've been working with ObjectDB for the past several months, and it's behaved pretty much as expected. I made a few modifications to a working set of classes today, and it's started throwing exceptions at commit time. I've stripped it down to a  set of files that seem to be of trivial complexity, but it's still failing. It involves two entities, Index and Ostrich. The thing to note is that the Index structure is recursive through maps; but that's never caused any problem for me in the past. ... transaction: Attempt to persist a reference to a non managed failing.Ostrich instance (error 613) at ... Attempt to persist a reference to a non managed failing.Ostrich instance at ... Attempt to persist a reference to a non managed failing.Ostrich instance at com.objectdb.o.MSG.d(MSG.java:61) at ...

 
manual

Entity Management Settings

Explains settings and performance tuning of JPA entities in ObjectDB, the fast Java object database for JPA/JDO.... specifies the size of the shared level 2 cache that is managed by the EntityManagerFactory ...

 
api-jpa

javax.persistence.EntityManagerFactory

Interface used to interact with the entity manager factory for the persistence unit.(Interface of JPA)