org.jboss.seam.example.booking
Class Hotel

java.lang.Object
  extended by org.jboss.seam.example.booking.Hotel
All Implemented Interfaces:
Serializable

@Name(value="hotel")
public class Hotel
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
Hotel()
           
 
Method Summary
 String getAddress()
           
 String getCity()
           
 String getCountry()
           
 Long getId()
           
 String getName()
           
 BigDecimal getPrice()
           
 String getState()
           
 String getZip()
           
 void setAddress(String address)
           
 void setCity(String city)
           
 void setCountry(String country)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setPrice(BigDecimal price)
           
 void setState(String state)
           
 void setZip(String zip)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hotel

public Hotel()
Method Detail

getId

public Long getId()

setId

public void setId(Long id)

getName

@Length(max=50)
@NotNull
public String getName()

setName

public void setName(String name)

getAddress

@Length(max=100)
@NotNull
public String getAddress()

setAddress

public void setAddress(String address)

getCity

@Length(max=40)
@NotNull
public String getCity()

setCity

public void setCity(String city)

getZip

@Length(min=4,
        max=6)
@NotNull
public String getZip()

setZip

public void setZip(String zip)

getState

@Length(min=2,
        max=10)
@NotNull
public String getState()

setState

public void setState(String state)

getCountry

@Length(min=2,
        max=40)
@NotNull
public String getCountry()

setCountry

public void setCountry(String country)

getPrice

public BigDecimal getPrice()

setPrice

public void setPrice(BigDecimal price)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2008 JBoss Inc.. All Rights Reserved.