The following issue has been updated:
Updater: Jim Riley (mailto:[EMAIL PROTECTED])
Date: Wed, 12 Mar 2003 2:04 PM
Changes:
[Attachment] [StandardFeeData.java] was added
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-377&page=history
---------------------------------------------------------------------
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: Assigned
Priority: Major
Time Spent: Unknown
Estimate: 0 minutes
Project: XDoclet
Component: 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, 12 Mar 2003 2:04 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/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 is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel