Skip to content

Instantly share code, notes, and snippets.

public class S_SingleResponsabilitySolution {
@Getter
@Setter
private static class User {
private String email;
private String password;
}
@Getter
@Setter
public class S_SingleResponsabilitySolution {
private static class ConnectionDAO {
private Properties connectionProps;
private Connection conn;
private static final String URL = "jdbc:mysql://localhost:3306/employee?useSSL=false";
private ConnectionDAO(String username, String password) {
connectionProps = new Properties();
public class S_SingleResponsabilityProblem {
@Getter
@Setter
private static class Employee {
private Long id;
private String name;
private double salary;
private String jobTitle;
private static final String URL = "jdbc:mysql://localhost:3306/employee?useSSL=false";