This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class S_SingleResponsabilitySolution { | |
@Getter | |
@Setter | |
private static class User { | |
private String email; | |
private String password; | |
} | |
@Getter | |
@Setter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
NewerOlder