|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectshared.PersistentBase
ch5.persistentData.RequestDataPersistent
public class RequestDataPersistent
The bean is annotated for persistence and required validation. The Entity annotation indicates that a table will be created in the database with the name of the bean.
| Field Summary | |
|---|---|
protected java.lang.String |
aversion
The variable to store the aversion. |
protected java.lang.String |
hobby
The variable to store the hobby. |
| Fields inherited from class shared.PersistentBase |
|---|
id |
| Constructor Summary | |
|---|---|
RequestDataPersistent()
There must be a default constructor in order for Hibernate to retrieve the data from the database. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAversion()
The accessor for the aversion property. |
java.lang.String |
getHobby()
The accessor for the hobby property. |
void |
setAversion(java.lang.String aversion)
The mutator for the aversion property. |
void |
setHobby(java.lang.String hobby)
The mutator for the hobby property. |
| Methods inherited from class shared.PersistentBase |
|---|
getId, setId |
| 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 RequestDataPersistent()
| Method Detail |
|---|
@Pattern(regex=".*[^\\s].*",
message="cannot be empty")
@NotNull
public java.lang.String getHobby()
public void setHobby(java.lang.String hobby)
hobby - The hooby from the request data.
@Pattern(regex=".*[^\\s].*",
message="cannot be empty")
@NotNull
public java.lang.String getAversion()
public void setAversion(java.lang.String aversion)
aversion - The aversion from the request data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||