Package be.gaudry.model.person
Class PersonExt
java.lang.Object
be.gaudry.model.AbstractLightObject
be.gaudry.model.person.Person
be.gaudry.model.person.PersonExt
- All Implemented Interfaces:
ILightObject,Serializable
- Direct Known Subclasses:
BeIDPerson,Person
Represents an addressable
Person with a picture and a pseudonym
\nInfo JPA: No cascade defined for the address. That means the address operation must be committed before persisting or merging this.- Since:
- 1.0 Nov 30, 2007, 0.0.4-SNAPSHOT
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class be.gaudry.model.person.Person
FIND_ALL_QUERYFields inherited from interface be.gaudry.model.ILightObject
DEFAULT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanUnchecked properties:getPseudo()getPicture()getAddress()Info JPA: No check is done on theAddressfield to ensure returning true if one is lazy loaded and the other is fully loaded.byte[]inthashCode()Unchecked properties:getPseudo()getPicture()getAddress()Info JPA: No check is done on theAddressfield to ensure returning same hashCode if one is lazy loaded and the other is fully loaded.voidsetAddress(Address address)voidsetPicture(byte[] picture)voidtoString()Builds a string with variables values and the class.Methods inherited from class be.gaudry.model.person.Person
copy, getBirthdate, getDisplay, getFirstName, getGender, getId, getLastName, setBirthdate, setDisplay, setFirstName, setGender, setId, setLastName
-
Constructor Details
-
PersonExt
public PersonExt() -
PersonExt
-
PersonExt
-
-
Method Details
-
hashCode
public int hashCode()- Unchecked properties:
- Info JPA: No check is done on the
Addressfield to ensure returning same hashCode if one is lazy loaded and the other is fully loaded.- Overrides:
hashCodein classPerson- Returns:
- a hash code value for this person.
- See Also:
Object.hashCode(),Person.equals(Object)
-
equals
- Unchecked properties:
- Info JPA: No check is done on the
Addressfield to ensure returning true if one is lazy loaded and the other is fully loaded.- Overrides:
equalsin classPerson- Parameters:
obj- the reference object with which to compare.- Returns:
trueif this person is the same as the obj argument;falseotherwise.- See Also:
Object.equals(java.lang.Object),Person.hashCode()
-
toString
Description copied from class:AbstractLightObjectBuilds a string with variables values and the class.- Overrides:
toStringin classPerson- Returns:
- a String representation of this LightObject only for debugging
- See Also:
Object.toString()
-
getPseudo
- Returns:
- the pseudo
-
setPseudo
- Parameters:
pseudo- the pseudo to set
-
getPicture
public byte[] getPicture()- Returns:
- the picture
-
setPicture
public void setPicture(byte[] picture)- Parameters:
picture- the picture to set
-
getAddress
- Returns:
- the address (may be null)
-
setAddress
- Parameters:
address- the address to set
-