FileDocCategorySizeDatePackage
CustomerPK.javaAPI DocJBoss 4.2.12093Fri Jul 13 20:54:56 BST 2007org.jboss.tutorial.composite.bean

CustomerPK

public class CustomerPK extends Object implements Serializable
Comment
author
Bill Burke
version
$Revision: 57207 $

Fields Summary
private long
id
private String
name
Constructors Summary
public CustomerPK()

   
public CustomerPK(long id, String name)

      this.id = id;
      this.name = name;
   
Methods Summary
public booleanequals(java.lang.Object obj)

      if (obj == this) return true;
      if (!(obj instanceof CustomerPK)) return false;
      if (obj == null) return false;
      CustomerPK pk = (CustomerPK) obj;
      return pk.id == id && pk.name.equals(name);
   
public longgetId()

      return id;
   
public java.lang.StringgetName()

      return name;
   
public inthashCode()

      return (int) id + name.hashCode();
   
public voidsetId(long id)

      this.id = id;
   
public voidsetName(java.lang.String name)

      this.name = name;