-
Bug
-
Resolution: Done
-
Minor
-
JBossAS-4.0.1 Final
-
None
When deploying an EJB 1.1 bean using CMP, the following warning is issued for each finder:
17:02:33,989 WARN [JDBCQueryMetaDataFactory] The query method is not defined in ejb-jar.xml: <method-signature>
This warning is invalid as query methods can not be defined in an EJB 1.1 ejb-jar.xml.
The fix is trivial, as all necessary information is available: the warning is issued by the method createJDBCQueryMetaData(Element, Map, JDBCReadAheadMetaData readAhead) in the class JDBCQueryMetaDataFactory; the test whether the query is defined (if (defaultValue == null)) should be extended with "&& ! entity.isCMP1x()"