Alexander,
Have you put that finder in the Home interface?
If this could return more than one result, your Home
interface should have something like this:
public abstract java.util.Collection
findByCompagny(<data_type> Compagny) throws
FinderException, RemoteException;
If it will return only 1 result every time, just
change the return type to the appropriate class.
Hope that helps...
-Jason
--- Alexander ten Bruggencate
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm having problems getting results from calling
> findByXX methodes.
> if I use Hypersonic as the datasource all goes well
> but when I switch to
> PostgreSQL (the db we WANT to use) I no longer get
> results. Does anyone
> know a cure for this?
>
> I call something like
> personHome.findByCompagny(compagny) where
> "compagny" is an instance of a CompagnyBean object.
>
>
>
> the tables:
>
> Person (primary key: java.lang.Integer)
> -----
> String firstname
> String lastname
> etc...
> Compagny compagny (ejb-reference)
>
> Compagny (primary key: java.lang.Integer)
> -------
> ....
> ....
>
> -Alexander.
>
>
>
> --
>
--------------------------------------------------------------
> To subscribe:
> [EMAIL PROTECTED]
> To unsubscribe:
> [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]