mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-24 21:07:26 +08:00
added tests for reserved words
This commit is contained in:
parent
389a1ae08f
commit
82c659fb86
@ -91,6 +91,8 @@ public class FeaturesTest extends HqlQueryBase<FeaturesTest>{
|
||||
// maxelement(cat.kittens());
|
||||
// minindex(cat.kittens());
|
||||
// maxindex(cat.kittens());
|
||||
toString("cat.kittens[0]",cat.kittens(0));
|
||||
toString("cat.kittens[0]",cat.kittens.get(0));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@ -167,6 +169,13 @@ public class FeaturesTest extends HqlQueryBase<FeaturesTest>{
|
||||
// is not empty,
|
||||
// member of
|
||||
// not member of
|
||||
kitten.in(cat.kittens);
|
||||
not(kitten.in(cat.kittens));
|
||||
kitten.bodyWeight.between(10, 20);
|
||||
kitten.bodyWeight.isnull();
|
||||
kitten.bodyWeight.isnotnull();
|
||||
// cat.kittens.isEmpty();
|
||||
// cat.kittens.isNotEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@ -0,0 +1,14 @@
|
||||
package com.mysema.query.grammar.hql.domain;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
|
||||
/**
|
||||
* EvilType provides
|
||||
*
|
||||
* @author tiwe
|
||||
* @version $Id$
|
||||
*/
|
||||
@Entity
|
||||
public class EvilType {
|
||||
protected EvilType isnull, isnotnull, asc, desc, get, toString, hashCode, getClass, notify, notifyAll, wait;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user