|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch5.requiredValidation.RequestDataRequired
public class RequestDataRequired
This bean will use Hibernate annotations to implement validation.
Field Summary | |
---|---|
protected java.lang.String |
aversion
Stores the value of the aversion element. |
protected java.lang.String |
hobby
Stores the value of the hobby element. |
Constructor Summary | |
---|---|
RequestDataRequired()
|
Method Summary | |
---|---|
java.lang.String |
getAversion()
Accessor for the aversion element. |
java.lang.String |
getHobby()
Accessor for the hobby element. |
void |
setAversion(java.lang.String aversion)
Mutator for the aversion element. |
void |
setHobby(java.lang.String hobby)
Mutator for the hobby element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String hobby
protected java.lang.String aversion
Constructor Detail |
---|
public RequestDataRequired()
Method Detail |
---|
public void setHobby(java.lang.String hobby)
hobby
- The new value to store in the hobby.@Pattern(regex=".*\\S.*", message="cannot be empty") @NotNull public java.lang.String getHobby()
public void setAversion(java.lang.String aversion)
aversion
- The new value to store in the aversion.@Pattern(regex=".*\\S.*", message="cannot be empty") @NotNull public java.lang.String getAversion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |