ch7.accountLogin
Class RequestDataAccount

java.lang.Object
  extended by shared.PersistentBase
      extended by ch7.accountLogin.RequestDataAccount

public class RequestDataAccount
extends PersistentBase

The bean has an additional field for the account number.


Field Summary
protected  java.lang.String accountNumber
          Stores the value of the accountNumber element.
protected  java.lang.String aversion
          Stores the value of the aversion element.
protected  java.lang.String hobby
          Stores the value of the hobby element.
 
Fields inherited from class shared.PersistentBase
id
 
Constructor Summary
RequestDataAccount()
          Needed to retrieve data from hibernate
 
Method Summary
 java.lang.String getAccountNumber()
          Accessor for the accountNumber element.
 java.lang.String getAversion()
          Accessor for the aversion element.
 java.lang.String getHobby()
          Accessor for the hobby element.
 void setAccountNumber(java.lang.String accountNumber)
          Mutator for the accountNumber element.
 void setAversion(java.lang.String aversion)
          Mutator for the aversion element.
 void setHobby(java.lang.String hobby)
          Mutator for the aversion element.
 
Methods inherited from class shared.PersistentBase
getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hobby

protected java.lang.String hobby
Stores the value of the hobby element.


aversion

protected java.lang.String aversion
Stores the value of the aversion element.


accountNumber

protected java.lang.String accountNumber
Stores the value of the accountNumber element.

Constructor Detail

RequestDataAccount

public RequestDataAccount()
Needed to retrieve data from hibernate

Method Detail

getAccountNumber

@Pattern(regex="[a-zA-Z]{2}\\d{3}",
         message="must be in the format AA999.")
public java.lang.String getAccountNumber()
Accessor for the accountNumber element. The accessor is preceded by Hibernate annotations, which define the validation for this property.

Returns:
The current value of the hobby.

setAccountNumber

public void setAccountNumber(java.lang.String accountNumber)
Mutator for the accountNumber element.

Parameters:
accountNumber - The new value to store in the aversion.

getHobby

@Pattern(regex=".*[^\\s].*",
         message="cannot be empty")
public java.lang.String getHobby()
Accessor for the hobby element. The accessor is preceded by Hibernate annotations, which define the validation for this property.

Returns:
The current value of the hobby.

setHobby

public void setHobby(java.lang.String hobby)
Mutator for the aversion element.

Parameters:
hobby - The new value to store in the aversion.

getAversion

@Pattern(regex=".*[^\\s].*",
         message="cannot be empty")
public java.lang.String getAversion()
Accessor for the aversion element. The accessor is preceded by Hibernate annotations, which define the validation for this property.

Returns:
The current value of the aversion.

setAversion

public void setAversion(java.lang.String aversion)
Mutator for the aversion element.

Parameters:
aversion - The new value to store in the aversion.