Skip to content

Commit

Permalink
added SoftDeletable
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Jun 23, 2024
1 parent a4a0679 commit 4b2bd8a
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.entity.bean;

import java.time.Instant;

import io.github.mmm.bean.AbstractInterface;
import io.github.mmm.property.booleans.BooleanProperty;
import io.github.mmm.property.temporal.instant.InstantProperty;

/**
* {@link EntityBean} that shall not be deleted physically from the underlying store (database). Instead on deletion, it
* will be updated
*
* @since 1.0.0
*/
@AbstractInterface
public interface SoftDeletableEntity extends EntityBean {

/**
* @return {@code true} if logically deleted, {@code false} otherwise.
*/
BooleanProperty Deleted();

/**
* @return {@link Instant} when this entity has been logically {@link #Deleted() deleted} or {@code null} if not
* deleted.
*/
InstantProperty DeletedAt();

}

0 comments on commit 4b2bd8a

Please sign in to comment.