About entities

41-50 of 200Refresh
JPA Doc
28

merge(entity)

Method javax.persistence.EntityManager T merge(   T entity ) Merge the state of the given entity into the current persistence context. Parameters: entity - entity instance Returns: the managed instance that the state was merged to Throws: IllegalArgumentException - if instance is not an entity or
JPA Doc
28

persist(entity)

Method javax.persistence.EntityManager void persist(   Object entity ) Make an instance managed and persistent. Parameters: entity - entity instance Throws: EntityExistsException - if the entity already exists. (If the entity already exists, the EntityExistsException may be thrown when the persist
JPA Doc
28

remove(entity)

Method javax.persistence.EntityManager void remove(   Object entity ) Remove the entity instance. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or is a detached entity TransactionRequiredException - if invoked on a container-managed entity
JPA Doc
28

contains(entity)

Method javax.persistence.EntityManager boolean contains(   Object entity ) Check if the instance is a managed entity instance belonging to the current persistence context. Parameters: entity - entity instance Returns: boolean indicating if entity is in persistence context Throws: IllegalArgumentException - if not an entity Since: JPA 1.0
JPA Doc
28

entity(cls)

Method javax.persistence.metamodel.Metamodel EntityType entity(   Class cls ) Return the metamodel entity type representing the entity. Parameters: cls - the type of the represented entity Returns: the metamodel entity type Throws: IllegalArgumentException - if not an entity Since: JPA 2.0
JPA Doc
28

from(entity)

Method javax.persistence.criteria.AbstractQuery Root from(   EntityType entity ) Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots. Parameters: entity - metamodel entity representing the entity of type X Returns: query root corresponding to the given entity Since: JPA 2.0
JPA Doc
28

isLoaded(entity)

Method javax.persistence.PersistenceUtil boolean isLoaded(   Object entity ) Determine the load state of an entity. This method can be used to determine the load state of an entity passed as a reference. An entity is considered loaded if all attributes for which FetchType.EAGER has been specified
JPA Doc
28

isLoadedWithReference(entity, attributeName)

Method javax.persistence.spi.ProviderUtil LoadState isLoadedWithReference(   Object entity,   String attributeName ) If the provider determines that the entity has been provided by ... . If a provider determines that the entity has been provided by itself and that either the entity attributes
Tutorial
28

Spring MVC and JPA Tutorial

that has signed the guestbook is represented and all the Guest entity objects are stored in an ObjectDB
JPA Doc
28

getLockMode(entity)

Method javax.persistence.EntityManager LockModeType getLockMode(   Object entity ) Get the current lock mode for the entity instance. Parameters: entity - entity instance Returns: lock mode Throws ... is not a managed entity and a transaction is active Since: JPA 2.0