org.perfectjpattern.example.datamodel
Class Customer

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

public class Customer
extends Object

Customer Data model object

Version:
$ $Date: Dec 5, 2008 2:59:04 AM $
Author:
Giovanni Azua
 

Constructor Summary
Customer()
           
Customer(String aName)
           
 
Method Summary
 Long getId()
          Returns the id
 String getName()
          Returns the name
 List<Order> getOrders()
          Returns the orders
 void setId(Long anId)
          Sets the id of the person
 void setName(String aName)
          Sets the name of the person
 void setOrders(List<Order> anOrders)
          Sets the orders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Customer

public Customer()

Customer

public Customer(String aName)
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 aName)
Sets the name of the person

Parameters:
aName - the name to set

getOrders

public List<Order> getOrders()
Returns the orders

Returns:
the orders

setOrders

public void setOrders(List<Order> anOrders)
Sets the orders

Parameters:
anOrders - the orders to set


Copyright © 2007-2009. All Rights Reserved.