ch.hsr.bieridee.domain
Class Beertype
java.lang.Object
ch.hsr.bieridee.domain.Beertype
- All Implemented Interfaces:
- IDomain
public class Beertype
- extends java.lang.Object
- implements IDomain
Class representing a Beertype.
Constructor Summary |
Beertype(long id,
java.lang.String name,
java.lang.String description)
Creates a Beetype. |
Beertype(java.lang.String name,
java.lang.String description)
Creates a Beetype. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Beertype
public Beertype(java.lang.String name,
java.lang.String description)
- Creates a Beetype.
- Parameters:
name
- Name of the Beertypedescription
- String describing the Beertype.
Beertype
public Beertype(long id,
java.lang.String name,
java.lang.String description)
- Creates a Beetype.
- Parameters:
id
- Id of the Beertypename
- Name of the Beertypedescription
- String describing the Beertype.
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getId
public long getId()
setId
public void setId(long id)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object