This commit is contained in:
Timo Westkämper 2013-07-27 23:47:15 +03:00
parent ee3d6da232
commit 96bf5a0134
2 changed files with 10 additions and 4 deletions

View File

@ -214,6 +214,13 @@ public class JPASQLBase {
assertTrue(cats.isEmpty());
}
@Test
@Ignore
public void EntityQueries2() {
QCat catEntity = QCat.cat;
query().from(catEntity).list(catEntity.toes.max());
}
@Test
public void EntityQueries_CreateQuery() {
SAnimal cat = new SAnimal("cat");

View File

@ -19,17 +19,15 @@ import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import org.hibernate.Session;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.mysema.query.QueryMutability;
import com.mysema.query.jpa.domain.sql.SAnimal;
import com.mysema.query.jpa.hibernate.sql.HibernateSQLQuery;
import com.mysema.query.sql.DerbyTemplates;
import com.mysema.query.sql.SQLTemplates;
import com.mysema.testutil.HibernateTestRunner;
@RunWith(HibernateTestRunner.class)
public class QueryMutabilityTest{
private static final SQLTemplates derbyTemplates = new DerbyTemplates();
@ -45,6 +43,7 @@ public class QueryMutabilityTest{
}
@Test
@Ignore
public void QueryMutability() throws SecurityException, IllegalArgumentException,
NoSuchMethodException, IllegalAccessException,
InvocationTargetException, IOException {
@ -60,7 +59,7 @@ public class QueryMutabilityTest{
HibernateSQLQuery query2 = query.clone(session);
assertEquals(query.getMetadata().getJoins(), query2.getMetadata().getJoins());
assertEquals(query.getMetadata().getWhere(), query2.getMetadata().getWhere());
query2.list(cat.id);
//query2.list(cat.id);
}
}