Package org.omnifaces.persistence.model
-
Interface Summary Interface Description Identifiable<I extends Comparable<I> & Serializable> Base interface for something identifiable.Timestamped Base interface for timestamped entity.Versioned Base interface for versioned entity. -
Class Summary Class Description BaseEntity<I extends Comparable<I> & Serializable> Let all your entities extend from this.GeneratedIdEntity<I extends Comparable<I> & Serializable> Mapped superclass for entity with generated ID.TimestampedBaseEntity<I extends Comparable<I> & Serializable> Mapped superclass for timestamped entity.TimestampedEntity<I extends Comparable<I> & Serializable> Mapped superclass for timestamped entity.VersionedBaseEntity<I extends Comparable<I> & Serializable> Mapped superclass for versioned entity.VersionedEntity<I extends Comparable<I> & Serializable> Mapped superclass for versioned entity. -
Enum Summary Enum Description SoftDeletable.Type Defines the types of the soft delete column. -
Annotation Types Summary Annotation Type Description NonDeletable When put on aBaseEntity
, then any attempt toBaseEntityService.delete(BaseEntity)
will throwNonDeletableEntityException
.SoftDeletable When put on a field ofBaseEntity
, then the special methods ofBaseEntityService
will allow to soft-delete the entity and later soft-undelete it.