1 Reply Latest reply on Mar 21, 2007 6:42 AM by baz

    Hardcoded persistence context name in EntityHome

    thejavafreak

      Dear all,

      Is there anyway the persistence context name inside org.jboss.seam.framework.EntityHome class retrieved from a configuration? Since I don't write entityManager for core:managed-persistence-context name in my components.xml.

      Or is there any consideration why to hard coded it?

      public class EntityHome<E> extends Home<EntityManager, E>
      {
       @Override
       protected String getPersistenceContextName()
       {
       return "entityManager";
       }
      }


      Thanks in advance