mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
moved domain type instances to Domain1Instances
This commit is contained in:
parent
f2c9635a8d
commit
b802d653aa
@ -0,0 +1,66 @@
|
||||
package com.mysema.query.grammar.hql;
|
||||
|
||||
import static com.mysema.query.Domain1.*;
|
||||
|
||||
/**
|
||||
* Domain1Instances provides
|
||||
*
|
||||
* @author tiwe
|
||||
* @version $Id$
|
||||
*/
|
||||
public interface Domain1Instances {
|
||||
|
||||
Account account = new Account("account");
|
||||
|
||||
Animal an = new Animal("an");
|
||||
|
||||
AuditLog log = new AuditLog("log");
|
||||
|
||||
Bar bar = new Bar("bar");
|
||||
|
||||
Calendar calendar = new Calendar("calendar");
|
||||
|
||||
Cat cat = new Cat("cat");
|
||||
Cat fatcat = new Cat("fatcat");
|
||||
Cat kittens = new Cat("kittens");
|
||||
Cat kitten = new Cat("kitten");
|
||||
Cat kit = new Cat("kit");
|
||||
Cat mate = new Cat("mate");
|
||||
Cat mother = new Cat("mother");
|
||||
Cat offspr = new Cat("offspr");
|
||||
Cat qat = new Cat("qat");
|
||||
Cat rival = new Cat("rival");
|
||||
|
||||
doofus d = new doofus("d");
|
||||
|
||||
Customer cust = new Customer("cust");
|
||||
|
||||
Foo foo = new Foo("foo");
|
||||
|
||||
Formula form = new Formula("form");
|
||||
|
||||
Item item = new Item("item");
|
||||
|
||||
Name name = new Name("name");
|
||||
|
||||
Named m = new Named("m");
|
||||
Named n = new Named("n");
|
||||
|
||||
NameList list = new NameList("list");
|
||||
|
||||
Order ord = new Order("ord");
|
||||
|
||||
Payment payment = new Payment("payment");
|
||||
|
||||
Parameter param = new Parameter("param");
|
||||
|
||||
Person person = new Person("person");
|
||||
Person p = new Person("p");
|
||||
|
||||
Player player = new Player("player");
|
||||
|
||||
Product prod = new Product("prod");
|
||||
|
||||
Store store = new Store("store");
|
||||
|
||||
}
|
||||
@ -14,7 +14,6 @@ import antlr.RecognitionException;
|
||||
import antlr.TokenStreamException;
|
||||
import antlr.collections.AST;
|
||||
|
||||
import com.mysema.query.Domain1;
|
||||
import com.mysema.query.Domain1Dtos;
|
||||
import com.mysema.query.grammar.HqlGrammar;
|
||||
import com.mysema.query.grammar.HqlQueryBase;
|
||||
@ -30,61 +29,7 @@ import com.mysema.query.grammar.hql.HqlDomain.Payment;
|
||||
* @author tiwe
|
||||
* @version $Id$
|
||||
*/
|
||||
public class HqlParserTest extends HqlQueryBase<HqlParserTest>{
|
||||
|
||||
private Domain1.Account account = new Domain1.Account("account");
|
||||
|
||||
private Domain1.Animal an = new Domain1.Animal("an");
|
||||
|
||||
private Domain1.AuditLog log = new Domain1.AuditLog("log");
|
||||
|
||||
private Domain1.Bar bar = new Domain1.Bar("bar");
|
||||
|
||||
private Domain1.Calendar calendar = new Domain1.Calendar("calendar");
|
||||
|
||||
private Domain1.Cat cat = new Domain1.Cat("cat");
|
||||
private Domain1.Cat fatcat = new Domain1.Cat("fatcat");
|
||||
private Domain1.Cat kittens = new Domain1.Cat("kittens");
|
||||
private Domain1.Cat kitten = new Domain1.Cat("kitten");
|
||||
private Domain1.Cat kit = new Domain1.Cat("kit");
|
||||
private Domain1.Cat mate = new Domain1.Cat("mate");
|
||||
private Domain1.Cat mother = new Domain1.Cat("mother");
|
||||
private Domain1.Cat offspr = new Domain1.Cat("offspr");
|
||||
private Domain1.Cat qat = new Domain1.Cat("qat");
|
||||
private Domain1.Cat rival = new Domain1.Cat("rival");
|
||||
|
||||
private Domain1.doofus d = new Domain1.doofus("d");
|
||||
|
||||
private Domain1.Customer cust = new Domain1.Customer("cust");
|
||||
|
||||
private Domain1.Foo foo = new Domain1.Foo("foo");
|
||||
|
||||
private Domain1.Formula form = new Domain1.Formula("form");
|
||||
|
||||
private Domain1.Item item = new Domain1.Item("item");
|
||||
|
||||
private Domain1.Name name = new Domain1.Name("name");
|
||||
|
||||
private Domain1.Named m = new Domain1.Named("m");
|
||||
private Domain1.Named n = new Domain1.Named("n");
|
||||
|
||||
private Domain1.NameList list = new Domain1.NameList("list");
|
||||
|
||||
private Domain1.Order ord = new Domain1.Order("ord");
|
||||
|
||||
private Domain1.Payment payment = new Domain1.Payment("payment");
|
||||
|
||||
private Domain1.Parameter param = new Domain1.Parameter("param");
|
||||
|
||||
private Domain1.Person person = new Domain1.Person("person");
|
||||
private Domain1.Person p = new Domain1.Person("p");
|
||||
|
||||
private Domain1.Player player = new Domain1.Player("player");
|
||||
|
||||
private Domain1.Product prod = new Domain1.Product("prod");
|
||||
|
||||
private Domain1.Store store = new Domain1.Store("store");
|
||||
|
||||
public class HqlParserTest extends HqlQueryBase<HqlParserTest> implements Domain1Instances{
|
||||
|
||||
/**
|
||||
* Section 9.2 - from *
|
||||
|
||||
Loading…
Reference in New Issue
Block a user