About entity

31-40 of 200Refresh
JPA Doc
30

isLoadedWithoutReference(entity, attributeName)

Method javax.persistence.spi.ProviderUtil LoadState isLoadedWithoutReference(   Object entity,   String attributeName ) If the provider determines that the entity has been provided by ... . If the provider determines that the entity has been provided by itself and that either entity attributes
JPA Doc
30

javax.persistence.Entity

javax.persistence Annotation Entity Target: Classes Specifies that the class is an entity. This annotation is applied to the entity class. Since: JPA 1.0 Learn how to define and use entity classes in Chapter 2 of the ObjectDB/JPA manual. String name (Optional) The entity name. (Optional) The entity
JPA Doc
30

refresh(entity)

Method javax.persistence.EntityManager void refresh(   Object entity ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or the entity is not
JPA Doc
30

refresh(entity, lockMode)

Method javax.persistence.EntityManager void refresh(   Object entity,   LockModeType lockMode ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any, and lock it with respect to given lock mode type. If the lock mode type is pessimistic and the entity
JPA Doc
30

refresh(entity, lockMode, properties)

Method javax.persistence.EntityManager void refresh(   Object entity,   LockModeType lockMode ... changes made to the entity, if any, and lock it with respect to given lock mode type and with specified properties. If the lock mode type is pessimistic and the entity instance is found
JPA Doc
30

refresh(entity, properties)

Method javax.persistence.EntityManager void refresh(   Object entity,   Mapentity, if any. If a vendor-specific property or hint is not recognized, it is silently ignored. Parameters: entity - entity instance properties - standard and vendor
JPA Doc
30

getIdentifier(entity)

Method javax.persistence.PersistenceUnitUtil Object getIdentifier(   Object entity ) Return the id of the entity. A generated id is not guaranteed to be available until after the database insert has occurred. Returns null if the entity does not yet have an id. Parameters: entity - entity instance
JPA Doc
30

isLoaded(entity)

Method javax.persistence.PersistenceUnitUtil boolean isLoaded(   Object entity ) Determine the load state of an entity belonging to the persistence unit. 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
JPA Doc
30

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
30

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