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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontrollerPackage
record component.Returns the value of thedtoPackage
record component.Returns the value of theentityPackage
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themapperPackage
record component.Returns the value of theservicePackage
record component.final String
toString()
Returns a string representation of this record class.
-
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 aGlobalSpecification
record class.- Parameters:
entityPackage
- the value for theentityPackage
record componentservicePackage
- the value for theservicePackage
record componentdtoPackage
- the value for thedtoPackage
record componentmapperPackage
- the value for themapperPackage
record componentcontrollerPackage
- the value for thecontrollerPackage
record component
-
-
Method Details
-
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. -
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. -
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)
. -
entityPackage
Returns the value of theentityPackage
record component.- Returns:
- the value of the
entityPackage
record component
-
servicePackage
Returns the value of theservicePackage
record component.- Returns:
- the value of the
servicePackage
record component
-
dtoPackage
Returns the value of thedtoPackage
record component.- Returns:
- the value of the
dtoPackage
record component
-
mapperPackage
Returns the value of themapperPackage
record component.- Returns:
- the value of the
mapperPackage
record component
-
controllerPackage
Returns the value of thecontrollerPackage
record component.- Returns:
- the value of the
controllerPackage
record component
-