hirondelle.fish.main.resto
Class Resto
Object
hirondelle.fish.main.resto.Resto
public final class Resto
- extends Object
Model Object for a Restaurant.
Resto
public Resto(Id aId,
SafeText aName,
SafeText aLocation,
Decimal aPrice,
SafeText aComment)
throws ModelCtorException
- Full constructor.
- Parameters:
aId
- underlying database internal identifier (optional) 1..50 charactersaName
- of the restaurant (required), 2..50 charactersaLocation
- street address of the restaurant (optional), 2..50 charactersaPrice
- of the fish and chips meal (optional) $0.00..$100.00aComment
- on the restaurant in general (optional) 2..50 characters
- Throws:
ModelCtorException
getId
public Id getId()
getName
public SafeText getName()
getLocation
public SafeText getLocation()
getPrice
public Decimal getPrice()
getComment
public SafeText getComment()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object aThat)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright Hirondelle Systems - Generated 2013Oct19.12.26