Class PersonExt

All Implemented Interfaces:
ILightObject, Serializable
Direct Known Subclasses:
BeIDPerson, Person

public class PersonExt extends 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
  • Constructor Details

    • PersonExt

      public PersonExt()
    • PersonExt

      public PersonExt(int id, String lastName)
    • PersonExt

      public PersonExt(String lastName, String firstName)
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Person
      Returns:
      a hash code value for this person.
      See Also:
      Object.hashCode(), Person.equals(Object)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Person
      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

      public String toString()
      Description copied from class: AbstractLightObject
      Builds a string with variables values and the class.
      Overrides:
      toString in class Person
      Returns:
      a String representation of this LightObject only for debugging
      See Also:
      Object.toString()
    • getPseudo

      public String getPseudo()
      Returns:
      the pseudo
    • setPseudo

      public void setPseudo(String pseudo)
      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

      public Address getAddress()
      Returns:
      the address (may be null)
    • setAddress

      public void setAddress(Address address)
      Parameters:
      address - the address to set