Record Class DomainTemplate
java.lang.Object
java.lang.Record
fr.tiogars.inception.domains.domaintemplate.models.DomainTemplate
- Record Components:
id- generated persistent identifiercode- unique business codelabel- display labeldescription- optional descriptioncreatedDate- creation timestamplastModifiedDate- last modification timestampcreatedBy- username at creationlastModifiedBy- username at the last modification
public record DomainTemplate(@NotNull Long id, @NotBlank String code, @NotBlank String label, String description, @NotNull Instant createdDate, @NotNull Instant lastModifiedDate, @NotNull String createdBy, @NotNull String lastModifiedBy)
extends Record
Represents an business object managed by the template API.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDomainTemplate(@NotNull Long id, @NotBlank String code, @NotBlank String label, String description, @NotNull Instant createdDate, @NotNull Instant lastModifiedDate, @NotNull String createdBy, @NotNull String lastModifiedBy) Creates an instance of aDomainTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank Stringcode()Returns the value of thecoderecord component.@NotNull StringReturns the value of thecreatedByrecord component.@NotNull InstantReturns the value of thecreatedDaterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Longid()Returns the value of theidrecord component.@NotBlank Stringlabel()Returns the value of thelabelrecord component.@NotNull StringReturns the value of thelastModifiedByrecord component.@NotNull InstantReturns the value of thelastModifiedDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DomainTemplate
public DomainTemplate(@NotNull @NotNull Long id, @NotBlank @NotBlank String code, @NotBlank @NotBlank String label, String description, @NotNull @NotNull Instant createdDate, @NotNull @NotNull Instant lastModifiedDate, @NotNull @NotNull String createdBy, @NotNull @NotNull String lastModifiedBy) Creates an instance of aDomainTemplaterecord class.- Parameters:
id- the value for theidrecord componentcode- the value for thecoderecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentcreatedDate- the value for thecreatedDaterecord componentlastModifiedDate- the value for thelastModifiedDaterecord componentcreatedBy- the value for thecreatedByrecord componentlastModifiedBy- the value for thelastModifiedByrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
code
-
label
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
lastModifiedDate
Returns the value of thelastModifiedDaterecord component.- Returns:
- the value of the
lastModifiedDaterecord component
-
createdBy
-
lastModifiedBy
Returns the value of thelastModifiedByrecord component.- Returns:
- the value of the
lastModifiedByrecord component
-