use of com.querydsl.core.QueryMutability in project querydsl by querydsl.
the class QueryMutabilityTest method queryMutability.
@Test
public void queryMutability() throws IOException, SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
QProduct product = QProduct.product;
JDOQuery<?> query = query().from(product);
new QueryMutability(query).test(product.name, product.description);
}
use of com.querydsl.core.QueryMutability in project querydsl by querydsl.
the class HibernateQueryMutabilityTest method test.
@Test
public void test() throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, IOException {
QCat cat = QCat.cat;
HibernateQuery<?> query = query().from(cat);
new QueryMutability(query).test(cat, cat.name);
}
use of com.querydsl.core.QueryMutability in project querydsl by querydsl.
the class QueryMutabilityTest method queryMutability.
@Test
@Ignore
public void queryMutability() throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, IOException {
SAnimal cat = new SAnimal("cat");
HibernateSQLQuery<?> query = query().from(cat);
new QueryMutability(query).test(cat.id, cat.name);
}
use of com.querydsl.core.QueryMutability in project querydsl by querydsl.
the class QueryMutabilityTest method test.
@Test
public void test() throws IOException, SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
SQLQuery<?> query = new SQLQuery<Void>(connection, DerbyTemplates.DEFAULT);
query.from(survey);
query.addListener(new TestLoggingListener());
new QueryMutability(query).test(survey.id, survey.name);
}
use of com.querydsl.core.QueryMutability in project querydsl by querydsl.
the class QueryMutabilityTest method test.
@Test
public void test() throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, IOException {
QCat cat = QCat.cat;
CollQuery<?> query = new CollQuery<Void>();
query.from(cat, Collections.<Cat>emptyList());
new QueryMutability(query).test(cat.id, cat.name);
}