org.jboss.seam.persistence
Class SeamManagedPersistenceContextCreated

java.lang.Object
  extended by org.jboss.seam.persistence.SeamManagedPersistenceContextCreated

public class SeamManagedPersistenceContextCreated
extends Object

Event that is fired when the SMPC is created. This allows you to configure the SMPC before it is used, e.g. by enabling Hibernate filters.

NOTE: If you are using EntityTransaction you must not attempt to access the current SeamTransaction from observers for this event, as an infinite loop will result.

NOTE: The entityManger property is the unproxied EntityManager, not the seam proxy.

Author:
Stuart Douglas

Constructor Summary
SeamManagedPersistenceContextCreated(EntityManager entityManager)
           
 
Method Summary
 EntityManager getEntityManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeamManagedPersistenceContextCreated

public SeamManagedPersistenceContextCreated(EntityManager entityManager)
Method Detail

getEntityManager

public EntityManager getEntityManager()


Copyright © 2011 Seam Framework. All Rights Reserved.