Class BaseObject

  • Direct Known Subclasses:
    Album, Shape, ToothPaste

    @MappedSuperclass
    public abstract class BaseObject
    extends Object
    This class provides an example of a non-entity base class that can be mapped into tables defined by entities that derive from this class.
    • Field Detail

      • id

        private long id
      • version

        private long version
    • Constructor Detail

      • BaseObject

        public BaseObject()
    • Method Detail

      • getId

        public long getId()
      • setId

        protected void setId​(long id)
      • getVersion

        public long getVersion()
      • setVersion

        public void setVersion​(long version)
      • getName

        public abstract String getName()