-
1. Re: Warning: The type of the primkey-field must match the pr
adrian.brock Jul 22, 2003 6:29 AM (in response to hlfrom331)What is the type of your primary key field and primary
key class?
Regards,
Adrian -
2. Re: Warning: The type of the primkey-field must match the pr
adrian.brock Jul 22, 2003 6:30 AM (in response to hlfrom331)If you have a compound primary key you shouldn't be
declaring a primary key field.
Regards,
Adrian -
3. Re: Warning: The type of the primkey-field must match the pr
hlfrom331 Jul 22, 2003 10:40 PM (in response to hlfrom331)I hava a compound primary key which has single field.
like this:
package xxx;
public class OrderHeaderKey
implements java.io.Serializable {
static final long serialVersionUID = 3206093459760846163L;
public java.lang.String orderNo;
public OrderHeaderKey() {
}
public OrderHeaderKey(java.lang.String orderNo) {
this.orderNo = orderNo;
}
public boolean equals(java.lang.Object otherKey) {
if (otherKey instanceof dhfx.entity.OrderHeaderKey) {
dhfx.entity.OrderHeaderKey o =
(dhfx.entity.OrderHeaderKey) otherKey;
return ( (this.orderNo.equals(o.orderNo)));
}
return false;
}
public int hashCode() {
return (orderNo.hashCode());
}
public java.lang.String getOrderNo() {
return orderNo;
}
public void setOrderNo(java.lang.String newOrderNo) {
orderNo = newOrderNo;
}
}