JPA : Support settings hints for JPAQuery

Bug #657721 reported by Timo Westkämper on 2010-10-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Medium
Unassigned

Bug Description

Support settings hints for JPAQuery

Changed in querydsl:
importance: Undecided → Medium

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());
    }

Changed in querydsl:
status: New → Fix Committed

Released in 2.0.2

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers