Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28044
Added Files:
CompanyClientPK.java
Removed Files:
AccountPK.java
Log Message:
no message
--- AccountPK.java DELETED ---
--- NEW FILE: CompanyClientPK.java ---
package org.xdoclet.testapp.ejb.util;
/**
* This class would normally be generated by XDoclet, but
* we keep it in the codebase only to ensure that the testapp
* can compile without XDoclet. This source is also used
* by the xdoclet-ejb plugin to compare the generated output.
*
* @author Diogo Quintela
* @version $Revision: 1.1 $
*/
public class CompanyClientPK
extends java.lang.Object
implements java.io.Serializable {
public java.lang.String identityNumber;
public java.lang.String companyNumber;
public CompanyClientPK() {
// Empty
}
public CompanyClientPK(java.lang.String identityNumber, java.lang.String
companyNumber) {
this.identityNumber = identityNumber;
this.companyNumber = companyNumber;
}
public void setIdentityNumber(java.lang.String identityNumber) {
this.identityNumber = identityNumber;
}
public java.lang.String getIdentityNumber() {
return this.identityNumber;
}
public void setCompanyNumber(java.lang.String companyNumber) {
this.companyNumber = companyNumber;
}
public java.lang.String getCompanyNumber() {
return this.companyNumber;
}
public int hashCode() {
int _hashCode = 0;
_hashCode += (this.identityNumber != null) ?
this.identityNumber.hashCode() : 0;
_hashCode += (this.companyNumber != null) ?
this.companyNumber.hashCode() : 0;
return _hashCode;
}
public boolean equals(Object other) {
if (other == null || !(other instanceof CompanyClientPK)) {
return false;
}
CompanyClientPK otherPk = (CompanyClientPK)other;
boolean equals = true;
equals &= (this.identityNumber != null) ?
this.identityNumber.equals(otherPk.identityNumber) : (otherPk.identityNumber ==
null);
equals &= (this.companyNumber != null) ?
this.companyNumber.equals(otherPk.companyNumber) : (otherPk.companyNumber ==
null);
return equals;
}
public String toString() {
StringBuffer retBuf = new StringBuffer();
retBuf.append("identityNumber=").append(this.identityNumber);
retBuf.append(',');
retBuf.append("companyNumber=").append(this.companyNumber);
return retBuf.toString();
}
}
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits