org.perfectjpattern.example.datamodel
Class Product

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

public class Product
extends Object

Product Data model object

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

Constructor Summary
Product()
           
Product(String aName, double aListPrice)
           
 
Method Summary
 boolean equals(Object anAnother)
          
 long getId()
          Returns the id
 double getListPrice()
          Returns the listPrice
 String getName()
          Returns the name
 Set<Order> getOrders()
          Returns the orders
 int hashCode()
          
 void setId(long anId)
          Sets the id of the person
 void setListPrice(double aListPrice)
          Sets the listPrice
 void setName(String anName)
          Sets the name of the person
 void setOrders(Set<Order> anOrders)
          Sets the orders
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Product

public Product()

Product

public Product(String aName,
               double aListPrice)
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

getListPrice

public double getListPrice()
Returns the listPrice

Returns:
the listPrice

setListPrice

public void setListPrice(double aListPrice)
Sets the listPrice

Parameters:
aListPrice - the listPrice to set

getOrders

public Set<Order> getOrders()
Returns the orders

Returns:
the orders

setOrders

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

Parameters:
anOrders - the orders to set

hashCode

public final int hashCode()

Overrides:
hashCode in class Object

equals

public final boolean equals(Object anAnother)

Overrides:
equals in class Object


Copyright © 2007-2009. All Rights Reserved.