Hi!

Jakob Braeuchi wrote:
> as i understand the warning, the id attribute of my PersonBean should be of
> type PersonPK ?? 

Please, remove the primkey-field element from ejb-jar.xml and see what
happens. 

> but this does not match the samples i have.
> 
> jakob
> 
> >From: "Kenworthy, Edward" <[EMAIL PROTECTED]>
> >Reply-To: "jBoss" <[EMAIL PROTECTED]>
> >To: 'jBoss' <[EMAIL PROTECTED]>
> >Subject: RE: [jBoss-User] CMP deployment Section: 9.4.7.1
> >Date: Fri, 8 Dec 2000 12:14:28 -0000
> >
> >Reading the warning ! and change your deployment descriptor accordingly.
> >
> >-----Original Message-----
> >From: Jakob Braeuchi [mailto:[EMAIL PROTECTED]]
> >Sent: 08 December 2000 12:08
> >To: [EMAIL PROTECTED]
> >Subject: [jBoss-User] CMP deployment Section: 9.4.7.1
> >
> >
> >hi,
> >
> >i'm using a simple CMP entity bean:
> >
> >public class PersonBean implements EntityBean
> >{
> >       transient private EntityContext entityContext;
> >
> >       public long id;
> >       public java.lang.String name;
> >       public java.lang.String vorname;
> >       public java.lang.String adresse;
> >       public java.util.Date geburtsDatum;
> >       public boolean boss;
> >       public int test;
> >}
> >
> >and i also have a primaryKey:
> >
> >public class PersonPK implements java.io.Serializable
> >{
> >       public long id;
> >}
> >
> >when deploying the bean i get the following warning:
> >
> >[Verifier]
> >Bean   : Person
> >Section: 9.4.7.1
> >Warning: The type of the field named in the primkey-field element must
> >match
> >
> >the class in the prim-key-class element.
> >
> >accessing the Persons using a finder works well, but i'm not able to
> >findByPrimaryKey.
> >
> >thanks
> >
> >Jakob Braeuchi
> >
> >____________________________________________________________________________
> >_________
> >Get more from the Web.  FREE MSN Explorer download :
> >http://explorer.msn.com
> >
> >
> >
> >--
> >--------------------------------------------------------------
> >To subscribe:        [EMAIL PROTECTED]
> >To unsubscribe:      [EMAIL PROTECTED]
> >Problems?:           [EMAIL PROTECTED]
> >
> >
> >--
> >--------------------------------------------------------------
> >To subscribe:        [EMAIL PROTECTED]
> >To unsubscribe:      [EMAIL PROTECTED]
> >Problems?:           [EMAIL PROTECTED]
> >
> 
> _____________________________________________________________________________________
> Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]

-- 
Rickard �berg

Email: [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to