jboss ejb-ql finder
我在CMP 2.0 entity bean 中用了finder方法,有如下sql语句
select OBJECT(o) from Mprange as o where o.startphone < ?1 and o.endphone > ?1
编译通过,但部署的时候报错(Jboss 3.2.2)
Problem starting service jboss.j2ee:jndiName=Mprange,service=EJB
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'select OBJECT(o) from Mprange as o where o.startphone < ?1 and o.endphone > ?1'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "<" at line 1, column 55.
Was expecting one of:
"=" ...
"<>" ...
)
是不是jboss ejb-ql 不支持"<"、">"?