JBoss好像不支持 “>=”或“<=” 运算符,
我以前碰到是改成 > 完事。
我以前碰到是改成 > 完事。
解决方案 »
- 想要在Struts2的项目中集成其他servlet或者第三方插件的请进
- 关于struts和urlRewriter 整合的问题.
- tomcat的bin目录相当于jboss哪个目录
- 关于OBPM中的FORM无法显示
- hibernate双向多对多映射,添加数据失败
- struts问题。高手请进
- 特殊字符IO问题,大家请进来看看!
- 关于resin服务器及jbuild的问题
- 连接池的奇怪问题!!!java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed.
- 用iterator构造一个餐单table 然后想要每行有增减数量的按钮和显示数量的text怎么实现
- 急!!开发web时weblogic7.0的公共jar 文件放在哪个目录?我放在WEB-INF\lib下为什么系统找不到??
- 为何没有窗口显示?
我现在也在用Jboss进行项目开发,可以手头没有任何可用的资料!!!
建议大家共同讨论这个问题,如有资源共享!!!
Jboss4.0即将发布!!
1.<ejb-ql>select object(o) from RpItemAttr o where o.rpTypeCode = ?1 and o.rpItemAttrCode (>=) ?2 and o.rpItemAttrCode (<=) ?3</ejb-ql>2.<ejb-ql>select object(o) from RpItemAttr o where o.rpTypeCode = ?1 and o.rpItemAttrCode (>)= ?2 and o.rpItemAttrCode (<)= ?3</ejb-ql>3.<ejb-ql>select object(o) from RpItemAttr o where o.rpTypeCode = ?1 and o.rpItemAttrCode (>= ?2) and o.rpItemAttrCode (<= ?3)</ejb-ql>4.<ejb-ql>select object(o) from RpItemAttr o where o.rpTypeCode = ?1 and o.rpItemAttrCode (>= ?)2 and o.rpItemAttrCode (<= ?)3</ejb-ql>5..<ejb-ql>select object(o) from RpItemAttr o where o.rpTypeCode = ?1 and (o.rpItemAttrCode >= ?2 and o.rpItemAttrCode <= ?3)</ejb-ql>以上都还出错。应该怎做?
这一种你试试,我也想知道答案~
这样也不行。还是出错。你以前用()这样的写法成功么?
Depends On Me: org.jboss.deployment.DeploymentException: Error compiling EJB-QL
statement 'select object(o) from RpItemAttr o where o.rpTypeCode = ?1 and (o.rp
ItemAttrCode >= ?2) and (o.rpItemAttrCode <= ?3)'; - nested throwable: (org.jbos
s.ejb.plugins.cmp.ejbql.ParseException: Encountered "o.rpItemAttrCode >=" at lin
e 1, column 67.
Was expecting one of:
"ABS" ...
"LENGTH" ...
"LOCATE" ...
"SQRT" ...
"(" ...
"+" ...
"-" ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<NUMERIC_VALUED_PARAMETER> ...
<NUMERIC_VALUED_PATH> ...
"NOT" ...
<COLLECTION_VALUED_PATH> ...
<STRING_VALUED_PATH> "=" ...
<STRING_VALUED_PATH> "<>" ...
<BOOLEAN_VALUED_PATH> ...
<DATETIME_VALUED_PATH> ...
<ENTITY_VALUED_PATH> ...
<IDENTIFICATION_VARIABLE> ...
)]