UndeclaredThrowableException
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mohan_saravanan
Posted On:   Wednesday, August 28, 2002 09:33 PM

Iam using jboss application server,my entity bean contain two primary keys,so i have used primary key class.i given my primary class below package payroll; import java.io.Serializable; public class PayrollPK implements java.io.Serializable{ public String companyCode; public String yearNo; public PayrollPK(String companyCode,String yearNo){ this.companyCode = companyCode; this.yearNo = yearNo; } public PayrollPK() { } public String toString() { return (companyCode.toString()+yearNo.toString()); } public int hashCode() { return (companyCode.concat(yearNo)).hashCode   More>>

			
Iam using jboss application server,my entity bean contain two primary keys,so i have used primary key class.i given my primary class below

package payroll;

import java.io.Serializable;
public class PayrollPK implements java.io.Serializable{

public String companyCode;
public String yearNo;


public PayrollPK(String companyCode,String yearNo){
this.companyCode = companyCode;
this.yearNo = yearNo;
}

public PayrollPK() {
}


public String toString() {
return (companyCode.toString()+yearNo.toString());
}



public int hashCode()
{
return (companyCode.concat(yearNo)).hashCode();

}


public boolean equals(Object obj)
{

if (obj instanceof PayrollPK) {
return (companyCode.equals(((PayrollPK)obj).companyCode) && yearNo.equals(((PayrollPK)obj).yearNo));
}

return false;

}

}


if i am trying to link ejb using jsp,i am getting following error.
UndeclaredThrowableException ,please any of one help me.

with regards
mohan

   <<Less
About | Sitemap | Contact