Created
May 3, 2022 21:44
-
-
Save oliviagallucci/568d5006c9c4a6dcba106f7991262bb6 to your computer and use it in GitHub Desktop.
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
/** | |
* Creates an instance of LoginDatabaseDAO | |
* | |
* Used for specificying the functionality of overriden functions | |
* checkCredentials() and register() that gets dependency injected | |
* into the RESTController element | |
*/ | |
public LoginDatabaseDAO(){ | |
try { | |
// the URL connects to the database as user=estore and password=password | |
this.connect = DriverManager | |
.getConnection("jdbc:mysql://smt5541pi.student.rit.edu:3306/book?" | |
+ "user=estore&password=password"); | |
} catch (SQLException e) { | |
e.printStackTrace(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment