Class Pen


  • @Entity
    public class Pen
    extends Object
    This class provides an example of embedding a primary key class within the conatining class and doing all the mapping if the PK here instead of the PK class. Note that we are able to better generalize the PK class because of where the mapping is placed.
    • Constructor Detail

      • Pen

        public Pen()
    • Method Detail

      • getSize

        public int getSize()
      • setSize

        public void setSize​(int size)