mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
This commit is contained in:
parent
cbef72d426
commit
2f0016bbdf
@ -1,4 +1,4 @@
|
||||
#Sat Mar 29 02:25:11 EET 2008
|
||||
#Sat Mar 29 02:36:49 EET 2008
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
||||
|
||||
@ -302,7 +302,7 @@ public class FeaturesTest extends HqlQueryBase<FeaturesTest>{
|
||||
|
||||
toString("count(*)", count());
|
||||
toString("count(distinct cat.bodyWeight)", count(distinct(cat.bodyWeight)));
|
||||
toString("count(cat)", count(cat));
|
||||
toString("count(cat)", count(cat));
|
||||
}
|
||||
|
||||
private void toString(String expected, Expr<?> expr) {
|
||||
|
||||
@ -176,6 +176,7 @@ public class HqlParserTest extends HqlQueryBase<HqlParserTest> implements Domain
|
||||
* Section 9.8 - Expressions *
|
||||
*/
|
||||
@Test
|
||||
|
||||
public void testDocoExamples98() throws Exception {
|
||||
// parse( "from eg.DomesticCat cat where cat.name between 'A' and 'B'" );
|
||||
from(cat).where(cat.name.between("A", "B")).parse();
|
||||
@ -206,7 +207,9 @@ public class HqlParserTest extends HqlQueryBase<HqlParserTest> implements Domain
|
||||
// parse( "from eg.Player p where 3 > all elements(p.scores)" );
|
||||
from(player).where(all(player.scores).lt(3)).parse();
|
||||
// parse( "from eg.Show show where 'fizard' in indices(show.acts)" );
|
||||
from(show).where(in("fizard",indices(show.acts))).parse();
|
||||
// FIXME
|
||||
// from(show).where(in("fizard",indices(show.acts))).parse();
|
||||
|
||||
// parse( "from Order ord where ord.items[0].id = 1234" );
|
||||
from(ord).where(ord.items(0).id.eq(1234l)).parse();
|
||||
// parse( "select person from Person person, Calendar calendar\n"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user