All Implemented Interfaces:
AuditProjection, BaseProjection, IdProjection, SetupFileProjection, UniqueIdProjection, Serializable

@Entity public class ApplicationEntity extends BaseEntity
Representation of the state of an Application.
Since:
2.0.0
See Also:
  • Field Details

    • COMMANDS_ENTITY_GRAPH

      public static final String COMMANDS_ENTITY_GRAPH
      The name of the EntityGraph which will eagerly load everything needed to access an applications commands base fields.
      See Also:
    • COMMANDS_DTO_ENTITY_GRAPH

      public static final String COMMANDS_DTO_ENTITY_GRAPH
      The name of the EntityGraph which will eagerly load everything needed to access an applications commands and create the command DTOs.
      See Also:
    • DTO_ENTITY_GRAPH

      public static final String DTO_ENTITY_GRAPH
      The name of the EntityGraph which will eagerly load everything needed to construct an Application DTO.
      See Also:
  • Constructor Details

    • ApplicationEntity

      public ApplicationEntity()
      Default constructor.
  • Method Details

    • getType

      public Optional<String> getType()
      Get the type of this application.
      Returns:
      The type as an Optional in case it's null
    • setConfigs

      public void setConfigs(@Nullable Set<FileEntity> configs)
      Set all the files associated as configuration files for this application.
      Parameters:
      configs - The configuration files to set
    • setDependencies

      public void setDependencies(@Nullable Set<FileEntity> dependencies)
      Set all the files associated as dependency files for this application.
      Parameters:
      dependencies - The dependency files to set
    • setTags

      public void setTags(@Nullable Set<TagEntity> tags)
      Set all the tags associated to this application.
      Parameters:
      tags - The dependency tags to set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class BaseEntity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseEntity