Home » Search

About managed

11-20 of 200 Refresh
Forum
27

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
Manual
23

SELECT clause (JPQL / Criteria API)

The ability to retrieve managed entity objects is a major advantage of JPQL. For example, the following query returns Country objects that become managed by the EntityManager em: TypedQuery ... > results = query.getResultList(); Because the results are managed entity objects they have all the support
Manual
21

CRUD Database Operations with JPA

a managed entity) by the persist method. The new Point objects are physically stored in the database ... Entities JPA refers to entity objects that are associated with an EntityManager as ' managed'. A newly constructed entity object becomes managed by an EntityManager when the persist method is invoked
Manual
20

Detached Entity Objects

Detached entity objects are objects in a special state in which they are not managed by any EntityManager but still represent objects in the database. Compared to managed entity objects, detached ... the database unless modified detached objects are merged back into an EntityManager to become managed
Manual
20

JPA Metamodel API

details on managed classes and persistent fields and properties, similarly to the ability that Java ...  (which are referred to as managed types) in the persistent object model. Three methods can be used to retrieve sets of types: // Get all the managed classes: // (entity classes, embeddable classes
Forum
19

Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers

(through spring) with different tx managers, please find an example of this below. Any help is greatly ... ="entityManagerFactory" /> manager="txManager" /> managing transactions -->   manager="myTxManager" />
Forum
19

em.flush(); em.clear(); loosing data and not persisting managed objects

tracking management system called CMVC, since I don't have direct access to that database ... .CMVCSync.main(CMVCSync.java:61)   [2011-05-05 22:28:02 #132 query. manager] [2011-05-05 22:28:02 #138 query. manager]
Forum
19

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

.RollbackException Failed to commit transaction: Attempt to persist a reference to a non managed failing ... .UserException: Attempt to persist a reference to a non managed failing.Ostrich instance at com.objectdb.o ... a reference to a non managed failing.Ostrich instance at com.objectdb.o.MSG.d(MSG.java:61) at com
JPA Doc
19

javax.persistence.metamodel.EmbeddableType

getAttribute(String name) Return the attribute of the managed type that corresponds to the specified name. Return the attribute of the managed type that corresponds to the specified name. Parameters: name ... : IllegalArgumentException - if attribute of the given name is not present in the managed type Since: JPA 2.0 Set
JPA Doc
19

javax.persistence.metamodel.EntityType

Attribute getAttribute(String name) Return the attribute of the managed type that corresponds to the specified name. Return the attribute of the managed type that corresponds to the specified ... Throws: IllegalArgumentException - if attribute of the given name is not present in the managed type