2 Replies Latest reply on Sep 8, 2005 12:05 PM by Emmanuel Bernard

    EntityManager.getReference returned object class

    Yevgen Bushuyev Newbie

      As far as i can guess from the spec getReference shuld return an instance of the Class passed to it as first param. Thus, having

      public class A {
       private String name;
      }
      
      ...
      
      A a = em.getReference(A.class, key);
      


      i suppose a.getClass().getDeclaredField("name") to return the appropriate field. But em returns me an instance of mypack.A$$EnhancerByCGLIB$$4f0ecd01 and further i can't find A's fields in it. Will this be fixed in the future releases or we should not expect real instances from getReference?

      wbr, eugen.