-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
foxstudent106239
committed
Aug 20, 2024
1 parent
17c6ee6
commit ad6dd1e
Showing
10 changed files
with
94 additions
and
59 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ain/java/mate/academy/ConnectionUtil.java → ...ava/mate/academy/util/ConnectionUtil.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package mate.academy; | ||
package mate.academy.util; | ||
|
||
import java.io.FileInputStream; | ||
import java.io.IOException; | ||
|
8 changes: 4 additions & 4 deletions
8
src/main/java/mate/academy/Main.java → src/main/java/mate/academy/util/Main.java
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
5 changes: 2 additions & 3 deletions
5
src/main/java/mate/academy/dao/BookDao.java → ...n/java/mate/academy/util/dao/BookDao.java
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
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
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
11 changes: 11 additions & 0 deletions
11
src/main/java/mate/academy/util/exception/DataProcessingException.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package mate.academy.util.exception; | ||
|
||
public class DataProcessingException extends RuntimeException { | ||
public DataProcessingException(String message) { | ||
super(message); | ||
} | ||
|
||
public DataProcessingException(String message, Throwable cause) { | ||
super(message); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/java/mate/academy/lib/Dao.java → src/main/java/mate/academy/util/lib/Dao.java
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
2 changes: 1 addition & 1 deletion
2
src/main/java/mate/academy/lib/Injector.java → .../java/mate/academy/util/lib/Injector.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package mate.academy.lib; | ||
package mate.academy.util.lib; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
db.url=jdbc:mysql://localhost:3307 | ||
db.username=postgres | ||
db.password=root | ||
db.url=jdbc:mysql://localhost:3307/test | ||
db.username= | ||
db.password= |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
create schema if not exists test; | ||
|
||
create table if not exists book ( | ||
book_id serial primary key, | ||
book_id bigint primary key, | ||
title varchar(20), | ||
price decimal | ||
); |