Hi!

Jakob Braeuchi wrote:
> public class PersonPK implements java.io.Serializable
> {
>         public long id;
> }

Note that this is not a valid primary key class. equals() and hashCode()
methods are missing.

> 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.

Remove the "primkey-field" element from your ejb-jar.xml file. See EJB
specification for details on why.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]


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

Reply via email to