0 Replies Latest reply on Feb 19, 2010 7:26 PM by Arturo Frappe

    javassist proxy & class hierarchy

    Arturo Frappe Newbie

      I don't know if I'm doing this as it should, let's explain:


      I have a Hibernate-Pojo class hierarchy, its top level class is Note, then I have a lot of subclasses. Next, I have a class called Diagnosis composed with a Note.


      When I load Diagnosis via Seam, and call getNote(), which returns any possible subclass of Note with its corresponding attributes, I got a javassist instance, direct subclass of Note, and this javassist instance doesn't correspond with any other expected subclass.


      When I inspect this javassist instance with debugger I see a member, called handler, that contains the expected instance of my Note class.


      Question is, How to get the correct instance?