J'ai essayé avec un "select tdd from..." même résultat.
Pour ce qui est des logs
Hibernate: select typedescri0_.CEN_ID_FK_ASSO as CEN1_44_, typedescri0_.DESC_ID_FK_ASSO as DESC2_44_, typedescri0_.IMP_ID_FK_ASSO as IMP3_44_, typedescri0_.TYE_ID_FK_ASSO as TYE4_44_, typedescri0_.TST_ID_FK_ASSO as TST5_44_ from T_ASSO_T_STR_T_EVT_DESC typedescri0_, T_REF_TYPE_STRUCTURE typestruct1_, T_REF_TYPE_EVT typeevenem2_, T_REF_DESCRIPTION descriptio3_ where typedescri0_.TST_ID_FK_ASSO=typestruct1_.TST_ID and typedescri0_.TYE_ID_FK_ASSO=typeevenem2_.TYE_ID and typedescri0_.DESC_ID_FK_ASSO=descriptio3_.DESC_ID and (((typedescri0_.CEN_ID_FK_ASSO=? ))and((? like 'null' )or(typedescri0_.TST_ID_FK_ASSO like ? ))and((?=0 )or(typedescri0_.TYE_ID_FK_ASSO=? ))and((?=0 )or(typedescri0_.DESC_ID_FK_ASSO=? ))and((?=0 )or(typedescri0_.IMP_ID_FK_ASSO=? ))) order by typestruct1_.TST_LIBELLE , typeevenem2_.TYE_LIBELLE , descriptio3_.DESC_LIBELLE
Voici la requête généré (qui fonctionne parfaitement dans sqldev).
EDIT : La ou je vois que c'est vraiment un problème de mapping c'est que même avec une requête simple
@NamedQuery(name = "typeDescription.select", query = "from TypeDescriptionDto as tdd where (tdd.mIdCentre = :idCentre)") })
Cela me retourne toujours tous mes objets à null.
Partager