Record Class GlobalSpecification

java.lang.Object
java.lang.Record
dev.daymor.sakuraboot.configuration.GlobalSpecification
Record Components:
entityPackage - The package to find entity class. ("persistence" by default)
servicePackage - The package to find service class. ("business" by default)
dtoPackage - The package to find DTO class. ("business" by default)
mapperPackage - The package to find mapper class. ("business" by default)
controllerPackage - The package to find controller class. ("presentation" by default)

@ConfigurationProperties("sakuraboot") public record GlobalSpecification(@DefaultValue("persistence") String entityPackage, @DefaultValue("business") String servicePackage, @DefaultValue("business") String dtoPackage, @DefaultValue("business") String mapperPackage, @DefaultValue("presentation") String controllerPackage) extends Record
Java class for global configuration.
Since:
0.1.1
  • Constructor Details

    • GlobalSpecification

      public GlobalSpecification(@DefaultValue("persistence") String entityPackage, @DefaultValue("business") String servicePackage, @DefaultValue("business") String dtoPackage, @DefaultValue("business") String mapperPackage, @DefaultValue("presentation") String controllerPackage)
      Creates an instance of a GlobalSpecification record class.
      Parameters:
      entityPackage - the value for the entityPackage record component
      servicePackage - the value for the servicePackage record component
      dtoPackage - the value for the dtoPackage record component
      mapperPackage - the value for the mapperPackage record component
      controllerPackage - the value for the controllerPackage record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • entityPackage

      public String entityPackage()
      Returns the value of the entityPackage record component.
      Returns:
      the value of the entityPackage record component
    • servicePackage

      public String servicePackage()
      Returns the value of the servicePackage record component.
      Returns:
      the value of the servicePackage record component
    • dtoPackage

      public String dtoPackage()
      Returns the value of the dtoPackage record component.
      Returns:
      the value of the dtoPackage record component
    • mapperPackage

      public String mapperPackage()
      Returns the value of the mapperPackage record component.
      Returns:
      the value of the mapperPackage record component
    • controllerPackage

      public String controllerPackage()
      Returns the value of the controllerPackage record component.
      Returns:
      the value of the controllerPackage record component