Hibernate 查询中 有些关键字 不能使用,特地列了出来

有许多单词不能作为名称,后来查了一下hibernate的源码,发现还有好多常用的单词不能使用,如下所列,希望对大家有所帮助,避免不必要的错误:
literals.put(new ANTLRHashString("between", this), new Integer(10));
        literals.put(new ANTLRHashString("case", this), new Integer(54));
        literals.put(new ANTLRHashString("delete", this), new Integer(13));
        literals.put(new ANTLRHashString("new", this), new Integer(37));
        literals.put(new ANTLRHashString("end", this), new Integer(55));
        literals.put(new ANTLRHashString("object", this), new Integer(65));
        literals.put(new ANTLRHashString("insert", this), new Integer(29));
        literals.put(new ANTLRHashString("distinct", this), new Integer(16));
        literals.put(new ANTLRHashString("where", this), new Integer(53));
        literals.put(new ANTLRHashString("trailing", this), new Integer(67));
        literals.put(new ANTLRHashString("then", this), new Integer(57));
        literals.put(new ANTLRHashString("select", this), new Integer(45));
        literals.put(new ANTLRHashString("and", this), new Integer(6));
        literals.put(new ANTLRHashString("outer", this), new Integer(42));
        literals.put(new ANTLRHashString("not", this), new Integer(38));
        literals.put(new ANTLRHashString("fetch", this), new Integer(21));
        literals.put(new ANTLRHashString("from", this), new Integer(22));
        literals.put(new ANTLRHashString("null", this), new Integer(39));
        literals.put(new ANTLRHashString("count", this), new Integer(12));
        literals.put(new ANTLRHashString("like", this), new Integer(34));
        literals.put(new ANTLRHashString("when", this), new Integer(58));
        literals.put(new ANTLRHashString("class", this), new Integer(11));
        literals.put(new ANTLRHashString("inner", this), new Integer(28));
        literals.put(new ANTLRHashString("leading", this), new Integer(63));
        literals.put(new ANTLRHashString("with", this), new Integer(60));
        literals.put(new ANTLRHashString("set", this), new Integer(46));
        literals.put(new ANTLRHashString("escape", this), new Integer(18));
        literals.put(new ANTLRHashString("join", this), new Integer(32));
        literals.put(new ANTLRHashString("elements", this), new Integer(17));
        literals.put(new ANTLRHashString("of", this), new Integer(66));
        literals.put(new ANTLRHashString("is", this), new Integer(31));
        literals.put(new ANTLRHashString("member", this), new Integer(64));
        literals.put(new ANTLRHashString("or", this), new Integer(40));
        literals.put(new ANTLRHashString("any", this), new Integer(5));
        literals.put(new ANTLRHashString("full", this), new Integer(23));
        literals.put(new ANTLRHashString("min", this), new Integer(36));
        literals.put(new ANTLRHashString("as", this), new Integer(7));
        literals.put(new ANTLRHashString("by", this), new Integer(99));
        literals.put(new ANTLRHashString("all", this), new Integer(4));
        literals.put(new ANTLRHashString("union", this), new Integer(50));
        literals.put(new ANTLRHashString("order", this), new Integer(41));
        literals.put(new ANTLRHashString("both", this), new Integer(61));
        literals.put(new ANTLRHashString("some", this), new Integer(47));
        literals.put(new ANTLRHashString("properties", this), new Integer(43));
        literals.put(new ANTLRHashString("ascending", this), new Integer(100));
        literals.put(new ANTLRHashString("descending", this), new Integer(101));
        literals.put(new ANTLRHashString("false", this), new Integer(20));
        literals.put(new ANTLRHashString("exists", this), new Integer(19));
        literals.put(new ANTLRHashString("asc", this), new Integer(8));
        literals.put(new ANTLRHashString("left", this), new Integer(33));
        literals.put(new ANTLRHashString("desc", this), new Integer(14));
        literals.put(new ANTLRHashString("max", this), new Integer(35));
        literals.put(new ANTLRHashString("empty", this), new Integer(62));
        literals.put(new ANTLRHashString("sum", this), new Integer(48));
        literals.put(new ANTLRHashString("on", this), new Integer(59));
        literals.put(new ANTLRHashString("into", this), new Integer(30));
        literals.put(new ANTLRHashString("else", this), new Integer(56));
        literals.put(new ANTLRHashString("right", this), new Integer(44));
        literals.put(new ANTLRHashString("versioned", this), new Integer(52));
        literals.put(new ANTLRHashString("in", this), new Integer(26));
        literals.put(new ANTLRHashString("avg", this), new Integer(9));
        literals.put(new ANTLRHashString("update", this), new Integer(51));
        literals.put(new ANTLRHashString("true", this), new Integer(49));
        literals.put(new ANTLRHashString("group", this), new Integer(24));
        literals.put(new ANTLRHashString("having", this), new Integer(25));
        literals.put(new ANTLRHashString("indices", this), new Integer(27));
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值