Are you able to execute this in JPQL/HQL?
I tried this :
QBookVersion bookVersion = QBookVersion.bookVersion; QBookMark bookMark = new QBookMark(PathMetadataFactory.forVariable("bookMark"));
query().from(bookVersion) .innerJoin(bookVersion.definition.bookMarks, bookMark) .where( bookVersion.definition.bookMarks.size().eq(1), bookMark.page.eq(2357L).or(bookMark.page.eq(2356L))) .list(bookVersion);
and got an Exception as well
Are you able to execute this in JPQL/HQL?
I tried this :
QBookVersion bookVersion = QBookVersion. bookVersion; PathMetadataFac tory.forVariabl e("bookMark" ));
QBookMark bookMark = new QBookMark(
query() .from(bookVersi on) bookVersion. definition. bookMarks, bookMark)
bookVersion. definition. bookMarks. size(). eq(1),
bookMark. page.eq( 2357L). or(bookMark. page.eq( 2356L)) ) bookVersion) ;
.innerJoin(
.where(
.list(
and got an Exception as well