When will I try this request
public interface AppelOffreRespository extends JpaRepository<AppelOffre, Integer>, QueryDslPredicateExecutor<AppelOffre> { @Query("select new AOCalendarModel( ao.xx, ao.yy, ao.zz) from AO ao ... Set<AOCalendarModel> findAoForCalForFav(..) ... }
I got this error
org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate class [AOCalendarModel] [select new AOCalendarMode ....
My model
public class AOCalendarModel { public Integer xx; public String yy; public Date zz; ... }
source share