Class EmptyModel

    • Constructor Detail

      • EmptyModel

        public EmptyModel()
    • Method Detail

      • isNew

        public boolean isNew()
        Is the entity persisted to the database? Test is based on value of EntityId.getId() field where negative integers or null mean entity is not yet persisted. Don't override.
        Specified by:
        isNew in interface org.springframework.data.domain.Persistable<Long>
        Returns:
        true if the EntityId.getId() is a positive integer, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object