Thank you very much. That was indeed the problem.

-joel

----- Original Message -----
From: "Kris Keener" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 6:10 AM
Subject: Re: EJB 2.0 1-1 mapping entity-depobj problem


> Joel,
>    Did you declare "prefs" as a cmp-field in the
> entity declaration? For example:
> <entity>
>    ...
>    <cmp-field>
>       <field-name>prefs</field-name>
>    </cmp-field>
>    ...
> </entity>
>
>    I was getting the same exception until I made the
> above change.
>
> --- Joel Shellman <[EMAIL PROTECTED]> wrote:
> > I get the following error during deployment:
> >
> > "Method public abstract CP CB.getPrefs() can not be
> > declared abstract"
> >
> >  <relationships>
> >   <ejb-relation>
> >    <ejb-relation-name>C-CP</ejb-relation-name>
> >    <ejb-relationship-role>
> >
> >
> <ejb-relationship-role-name>c-p</ejb-relationship-role-name>
> >     <multiplicity>one</multiplicity>
> >     <role-source>
> >      <ejb-name>C</ejb-name>
> >     </role-source>
> >     <cmr-field>
> >      <cmr-field-name>prefs</cmr-field-name>
> >      <cmr-field-type>CP</cmr-field-type>
> >     </cmr-field>
> >    </ejb-relationship-role>
> >    <ejb-relationship-role>
> >
> >
>
<ejb-relationship-role-name>contactprefs-belongs-to-contact</ejb-relationshi
> > p-role-name>
> >     <multiplicity>one</multiplicity>
> >     <role-source>
> >      <dependent-name>CP</dependent-name>
> >     </role-source>
> >     </ejb-relationship-role>
> >   </ejb-relation>
> >  </relationships>
> >
> > In the CP bean, I have:
> > public abstract CP getprefs();
> >
> > What's wrong with that?
> >
> > Thanks,
> >
> > Joel Shellman
> >
> >
> >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf!  It's FREE.
> http://im.yahoo.com/
>
>


Reply via email to