I'm trying to find a way to create an object from a query, this object is containing three int fields and a List<>
@AllArgsConstructor
@Data
public class SiteDescriptionDao {
private int hauteurMax;
private int cotMin;
private int cotMax;
private List<Voie> voieList;
}
my 'actual' query is :
SELECT new com.c.c.c.dao.SiteDescriptionDao(1,1,1,(select vo from Voie vo where vo
.idSecteur = 1)) FROM Site si
Thanks for your help !