use of com.querydsl.core.QueryMutability in project querydsl by querydsl.
the class JPAQueryMutabilityTest method test.
@Test
public void test() throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, IOException {
entityManager.persist(new Cat("Beck", 1));
entityManager.flush();
SAnimal cat = new SAnimal("cat");
JPASQLQuery<?> query = query().from(cat);
new QueryMutability(query).test(cat.id, cat.name);
}