After entering the QUERY statement, some are in the ejb-jar.xml, there is a garbled, you need to manually modify, and the input parameter type in the Finder function must be equally defined with the field.