-
1. Re: Problems with parameterized LIKE emulation
lafr Jun 3, 2003 2:28 PM (in response to mverbist)You may find it easier to use the jboss-ql, a superset of ejb-ql.
One example from me (XDoclet):
* @ejb.finder signature="java.util.Collection findByMatchcode( java.lang.String matchcode )"
* view-type="local"
* query="SELECT OBJECT(o) FROM Address AS o WHERE o.matchcode LIKE '%SIEMENS%'"
* result-type-mapping="Local"
* @jboss.query signature="java.util.Collection findByMatchcode( java.lang.String matchcode )"
* query="SELECT OBJECT(o) FROM Address AS o WHERE o.matchcode LIKE ?1 ORDER BY o.addressId" -
2. Re: Problems with parameterized LIKE emulation
mverbist Jun 3, 2003 4:44 PM (in response to mverbist)Easyer yes.
But less portable also.
And since we are using JBoss for development environment and Websphere for production, I won't be able to do it this way.
Thanks for the reply though.
The only option I see left is to go full BMP in stead of CMP.
Or does anyone see an other solution?