tryToDetermineInitiailzer
protected TidePersistenceManager tryToDetermineInitiailzer()
Try to determine what type of persistence the application is using.
If the EntityManager is stored under entityManager or if the Hibernate session is
stored under session. Then the context will be found and used. This is only called if a
ITidePersistenceManager is not found, probably because the query was not run in a conversation.
- Overrides:
tryToDetermineInitiailzer in class SeamInitializer
- Returns:
- The appropriate manager for the persistence context being used, if it can be determined
otherwise a null is returned.