org.hibernate.test.annotations.beanvalidation
Class Address

java.lang.Object
  extended by org.hibernate.test.annotations.beanvalidation.Address

@Entity
public class Address
extends Object


Field Summary
static String blacklistedZipCode
           
 int floor
           
 
Constructor Summary
Address()
           
 
Method Summary
 String getCountry()
           
 long getId()
           
 String getLine1()
           
 String getLine2()
           
 String getState()
           
 String getZip()
           
 boolean isValid()
           
 void setCountry(String country)
           
 void setId(long id)
           
 void setInternalValid(boolean internalValid)
           
 void setLine1(String line1)
           
 void setLine2(String line2)
           
 void setState(String state)
           
 void setZip(String zip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blacklistedZipCode

@NotNull
public static String blacklistedZipCode

floor

@Min(value=-2L)
@Max(value=50L)
public int floor
Constructor Detail

Address

public Address()
Method Detail

getCountry

public String getCountry()

setCountry

public void setCountry(String country)

getLine1

@NotNull
public String getLine1()

setLine1

public void setLine1(String line1)

getLine2

public String getLine2()

setLine2

public void setLine2(String line2)

getState

@Size(max=3)
@NotNull
public String getState()

setState

public void setState(String state)

getZip

@Size(max=5)
@Pattern(regexp="[0-9]+")
@NotNull
public String getZip()

setZip

public void setZip(String zip)

isValid

@AssertTrue
public boolean isValid()

setInternalValid

public void setInternalValid(boolean internalValid)

getId

@Min(value=1L)
@Max(value=2000L)
public long getId()

setId

public void setId(long id)


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.