The following query is incorrectly marking the addressLines in the where section of the query as incorrect, saying that a String type is expected. The addressLines attribute of org is a mapped list of Strings and the query works as expected.
<query name="BOSDSOrganisationDAO.QUERY_ORGANISATION_NACS_NAME_POSTCODE_ADDRESS">
<![CDATA[
select org from BOSDSOrganisation org left join org.addressLines as addressLines
where (org.organisationNACSCode like :organisationNACSCode)
and (org.organisationName like :organisationName)
and (org.postcode like :postcode)
and ((addressLines like :addressLine1)
or (addressLines like :addressLine2)
or (addressLines like :addressLine3)
or (addressLines like :addressLine4)
or (addressLines like :addressLine5))
]]>
</query>
Environment: Windows XP, JDKU2
Issue was resolved
I would have named it addressLine though...