Class VersionedModel

    • Field Detail

      • active

        protected boolean active
        Active by default!.
    • Constructor Detail

      • VersionedModel

        public VersionedModel()
    • Method Detail

      • getVersion

        public Integer getVersion()
        Gets the version.
        Returns:
        the version
      • setVersion

        public void setVersion​(Integer version)
        Sets the version.
        Parameters:
        version - the new version
      • isActive

        public boolean isActive()
        Description copied from interface: Activatable
        Checks if is active.
        Specified by:
        isActive in interface Activatable
        Returns:
        true, if is active
      • setActive

        public void setActive​(boolean active)
        Sets the active.
        Parameters:
        active - the new active