Assume that i have these below classes in my project:
public class MyBaseEntity<T> {
T id;
}
public class MySubClass extends MyBaseEntity<Long> {
}
and now, i want to get main type of id
(java.lang.Long
) field of MySubClass
with java reflection, how can i do that?
Aucun commentaire:
Enregistrer un commentaire