*
* @return the houseNumber
*/
- public Long getHouseNumber ();
+ public Short getHouseNumber ();
/**
* House number
*
* @param houseNumber the houseNumber to set
*/
- public void setHouseNumber (final Long houseNumber);
+ public void setHouseNumber (final Short houseNumber);
/**
* Setter for own contact
* House number
*/
@Column (name = "house_number", length = 5, nullable = false)
- private Long houseNumber;
+ private Short houseNumber;
/**
* Flag whether this contact is user's own data
}
/**
- * No instances should be created of this class. Better extend this class
- * and provide proper constructors.
+ * Default constructor
*/
- protected UserContact () {
+ public UserContact () {
}
/**
}
@Override
- public Long getHouseNumber () {
+ public Short getHouseNumber () {
return this.houseNumber;
}
@Override
- public void setHouseNumber (final Long houseNumber) {
+ public void setHouseNumber (final Short houseNumber) {
this.houseNumber = houseNumber;
}