Message:

   The following issue has been resolved as CANNOT REPRODUCE.

---------------------------------------------------------------------
View the issue:

  http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-377


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-377
    Summary: Missing brace on hashCode method of DataObject
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: CANNOT REPRODUCE

 Time Spent: Unknown
  Remaining: 0 minutes

    Project: XDoclet
 Components: 
             EJB Module
   Versions:
             1.2 Beta 2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Jim Riley

    Created: Wed, 12 Mar 2003 2:03 PM
    Updated: Wed, 23 Jul 2003 11:51 PM
Environment: Windows 2000

Description:
The data object that is generated for a CMP bean does not compile because two closing 
braces "}" are missing.  One is for the hashCode method and the other is for the 
class.  The generated code is below:

-----------------------------
/*
 * Generated by XDoclet - Do not edit!
 */
package com.xxx.paysource.domainobject;


public class StandardFeeData
   extends java.lang.Object
   implements java.io.Serializable
{
   private java.lang.String name;
   private java.lang.Double amount;
   private java.lang.Boolean editable;

   public StandardFeeData()
   {
   }

   public StandardFeeData( java.lang.String name,java.lang.Double 
amount,java.lang.Boolean editable )
   {
      setName(name);
      setAmount(amount);
      setEditable(editable);
   }

   public StandardFeeData( StandardFeeData otherData )
   {
      setName(otherData.getName());
      setAmount(otherData.getAmount());
      setEditable(otherData.getEditable());

   }

   public com.compassbnk.paysource.domainobject.StandardFeePK getPrimaryKey() {
     StandardFeePK pk = new StandardFeePK(this.getName());
     return pk;
   }

   public java.lang.String getName()
   {
      return this.name;
   }
   public void setName( java.lang.String name )
   {
      this.name = name;
   }

   public java.lang.Double getAmount()
   {
      return this.amount;
   }
   public void setAmount( java.lang.Double amount )
   {
      this.amount = amount;
   }

   public java.lang.Boolean getEditable()
   {
      return this.editable;
   }
   public void setEditable( java.lang.Boolean editable )
   {
      this.editable = editable;
   }

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

      str.append("name=" + getName() + " " + "amount=" + getAmount() + " " + 
"editable=" + getEditable());
      str.append('}');

      return(str.toString());
   }

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

         if( this.name == null )
         {
            lEquals = lEquals && ( lTest.name == null );
         }
         else
         {
            lEquals = lEquals && this.name.equals( lTest.name );
         }
         if( this.amount == null )
         {
            lEquals = lEquals && ( lTest.amount == null );
         }
         else
         {
            lEquals = lEquals && this.amount.equals( lTest.amount );
         }
         if( this.editable == null )
         {
            lEquals = lEquals && ( lTest.editable == null );
         }
         else
         {
            lEquals = lEquals && this.editable.equals( lTest.editable );
         }

         return lEquals;
      }
      else
      {
         return false;
      }
   }

   public int hashCode()
   {
      int result = 17;




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to