added tests for reserved words

This commit is contained in:
Timo Westkämper 2008-03-06 21:42:59 +00:00
parent 389a1ae08f
commit 82c659fb86
2 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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;
}