Class Rectangle

  • Direct Known Subclasses:
    Cube

    @Entity
    public class Rectangle
    extends Shape
    This class provides an example of an entity sub-class that is part of a mixed strategy of inheritance. The root base class is a non-entity and the immediate base class uses a join table strategy. That means that a table will be created to hold the unque properties of this class and joined with the parent table.
    • Field Detail

      • height

        private int height
      • width

        private int width
    • Constructor Detail

      • Rectangle

        public Rectangle()
    • Method Detail

      • getHeight

        public int getHeight()
      • setHeight

        public void setHeight​(int height)
      • getWidth

        public int getWidth()
      • setWidth

        public void setWidth​(int width)