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_QUERY
Fields inherited from interface be.gaudry.model.ILightObject
DEFAULT_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Unchecked properties:getPseudo()
getPicture()
getAddress()
Info JPA: No check is done on theAddress
field to ensure returning true if one is lazy loaded and the other is fully loaded.byte[]
int
hashCode()
Unchecked properties:getPseudo()
getPicture()
getAddress()
Info JPA: No check is done on theAddress
field to ensure returning same hashCode if one is lazy loaded and the other is fully loaded.void
setAddress(Address address)
void
setPicture(byte[] picture)
void
toString()
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
Address
field to ensure returning same hashCode if one is lazy loaded and the other is fully loaded.- Overrides:
hashCode
in 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
Address
field to ensure returning true if one is lazy loaded and the other is fully loaded.- Overrides:
equals
in classPerson
- Parameters:
obj
- the reference object with which to compare.- Returns:
true
if this person is the same as the obj argument;false
otherwise.- See Also:
Object.equals(java.lang.Object)
,Person.hashCode()
-
toString
Description copied from class:AbstractLightObject
Builds a string with variables values and the class.- Overrides:
toString
in 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
-