-
-
2. Re: finders
juha Oct 7, 2002 12:23 PM (in response to pepek)I don't know anything bout XDoclet but is this really how you declare the signature:
* @ejb:finder signature="Collection findByName java.lang.String text)"
(the unmatched parenthesis)? -
3. Re: finders
clarke Oct 7, 2002 1:14 PM (in response to pepek)I'm not sure why you're getting that error, but I was getting the same one when I tried setting up similar finder queries using the same tags you're using. To work around this error, I switched to using the following tags (using your finder signature as an example):
@ejb.finder signature="java.util.Collection findByName(java.lang.String text)"
@jboss.finder-query name="findByName"
query="SELECT OBJECT(o) FROM ebcounter o WHERE o.name = ?1"
For some reason, I got the error only when I tried to define the query in the @ejb.finder tag but not in the @jboss.finder-query tag. I haven't had enough free time yet to investigate the issue further.
I hope that helps! -
4. Re: finders
pepek Oct 8, 2002 4:28 AM (in response to pepek)yes, it helps, BUT a new trouble arised. The deployment is now okay, but when i try to call that finder (localy from session bean) i get this exception:
javax.ejb.FinderException: Unknown query: public abstract java.util.Collection test.EBCounterLocalHome.findByName(java.lang.String) throws javax.ejb.FinderException
The code fot that finder is:
---------------------------------------------------------
@ejb:finder
* signature="java.util.Collection findByName(java.lang.String text)"
*
* @jboss:finder-query name="findByName"
* query="SELECT OBJECT(o) FROM ebcounter o WHERE o.data = ?1"
---------------------------------------------------------
Any idea why? And btw, is chance to get container generated SQL query to check? (No query is sent to DB server when this exception arise) -
5. Re: finders
pepek Oct 8, 2002 4:30 AM (in response to pepek)yes, it helps, BUT a new trouble arised. The deployment is now okay, but when i try to call that finder (localy from session bean) i get this exception:
javax.ejb.FinderException: Unknown query: public abstract java.util.Collection test.EBCounterLocalHome.findByName(java.lang.String) throws javax.ejb.FinderException
The code fot that finder is:
---------------------------------------------------------
@ejb:finder
* signature="java.util.Collection findByName(java.lang.String text)"
*
* @jboss:finder-query name="findByName"
* query="SELECT OBJECT(o) FROM ebcounter o WHERE o.data = ?1"
---------------------------------------------------------
Any idea why? And btw, is chance to get container generated SQL query to check? (No query is sent to DB server when this exception arise) -
6. Re: finders
pepek Oct 8, 2002 4:31 AM (in response to pepek)yes, it helps, BUT a new trouble arised. The deployment is now okay, but when i try to call that finder (localy from session bean) i get this exception:
javax.ejb.FinderException: Unknown query: public abstract java.util.Collection test.EBCounterLocalHome.findByName(java.lang.String) throws javax.ejb.FinderException
The code fot that finder is:
---------------------------------------------------------
@ejb:finder
* signature="java.util.Collection findByName(java.lang.String text)"
*
* @jboss:finder-query name="findByName"
* query="SELECT OBJECT(o) FROM ebcounter o WHERE o.data = ?1"
---------------------------------------------------------
Any idea why? And btw, is chance to get container generated SQL query to check? (No query is sent to DB server when this exception arise) -
7. Re: finders
pepek Oct 8, 2002 4:34 AM (in response to pepek)yes, it helps, BUT a new trouble arised. The deployment is now okay, but when i try to call that finder (localy from session bean) i get this exception:
javax.ejb.FinderException: Unknown query: public abstract java.util.Collection test.EBCounterLocalHome.findByName(java.lang.String) throws javax.ejb.FinderException
The code fot that finder is:
---------------------------------------------------------
@ejb:finder
* signature="java.util.Collection findByName(java.lang.String text)"
*
* @jboss:finder-query name="findByName"
* query="SELECT OBJECT(o) FROM ebcounter o WHERE o.data = ?1"
---------------------------------------------------------
Any idea why? And btw, is chance to get container generated SQL query to check? (No query is sent to DB server when this exception arise)