1 Reply Latest reply on Sep 5, 2006 1:00 PM by snau2005

    How engine extract s Generic Type on runtime

    snau2005

      Hi,
      I'm wondering how EJB engine extracts on runtime Class information from List, as I know such info is erased on runtime (Generics rules Java 5), in given example how to get SomeClass.class ?!

      @OneToMany(mappedBy = ?someField?)
       public List<SomeClass> someClasses;
      

      Or I'm wrong and this is possible (How?)?