Bonjour à tous,
Je dispose d'une méthode qui me fait un select de ce type :
Code:
getHibernateTemplate().find("select new Cycle (c.id, c.cycleNumber, c.product, c.subProduct) from Cycle as c where c.id = ?", cycleId);
subProduct étant un objet qui est une mapping vers une autre table.
subProduct peut être null.
Le problème arrive justement lorsque j'ai sauvé mon objet avec un subProduct vide, l'objet est correctement stocké, mais lorsque j'essaye de le récupérer avec find, hibernate me renvoit rien ...
si subProduct n'est plus null, hibernate me renvoit bien l'objet.
une idée ?