The @jboss:finder-query will override the query part of @ejb:finder.
I've deleted the @jboss:finder-query, and I've changed this query, too. But all this doesn't change the results.
Without @jboss:finder-query it doesn't also work. It always returns every bean.
By the way: My @jboss:finder-query has to find the same beans as the @ejb:finder query. The queries are equivalent...
The fragment value you are providing in the method may be maching the start of all the Titles, the locate method returns the index of the first match.
Send me the test data that you have in database...which database are you using..??
here are some test titles out of my MySQL 4.0.5max DB:
- A new book
- Another new book
- Something about computer science
- What a day
- Jboss hates me
- It still hates me
If I'm searching for 'book' then it get every book bean, if I'm using '>=' and no book bean if I use '>'...