This content has been marked as final.
Show 2 replies
-
1. Re: Find By Primary Key Query
websel Apr 2, 2005 11:43 AM (in response to richardzheng)Think you need to post more information about your code.
There is nothing to tell only about the error.
Post your Xdoclet tag that was used for your finder.
My gues is that u probaly used plain SQL for your finder instead of QL :-)
Wessel de Roode -
2. It's just a standard findByPrimaryKey(pk) method, yes?
spoonman464 Apr 7, 2005 11:36 PM (in response to richardzheng)Did you write code for this query? It's my understanding that you never have to write any SQL or EJB-QL for either findAll() or findByPrimaryKey() If you have written some SQL or EJB-QL, maybe you are making problems for yourself.
public ComponentIntf findByPrimaryKey(primaryKeyDataType pk) throws RemoteException, FinderException;
in the Home interface should be enough to make it work. At least I've never done anything more than that and mine work all the time.
Spoon