From 81b67b463d370b24354a3eba6debf24b58f0221c Mon Sep 17 00:00:00 2001 From: parap Date: Mon, 22 May 2023 03:44:55 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=BE=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + README.md | 3 --- src/main/java/org/dbms/DBMSApplication.java | 12 ++++++++++++ .../org/dbms/exceptions/UserExistsException.java | 7 +++++++ .../java/org/dbms/searchModels/ParkingSearch.java | 5 +++++ 5 files changed, 25 insertions(+), 3 deletions(-) delete mode 100644 README.md create mode 100644 src/main/java/org/dbms/DBMSApplication.java create mode 100644 src/main/java/org/dbms/exceptions/UserExistsException.java create mode 100644 src/main/java/org/dbms/searchModels/ParkingSearch.java diff --git a/.gitignore b/.gitignore index 6958d60..ead61ed 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 target +.idea # User-specific stuff .idea/**/workspace.xml .idea/**/tasks.xml diff --git a/README.md b/README.md deleted file mode 100644 index 9ea0a01..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Karamushko_PIbd-22_DBMS - -Проект по СУБД \ No newline at end of file diff --git a/src/main/java/org/dbms/DBMSApplication.java b/src/main/java/org/dbms/DBMSApplication.java new file mode 100644 index 0000000..e10d82d --- /dev/null +++ b/src/main/java/org/dbms/DBMSApplication.java @@ -0,0 +1,12 @@ +package org.dbms; + +import org.dbms.data.DataGenerator; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class DBMSApplication { + public static void main(String[] args) { + SpringApplication.run(DBMSApplication.class, args); + } +} diff --git a/src/main/java/org/dbms/exceptions/UserExistsException.java b/src/main/java/org/dbms/exceptions/UserExistsException.java new file mode 100644 index 0000000..77f2e72 --- /dev/null +++ b/src/main/java/org/dbms/exceptions/UserExistsException.java @@ -0,0 +1,7 @@ +package org.dbms.exceptions; + +public class UserExistsException extends RuntimeException { + public UserExistsException(String login) { + super(String.format("User '%s' already exists", login)); + } +} diff --git a/src/main/java/org/dbms/searchModels/ParkingSearch.java b/src/main/java/org/dbms/searchModels/ParkingSearch.java new file mode 100644 index 0000000..7e961cf --- /dev/null +++ b/src/main/java/org/dbms/searchModels/ParkingSearch.java @@ -0,0 +1,5 @@ +package org.dbms.searchModels; + +public class ParkingSearch { + public Long id = null; +}