请教:ejb ql 奇怪问题

03-12-08 kitta

我写了这样一个ejb ql:

<query>
				<query-method>
					<method-name>findBySalaryRange</method-name>
					<method-params>
						<method-param>double</method-param>
						<method-param>double</method-param>
					</method-params>
				</query-method>
				<ejb-ql>
					SELECT OBJECT(p) FROM Player as p
					WHERE p.salary >= ?1 and p.salary < ?2
				</ejb-ql>
			</query>

可是JBoss返回了一个莫名其妙的错误,我查了ejb specification和ejb jar的dtd,可是还是不明白,请各位指点一下!

The content of elements must consist of well-formed character data or markup.

kitta
2003-12-09 21:18

问题已解决。