Exampel 6 - User Primary Key Class
    public class UserPK implements java.io.Serializable 
    {
        public boolean equals(Object other) 
        {
            if (! (other instanceof UserPK) ) return false;
            UserPK rhs = (UserPK) other;
            return fId.compareTo( rhs.fId ) == 0;
        }
    
        public int hashCode() { return fId.hashCode(); }
        public UserPK() { }
        public UserPK(String Id) { fId = Id; }
    
        public String fId;
    }
            

Next Slide >>