Comment 1 for bug 657721

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

The support for hints and lockmode works like this :

    @Test
    public void Hint(){
        assertFalse(query().from(QCat.cat).setHint("org.hibernate.cacheable", true).list(QCat.cat).isEmpty());
    }

    @Test
    public void LockMode(){
        assertFalse(query().from(QCat.cat).setLockMode(LockModeType.READ).list(QCat.cat).isEmpty());
    }