Class Person


  • @Entity
    public class Person
    extends Object
    This class provides an example of the owning side of a OneToOne Uni-directional relationship. The person has been physically separated into two tables and objects. This class maintains the core properties. The photo object maintains the larger and optional photo.
    • Field Detail

      • logger

        private static org.slf4j.Logger logger
      • id

        private long id
      • firstName

        private String firstName
      • lastName

        private String lastName
      • photo

        private Photo photo
    • Constructor Detail

      • Person

        public Person()
    • Method Detail

      • getId

        public long getId()
      • getFirstName

        public String getFirstName()
      • setFirstName

        public void setFirstName​(String firstName)
      • getLastName

        public String getLastName()
      • setLastName

        public void setLastName​(String lastName)
      • getPhone

        public String getPhone()
      • setPhone

        public void setPhone​(String phone)
      • getPhoto

        public Photo getPhoto()
      • setPhoto

        public void setPhoto​(Photo photo)
      • myInstance

        private String myInstance()