FileDocCategorySizeDatePackage
MusicianPK.javaAPI DocJBoss 4.2.13309Fri Jul 13 20:53:06 BST 2007org.jboss.ejb3.test.clusteredentity.embeddedid

MusicianPK

public class MusicianPK extends Object implements Serializable
Primary key for the {@link Musician} entity.
author
Brian Stansberry
version
$Revision: 60233 $

Fields Summary
private static final long
serialVersionUID
private String
firstName
private String
lastName
private String
ssn
Constructors Summary
public MusicianPK()
Default constructor

   
         
     
public MusicianPK(String firstName, String lastName, String ssn)

      this.firstName = firstName;
      this.lastName = lastName;
      this.ssn = ssn;
   
Methods Summary
public booleanequals(java.lang.Object obj)

      boolean equal = (this == obj);
      
      if (!equal && obj instanceof MusicianPK)
      {
         MusicianPK other = (MusicianPK) obj;
         
         equal = firstName.equals(other.firstName)
                  && lastName.equals(other.lastName)
                  && ssn.equals(other.ssn);
      }
      return equal;
   
public java.lang.StringgetFirstName()

      return firstName;
   
public java.lang.StringgetLastName()

      return lastName;
   
public java.lang.StringgetSsn()

      return ssn;
   
public inthashCode()

      int result = 19;
      result = result * 29 + firstName.hashCode();
      result = result * 29 + lastName.hashCode();
      result = result * 29 + ssn.hashCode();
      return result;
   
public voidsetFirstName(java.lang.String firstName)

      this.firstName = firstName;
   
public voidsetLastName(java.lang.String lastName)

      this.lastName = lastName;
   
public voidsetSsn(java.lang.String ssn)

      this.ssn = ssn;
   
public java.lang.StringtoString()

      StringBuffer sb = new StringBuffer(getClass().getName());
      sb.append("[firstName=");
      sb.append(firstName);
      sb.append(",lastName=");
      sb.append(lastName);
      sb.append(",ssn=");
      sb.append(ssn);
      sb.append("]");
      return sb.toString();