/*
 * Generated by XCodeGen v1.0
 * Sun Jul 07 16:05:41 EDT 2002
 */

package xcodegen.sample.domain.dto;

import java.io.Serializable;

/**
 * User of the system
 *
 * @author Herve Tchepannou
 * @version 
 */
public class UserDTO
    extends xcodegen.sample.domain.dto.PersonDTO
    implements Serializable
{

///////////////////////////////////////////////////
// Fields
///////////////////////////////////////////////////


    /**  */
    private String password;


///////////////////////////////////////////////////
// Constructors
///////////////////////////////////////////////////

    public UserDTO ()
    {
    }
    

    
///////////////////////////////////////////////////
// Public methods
///////////////////////////////////////////////////

    public boolean equals( Object obj )
    {
        if ( ( obj != null ) && ( obj.getClass() == getClass() ) )
        {
            return toString().equals( obj.toString() );
        }
        else
        {
            return false;
        }
    }
    
    public String toString()
    {
        StringBuffer buff = new StringBuffer();
        buff.append( getClass().getName() ).append( "{" );
        
        
        buff.append( "id=" ).append( getId () );
            
        buff.append( "," ).append( "firstname=" ).append( getFirstname () );
            
        buff.append( "," ).append( "lastname=" ).append( getLastname () );
            
        buff.append( "," ).append( "email=" ).append( getEmail () );
            
        buff.append( "," ).append( "password=" ).append( getPassword () );
    
        buff.append( "}" );
        return buff.toString();
    }

    public java.util.Collection validate()
    {

        java.util.Collection errors = super.validate();


        return errors;
    }
        


///////////////////////////////////////////////////
// accessor methods for attributes
///////////////////////////////////////////////////

    
    /**
     * Getter of <code>password</code>
     * @see #password
     */
    public String getPassword () { return this.password; }
    
    /** 
     * Setter of <code>password</code>
     * @see #password
     */
    public void setPassword ( String value ) { this.password = value; }
}
