Internal Website Search

1-18 of 18 results

javax.persistence.PersistenceContextType

JPA Enum PersistenceContextType java.lang.Object ∟  java.lang.Enum ∟  javax.persistence. PersistenceContextType Specifies whether a transaction-scoped or extended persistence context ... Transaction-scoped persistence context Since: JPA 1.0 Public Static Enum Methods: PersistenceContextType

javax.persistence.PersistenceContextType.EXTENDED

JPA Enum Constant in javax.persistence. PersistenceContextType EXTENDED Extended persistence context Since: JPA 1.0

javax.persistence.PersistenceContextType.TRANSACTION

JPA Enum Constant in javax.persistence. PersistenceContextType TRANSACTION Transaction-scoped persistence context Since: JPA 1.0

javax.persistence.EntityManager

when invoked on a container-managed entity manager of that is of type PersistenceContextType .TRANSACTION ... PersistenceContextType .TRANSACTION Since: JPA 1.0 void refresh (Object entity) Refresh the state ... entity manager of type PersistenceContextType .TRANSACTION EntityNotFoundException - if the entity

javax.persistence.PersistenceContext

of the EntityManager joinTransaction method. Since: JPA 2.1 PersistenceContextType type default PersistenceContextType

javax.persistence.PersistenceContext.type

JPA Annotation Attribute in javax.persistence.PersistenceContext PersistenceContextType type default PersistenceContextType .TRANSACTION (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. Since: JPA 1.0

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

multiple transactions, depending on the PersistenceContextType that is specified when its entity manager ... PersistenceContextType .EXTENDED is created, and is said to be bound to the stateful session bean

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

: @PersistenceContext(unitName = "guest-pu", type= PersistenceContextType .EXTENDED ) private EntityManager em ... (unitName = "guest-pu", type= PersistenceContextType .EXTENDED ) private EntityManager em; ...  

EntityManager.merge(entity) - JPA Method

when invoked on a container-managed entity manager of that is of type PersistenceContextType .TRANSACTION Since: JPA 1.0

EntityManager.persist(entity) - JPA Method

entity manager of that is of type PersistenceContextType .TRANSACTION Since: JPA 1.0

EntityManager.remove(entity) - JPA Method

on a container-managed entity manager of type PersistenceContextType .TRANSACTION and there is no transaction Since: JPA 1.0

EntityManager.refresh(entity,lockMode,properties) - JPA Method

- if invoked on a container-managed entity manager of type PersistenceContextType .TRANSACTION

EntityManager.refresh(entity,lockMode) - JPA Method

- if invoked on a container-managed entity manager of type PersistenceContextType .TRANSACTION

EntityManager.refresh(entity,properties) - JPA Method

- if there is no transaction when invoked on a container-managed entity manager of type PersistenceContextType

EntityManager.refresh(entity) - JPA Method

when invoked on a container-managed entity manager of type PersistenceContextType .TRANSACTION

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

; @PersistenceContext(type= PersistenceContextType .EXTENDED) // change 2     private ... the @Stateful+ PersistenceContextType .EXTENDED and agree it works, however it does mean some significant ... + PersistenceContextType .EXTENDED, because for large real-world systems forcing EAGER

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

public class ExtProjectBuilder extends All_ { @PersistenceContext(type = PersistenceContextType ... _AFTER_BUILD = false; @PersistenceContext(type = PersistenceContextType .EXTENDED)//! protected EntityManager

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null:

{ @PersistenceContext(type = PersistenceContextType .EXTENDED)//! protected EntityManager em; @EJB