Comment 2 for bug 823782

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

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