org.perfectjpattern.example.datamodel
Class Order

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

public class Order
extends Object

Purchase Data model object

Version:
$ $Date: Dec 5, 2008 11:49:14 AM $
Author:
Giovanni Azua
 

Constructor Summary
Order()
           
Order(Customer aCustomer, Date aDate, Set<Product> aProducts)
           
 
Method Summary
 Customer getCustomer()
           
 Date getDate()
           
 Long getId()
           
 Set<Product> getProducts()
           
 void setCustomer(Customer anCustomer)
           
 void setDate(Date aDate)
           
 void setId(Long anId)
           
 void setProducts(Set<Product> aProducts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Order

public Order()

Order

public Order(Customer aCustomer,
             Date aDate,
             Set<Product> aProducts)
Method Detail

getId

public Long getId()
Returns:
the id

setId

public void setId(Long anId)
Parameters:
anId - the id to set

getDate

public Date getDate()
Returns:
the date

setDate

public void setDate(Date aDate)
Parameters:
aDate - the date to set

getProducts

public Set<Product> getProducts()
Returns:
the products

setProducts

public void setProducts(Set<Product> aProducts)
Parameters:
aProducts - the products to set

getCustomer

public Customer getCustomer()
Returns:
the customer

setCustomer

public void setCustomer(Customer anCustomer)
Parameters:
anCustomer - the customer to set


Copyright © 2007-2009. All Rights Reserved.