As described in
ejb spec (pg. 203) the primary key class must be:
- public
- have a public constructor with no arguments
- have all members public
Assuming by
public Strubg y; you ment
public String y; ;-), you class does represent a valid primary key. The constructor is automatically generated...
Miki