This content has been marked as final. Show 2 replies
OK, for this question one should reply:
READ THE SPEC!!!!!!!!!!
'LIKE' does not accept parameters.
heres what works:
* 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.
JBossQL supports LIKE clauses with parameters. You are correct in noting that it is not supported with EJB-QL.