User: salborini
Date: 00/10/11 14:26:11
Modified: src/main/org/jboss/test/testbean/interfaces AComplexPK.java
EntityPK.java
Log:
Fixed the EntityPkBean example according to what the verifier said.
Revision Changes Path
1.2 +12 -0
jbosstest/src/main/org/jboss/test/testbean/interfaces/AComplexPK.java
Index: AComplexPK.java
===================================================================
RCS file:
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/testbean/interfaces/AComplexPK.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AComplexPK.java 2000/09/27 00:46:31 1.1
+++ AComplexPK.java 2000/10/11 21:26:11 1.2
@@ -23,6 +23,18 @@
this.aString = aString;
}
+ public boolean equals(Object other) {
+ if (other != null && other instanceof AComplexPK) {
+ AComplexPK otherPK = (AComplexPK)other;
+ return ((aBoolean == otherPK.aBoolean) &&
+ (anInt == otherPK.anInt) &&
+ (aLong == otherPK.aLong) &&
+ (aDouble == otherPK.aDouble) &&
+ (aString == null ? otherPK.aString == null :
aString.equals(otherPK.aString)));
+ } else return false;
+ }
+
+
public int hashCode() {
// Missing the double but ok for test
1.2 +4 -4
jbosstest/src/main/org/jboss/test/testbean/interfaces/EntityPK.java
Index: EntityPK.java
===================================================================
RCS file:
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/testbean/interfaces/EntityPK.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- EntityPK.java 2000/09/27 00:46:32 1.1
+++ EntityPK.java 2000/10/11 21:26:11 1.2
@@ -7,10 +7,10 @@
public interface EntityPK extends EJBObject {
- public AComplexPK readAllValues();
- public void updateAllValues(AComplexPK aComplexPK);
+ public AComplexPK readAllValues() throws RemoteException;
+ public void updateAllValues(AComplexPK aComplexPK) throws RemoteException;
- public int getOtherField();
- public void setOtherField(int newValue);
+ public int getOtherField() throws RemoteException;
+ public void setOtherField(int newValue) throws RemoteException;
}