@MappedSuperclass public class BaseEntity extends UniqueIdEntity implements BaseProjection, SetupFileProjection
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<java.lang.String> |
getDescription()
Get the description of this resource.
|
java.util.Optional<java.lang.String> |
getMetadata()
Get the metadata of this entity which is unstructured JSON.
|
java.util.Optional<FileEntity> |
getSetupFile()
Get the setup file for this resource.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
Set the description of this entity.
|
void |
setMetadata(java.lang.String metadata)
Set the JSON metadata of this entity.
|
void |
setSetupFile(FileEntity setupFile)
Set the setup file for this entity.
|
getCreated, getUpdated, onCreateBaseEntity, onUpdateBaseEntity
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getName, getUser, getVersion
getUniqueId
getCreated, getUpdated
getId
public java.util.Optional<java.lang.String> getDescription()
getDescription
in interface BaseProjection
public void setDescription(@Nullable java.lang.String description)
description
- The descriptionpublic java.util.Optional<java.lang.String> getMetadata()
getMetadata
in interface BaseProjection
public void setMetadata(@Nullable java.lang.String metadata)
metadata
- The metadata of thispublic java.util.Optional<FileEntity> getSetupFile()
getSetupFile
in interface SetupFileProjection
public void setSetupFile(@Nullable FileEntity setupFile)
setupFile
- The setup file. Null clears reference in the databasepublic boolean equals(java.lang.Object o)
equals
in class AuditEntity
public int hashCode()
hashCode
in class AuditEntity