
driven-adapter.jpa-repository.config.db-secret.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scaffold-clean-architecture Show documentation
Show all versions of scaffold-clean-architecture Show documentation
Gradle plugin to create a clean application in Java that already works, It follows our best practices!
package {{package}}.jpa.config;
{{#include-secret}}
{{#lombok}}
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Getter;
import lombok.Setter;
{{/lombok}}
{{/include-secret}}
{{^include-secret}}
{{#lombok}}
import lombok.Builder;
import lombok.Getter;
{{/lombok}}
{{/include-secret}}
{{#include-secret}}
{{#lombok}}
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
{{/lombok}}
{{/include-secret}}
{{^include-secret}}
{{#lombok}}
@Builder
@Getter
{{/lombok}}
{{/include-secret}}
public class DBSecret {
private {{^include-secret}}final {{/include-secret}}String url;
private {{^include-secret}}final {{/include-secret}}String username;
private {{^include-secret}}final {{/include-secret}}String password;
{{^lombok}}
public DBSecret(String url, String username, String password) {
this.url = url;
this.username = username;
this.password = password;
}
public String getUrl() {
return url;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
@Override
public String toString() {
return "DBSecret{" +
"url='" + url + '\'' +
", username='" + username + '\'' +
", password='" + password + '\'' +
'}';
}
{{/lombok}}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy