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

/**
 * Data object for Magazine.
 * @xdoclet-generated at 22-10-04
 * @copyright The XDoclet Team
 * @author XDoclet
 * @version 1.2.2
 */
public class MagazineData
   extends java.lang.Object
   implements java.io.Serializable
{
   private java.lang.String title;
   private java.lang.String boid;

  /* begin value object */

  /* end value object */

   public MagazineData()
   {
   }

   public MagazineData( java.lang.String title,java.lang.String boid )
   {
      setTitle(title);
      setBoid(boid);
   }

   public MagazineData( MagazineData otherData )
   {
      setTitle(otherData.getTitle());
      setBoid(otherData.getBoid());

   }

   public java.lang.String getPrimaryKey() {
     return  getBoid();
   }

   public java.lang.String getTitle()
   {
      return this.title;
   }
   public void setTitle( java.lang.String title )
   {
      this.title = title;
   }

   public java.lang.String getBoid()
   {
      return this.boid;
   }
   public void setBoid( java.lang.String boid )
   {
      this.boid = boid;
   }

   public String toString()
   {
      StringBuffer str = new StringBuffer("{");

      str.append("title=" + getTitle() + " " + "boid=" + getBoid());
      str.append('}');

      return(str.toString());
   }

   public boolean equals( Object pOther )
   {
      if( pOther instanceof MagazineData )
      {
         MagazineData lTest = (MagazineData) pOther;
         boolean lEquals = true;

         if( this.title == null )
         {
            lEquals = lEquals && ( lTest.title == null );
         }
         else
         {
            lEquals = lEquals && this.title.equals( lTest.title );
         }
         if( this.boid == null )
         {
            lEquals = lEquals && ( lTest.boid == null );
         }
         else
         {
            lEquals = lEquals && this.boid.equals( lTest.boid );
         }

         return lEquals;
      }
      else
      {
         return false;
      }
   }

   public int hashCode()
   {
      int result = 17;

      result = 37*result + ((this.title != null) ? this.title.hashCode() : 0);

      result = 37*result + ((this.boid != null) ? this.boid.hashCode() : 0);

      return result;
   }

}
