Using Hibernate, I get a List<BlablaPO>
(BlablaPO
implements Blabla
). When I do something like this:
for(Blabla blabla : list) {
Class<?>[] interfazes = blabla.getClass().getInterfaces();
}
This code is just a part of a piece of code that accepts a Collection<T>
. Today, I used this code again on a new List<Blabla>
, my returned interfaces do no have Blabla in them, instead I get 2 interfaces:
- interface org.hibernate.proxy.HibernateProxy
- interface javassist.util.proxy.ProxyObject
Am I loading the collection wrongly? I tried loading the collection eagerly.
Aucun commentaire:
Enregistrer un commentaire