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

    How engine extract s Generic Type on runtime

    Kestas ruks Newbie

      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?)?