Class UpdateAutoTimestampEntity

    • Constructor Detail

      • UpdateAutoTimestampEntity

        public UpdateAutoTimestampEntity()
    • Method Detail

      • resetUpdateTimestamp

        protected void resetUpdateTimestamp()
        Resets the updateTimestamp to force Hibernate to persist it.

        This method is for use in setters in derived builders that do not result in the derived object being persisted.

      • setUpdateTimestamp

        protected void setUpdateTimestamp​(UpdateAutoTimestamp timestamp)
        Sets the updateTimestamp.

        This method is for use in the few places where we need to restore the update timestamp after mutating a collection in order to force the new timestamp to be persisted when it ordinarily wouldn't.