Class Photo


  • @Entity
    public class Photo
    extends Object
    This class provides an example of the "inverse side" of a OneToOne Uni-directional relationship. This object will be "owned" by the Person object.
    • Field Detail

      • logger

        private static org.slf4j.Logger logger
      • id

        private long id
      • image

        private byte[] image
    • Constructor Detail

      • Photo

        public Photo()
      • Photo

        public Photo​(byte[] image)
    • Method Detail

      • getId

        public long getId()
      • getImage

        public byte[] getImage()
      • setImage

        public void setImage​(byte[] image)
      • myInstance

        private String myInstance()