/*
 * Generated by XDoclet - Do not edit!
 */
package test.interfaces;

/**
 * Primary key for Account.
 * @xdoclet-generated at 16-04-05
 * @copyright The XDoclet Team
 * @author XDoclet
 * @version 1.2.3
 */
public class AccountPK
   extends java.lang.Object
   implements java.io.Serializable
{

   public java.lang.Integer id;

   public AccountPK()
   {
   }

   public AccountPK( java.lang.Integer id )
   {
      this.id = id;
   }

   public java.lang.Integer getId()
   {
      return id;
   }

   public void setId(java.lang.Integer id)
   {
      this.id = id;
   }

   public int hashCode()
   {
      int _hashCode = 0;
         if (this.id != null) _hashCode += this.id.hashCode();

      return _hashCode;
   }

   public boolean equals(Object obj)
   {
      if( !(obj instanceof test.interfaces.AccountPK) )
         return false;

      test.interfaces.AccountPK pk = (test.interfaces.AccountPK)obj;
      boolean eq = true;

      if( obj == null )
      {
         eq = false;
      }
      else
      {
         if( this.id != null )
         {
            eq = eq && this.id.equals( pk.getId() );
         }
         else  // this.id == null
         {
            eq = eq && ( pk.getId() == null );
         }
      }

      return eq;
   }

   /** @return String representation of this pk in the form of [.field1.field2.field3]. */
   public String toString()
   {
      StringBuffer toStringValue = new StringBuffer("[.");
         toStringValue.append(this.id).append('.');
      toStringValue.append(']');
      return toStringValue.toString();
   }

}
