0 Replies Latest reply on Aug 6, 2009 3:39 PM by amontobin

    Access EntityEntry from HibernateSessionProxy

    amontobin

      Hi All Seam users,


      I've got an application running on top of seam (JPA).
      I would like to unblock some fields if the value in database is null.
      My code would ressemble to :


      SessionImpl session = mySession;
      EntityEntry entityEntry = session.getPersistenceContext().getEntry(myObject);
      Object value = entityEntry.getLoadedValue("value");
      



      I would like to access hibernate session from EntityManager but i can't access delegate from HibernateSessionProxy. Any Ideas ?


      Thanks,


      Sébastien