This content has been marked as final.
Show 2 replies
-
1. Re: VERY URJENT!! Seems like JBOSS replaces String params wi
bentins Jan 20, 2004 1:55 PM (in response to bentins)"bentins" wrote:
OK, for this question one should reply:
READ THE SPEC!!!!!!!!!!
'LIKE' does not accept parameters.
heres what works:
* @ejb.finder
* query = "SELECT DISTINCT OBJECT(a) FROM User AS a WHERE a.userName=?1"
* signature = "com.matrix.framework.ip.UserLocal findByUserName(java.lang.String aUserName)"
turns out that it is also important to have the '=' directly after the field name with no space???? an Xdoclet issue? Jboss issue?
anyother interesting comments will be appreciated. -
2. Re: VERY URJENT!! Seems like JBOSS replaces String params wi
juha Jan 25, 2004 6:09 AM (in response to bentins)JBossQL supports LIKE clauses with parameters. You are correct in noting that it is not supported with EJB-QL.