br.com.arsmachina.example.entity
Class Project

java.lang.Object
  extended by br.com.arsmachina.example.entity.Project
All Implemented Interfaces:
Serializable

public class Project
extends Object
implements Serializable

Class that represents a project.

Author:
Thiago H. de Paula Figueiredo
See Also:
Serialized Form

Field Summary
static int MAXIMUM_DESCRIPTION_LENGTH
          Maximum description length.
static int MAXIMUM_NAME_LENGTH
          Maximum name length.
static int MINIMUM_DESCRIPTION_LENGTH
          Minimum description length.
static int MINIMUM_NAME_LENGTH
          Minimum name length.
 
Constructor Summary
Project()
           
 
Method Summary
 String getDescription()
          Returns the value of the description property.
 Integer getId()
          Returns the value of the id property.
 br.com.arsmachina.authentication.entity.User getManager()
          Returns the value of the manager property.
 String getName()
          Returns the value of the name property.
 void setDescription(String description)
          Changes the value of the description property.
 void setId(Integer id)
          Changes the value of the id property.
 void setManager(br.com.arsmachina.authentication.entity.User manager)
          Changes the value of the manager property.
 void setName(String name)
          Changes the value of the name property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM_NAME_LENGTH

public static final int MINIMUM_NAME_LENGTH
Minimum name length.

See Also:
Constant Field Values

MAXIMUM_NAME_LENGTH

public static final int MAXIMUM_NAME_LENGTH
Maximum name length.

See Also:
Constant Field Values

MINIMUM_DESCRIPTION_LENGTH

public static final int MINIMUM_DESCRIPTION_LENGTH
Minimum description length.

See Also:
Constant Field Values

MAXIMUM_DESCRIPTION_LENGTH

public static final int MAXIMUM_DESCRIPTION_LENGTH
Maximum description length.

See Also:
Constant Field Values
Constructor Detail

Project

public Project()
Method Detail

getId

public Integer getId()
Returns the value of the id property.

Returns:
a Integer.

setId

public void setId(Integer id)
Changes the value of the id property.

Parameters:
id - a Integer.

getName

@Length(min=2,
        max=30)
@NotNull
public String getName()
Returns the value of the name property.

Returns:
a String.

setName

public void setName(String name)
Changes the value of the name property.

Parameters:
name - a String.

getDescription

@Length(min=0,
        max=100)
@NotNull
public String getDescription()
Returns the value of the description property.

Returns:
a String.

setDescription

public void setDescription(String description)
Changes the value of the description property.

Parameters:
description - a String.

getManager

@NotNull
public br.com.arsmachina.authentication.entity.User getManager()
Returns the value of the manager property.

Returns:
a User.

setManager

public void setManager(br.com.arsmachina.authentication.entity.User manager)
Changes the value of the manager property.

Parameters:
manager - a User.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.