hi,
i'm trying to deploy an entity bean in wl 5.0.
my primary key class appears like this
public class VProductPK implements java.io.Serializable {
public
String productID;
public VProductPK(String productID) {
this.productID = productID;
}
public VProductPK() {
}
public String toString() {
return productID.toString();
}
public int hashCode()
{
return productID.hashCode();
}
public boolean equals(Object obj)
{
return((VProductPK)obj).productID.equals(productID);
}
}
logically i shouldn't be reqd to overload the equals and hashcode method
for a String primary ket but if i don't so i get an error at generation time
forcing me to put equals and hashcode method.
when i generate the jar i get an error in an class generated
at ..\ejbdeployer\provider-projects\product\ejb-jar\VProductBeanEOImpl.java
saying cannot convert string to productpk.
i.e it tries to compare a string and a class.
my
ejb create method returns jas a return type of VProductPK and returns an instance
of the same.
if the ejbcreate method has a void return type i cannot
specify the type of primary key as VKProduct in the
deployer tool.
what could be the reason?