org.perfectjpattern.example.datamodel
Class Person

java.lang.Object
  extended by org.perfectjpattern.example.datamodel.Person

public class Person
extends Object

Person Data Model type

Version:
$Revision: 1.0 $ $Date: Nov 30, 2007 6:30:38 PM $
Author:
Giovanni Azua
 

Constructor Summary
Person()
           
Person(String aName, int anAge)
           
 
Method Summary
 int getAge()
          Returns the age
 Long getId()
          Returns the id
 String getName()
          Returns the name
 void setAge(int anAge)
          Sets the age of the person
 void setId(Long anId)
          Sets the id of the person
 void setName(String anName)
          Sets the name of the person
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Person

public Person()

Person

public Person(String aName,
              int anAge)
Method Detail

getId

public Long getId()
Returns the id

Returns:
the id

setId

public void setId(Long anId)
Sets the id of the person

Parameters:
anId - the id to set

getName

public String getName()
Returns the name

Returns:
the name

setName

public void setName(String anName)
Sets the name of the person

Parameters:
anName - the name to set

getAge

public int getAge()
Returns the age

Returns:
the age

setAge

public void setAge(int anAge)
Sets the age of the person

Parameters:
anAge - the age to set


Copyright © 2007-2009. All Rights Reserved.