Class SeamManagedPersistenceContextCreated

  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.

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


public SeamManagedPersistenceContextCreated(EntityManager entityManager)
Method Detail


public EntityManager getEntityManager()

Copyright © 2011 Seam Framework. All Rights Reserved.