还有一个这个文件,不知道是作甚么。
package bmpbean;import java.io.Serializable;public class ItemTabPK
implements Serializable {
public int id;
public ItemTabPK() {
} public ItemTabPK(int id) {
this.id = id;
} public boolean equals(Object obj) {
if (this == obj)
return true;
if (! (obj instanceof ItemTabPK))
return false;
ItemTabPK that = (ItemTabPK) obj;
if (that.id != this.id)
return false;
return true;
} public int hashCode() {
int result = 17;
result = 37 * result + (int)this.id;
return result;
}
}
package bmpbean;import java.io.Serializable;public class ItemTabPK
implements Serializable {
public int id;
public ItemTabPK() {
} public ItemTabPK(int id) {
this.id = id;
} public boolean equals(Object obj) {
if (this == obj)
return true;
if (! (obj instanceof ItemTabPK))
return false;
ItemTabPK that = (ItemTabPK) obj;
if (that.id != this.id)
return false;
return true;
} public int hashCode() {
int result = 17;
result = 37 * result + (int)this.id;
return result;
}
}
学ejb,不是专门看其API,而是对整个流程的工作原理有了解才行。