7 Replies Latest reply on Nov 11, 2002 4:38 AM by Michael Olszynski

    Can someone tell me where to find the Section?

    Michael Olszynski Newbie


      I made my first Bean and I got following error message during startup:

      09:44:50,244 INFO [EJBDeveloper]
      Bean: BankAccount
      Section: 9.2.9
      Warning: The primary key class must override equals().

      What is Section 9.2.9? Ist that a reference to a documentation? If yes, to which documantation? URL´s are welcome!

      Btw. is it possible, that this Warning is wrong, because i did overrride it.
      See my BankAccountPK.java:

      package BankAccount;

      public class BankAccountPK implements java.io.Serializable {

      public String accountNumber;

      public BankAccountPK(String accNo) {
      accountNumber = accNo;

      public BankAccountPK() {
      accountNumber = new String();

      public int hashCode() {
      return accountNumber.hashCode();

      public boolean equals(Object obj) {
      return accountNumber.equals(obj);

      public String toString() {
      return accountNumber;