About managed

11-20 of 200Refresh
Manual
22

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
Forum
22

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
20

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
19

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
19

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
JPA Doc
18

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
18

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
JPA Doc
18

javax.persistence.metamodel.IdentifiableType

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 - the name of the represented ... of the given name is not present in the managed type Since: JPA 2.0 Set< Attribute> getAttributes
JPA Doc
18

javax.persistence.metamodel.ManagedType

(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 - the name ... - if attribute of the given name is not present in the managed type Since: JPA 2.0 Set< Attribute
JPA Doc
18

javax.persistence.metamodel.MappedSuperclassType

types. Since: JPA 2.0 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 ... the managed type Since: JPA 2.0 Set< Attribute> getAttributes() Return the attributes