mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
added Oracle specific extensions
splitted SqlQuery into SqlQuery and AbstractSqlQuery for subclassing
This commit is contained in:
parent
e52e97d945
commit
0c36160289
@ -12,8 +12,7 @@ import static com.mysema.query.collections.MiniApi.select;
|
||||
import static com.mysema.query.grammar.Grammar.gt;
|
||||
import static com.mysema.query.grammar.GrammarWithAlias.$;
|
||||
import static com.mysema.query.grammar.GrammarWithAlias.alias;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@ -201,6 +200,19 @@ public class MiniApiTest {
|
||||
.iterate($(c)).iterator();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAlias10(){
|
||||
Cat c = alias(Cat.class, "cat");
|
||||
|
||||
try{
|
||||
from(c,cats).where($(c.getMate().getName().toUpperCase()).eq("MOE"));
|
||||
fail("expected NPE");
|
||||
}catch(NullPointerException ne){
|
||||
// expected
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void testAliasToString(){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user