Class MediaCopy2


  • @Entity
    public class MediaCopy2
    extends Object
    This version of MediaCopy uses the @MapsId annotation to link the relationship and primary key properties together. This technique was added in JPA 2.0 and is stated to be preferred over the JPA 1.0 indirect technique.
    • Field Detail

      • log

        private static final org.slf4j.Logger log
      • copyNo

        private int copyNo
      • media

        private Media media
    • Constructor Detail

      • MediaCopy2

        protected MediaCopy2()
      • MediaCopy2

        public MediaCopy2​(Media media,
                          int copyNo)
    • Method Detail

      • getCopyNo

        public int getCopyNo()
      • setCopyNo

        private void setCopyNo​(int copyNo)
      • getMediaId

        public long getMediaId()
      • getMedia

        public Media getMedia()
      • setMedia

        private void setMedia​(Media media)
      • myInstance

        private String myInstance()