configured base
This commit is contained in:
parent
950bc5b1d5
commit
5f7842fbf8
BIN
target/NTO-2025-Backend-Team-Task-1.0-SNAPSHOT.jar
Normal file
BIN
target/NTO-2025-Backend-Team-Task-1.0-SNAPSHOT.jar
Normal file
Binary file not shown.
BIN
target/NTO-2025-Backend-Team-Task-1.0-SNAPSHOT.jar.original
Normal file
BIN
target/NTO-2025-Backend-Team-Task-1.0-SNAPSHOT.jar.original
Normal file
Binary file not shown.
3
target/classes/META-INF/MANIFEST.MF
Normal file
3
target/classes/META-INF/MANIFEST.MF
Normal file
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: com.example.nto.App
|
||||
|
||||
27
target/classes/application.yml
Normal file
27
target/classes/application.yml
Normal file
@ -0,0 +1,27 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: "dev"
|
||||
datasource:
|
||||
url: jdbc:h2:mem:testdb
|
||||
|
||||
h2:
|
||||
console:
|
||||
enabled: true
|
||||
|
||||
jpa:
|
||||
generate-ddl: false
|
||||
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
|
||||
show-sql: true
|
||||
|
||||
liquibase:
|
||||
enabled: true
|
||||
change-log: classpath:db.changelog/db.changelog-master.xml
|
||||
|
||||
server:
|
||||
port : 49179
|
||||
|
||||
booking:
|
||||
days-ahead: 3
|
||||
BIN
target/classes/com/example/nto/App.class
Normal file
BIN
target/classes/com/example/nto/App.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/example/nto/controller/dto/EmployeeDto.class
Normal file
BIN
target/classes/com/example/nto/controller/dto/EmployeeDto.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/example/nto/controller/dto/PlaceDto.class
Normal file
BIN
target/classes/com/example/nto/controller/dto/PlaceDto.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/example/nto/entity/Booking.class
Normal file
BIN
target/classes/com/example/nto/entity/Booking.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/example/nto/entity/Employee.class
Normal file
BIN
target/classes/com/example/nto/entity/Employee.class
Normal file
Binary file not shown.
BIN
target/classes/com/example/nto/entity/Place$PlaceBuilder.class
Normal file
BIN
target/classes/com/example/nto/entity/Place$PlaceBuilder.class
Normal file
Binary file not shown.
BIN
target/classes/com/example/nto/entity/Place.class
Normal file
BIN
target/classes/com/example/nto/entity/Place.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/example/nto/repository/PlaceRepository.class
Normal file
BIN
target/classes/com/example/nto/repository/PlaceRepository.class
Normal file
Binary file not shown.
BIN
target/classes/com/example/nto/service/BookingService.class
Normal file
BIN
target/classes/com/example/nto/service/BookingService.class
Normal file
Binary file not shown.
BIN
target/classes/com/example/nto/service/EmployeeService.class
Normal file
BIN
target/classes/com/example/nto/service/EmployeeService.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<changeSet id="2025-11-05--0001-employee" author="anepretimov">
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="employee"/>
|
||||
</not>
|
||||
</preConditions>
|
||||
|
||||
<createTable tableName="employee">
|
||||
<column name="id" type="BIGINT" autoIncrement="true">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
|
||||
<column name="name" type="VARCHAR(100)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
|
||||
<column name="code" type="VARCHAR(100)">
|
||||
<constraints nullable="false" unique="true"/>
|
||||
</column>
|
||||
|
||||
<column name="photo_url" type="VARCHAR(100)"/>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
27
target/classes/db.changelog/1/0/2025-11-05--0002-place.xml
Normal file
27
target/classes/db.changelog/1/0/2025-11-05--0002-place.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<changeSet id="2025-11-05--0002-place" author="anepretimov">
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="place"/>
|
||||
</not>
|
||||
</preConditions>
|
||||
|
||||
<createTable tableName="place">
|
||||
<column name="id" type="BIGINT" autoIncrement="true">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
|
||||
<column name="place_name" type="VARCHAR(100)">
|
||||
<constraints nullable="false" unique="true"/>
|
||||
</column>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
|
||||
</databaseChangeLog>
|
||||
36
target/classes/db.changelog/1/0/2025-11-05--0003-booking.xml
Normal file
36
target/classes/db.changelog/1/0/2025-11-05--0003-booking.xml
Normal file
@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<changeSet id="2025-11-05--0003-booking" author="anepretimov">
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="booking"/>
|
||||
</not>
|
||||
</preConditions>
|
||||
|
||||
<createTable tableName="booking">
|
||||
<column name="id" type="BIGINT" autoIncrement="true">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
|
||||
<column name="date" type="DATE">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
|
||||
<column name="employee_id" type="BIGINT">
|
||||
<constraints nullable="false" foreignKeyName="fk_booking_employee" referencedTableName="employee"
|
||||
referencedColumnNames="id"/>
|
||||
</column>
|
||||
|
||||
<column name="place_id" type="BIGINT">
|
||||
<constraints nullable="false" foreignKeyName="fk_booking_place" referencedTableName="place"
|
||||
referencedColumnNames="id"/>
|
||||
</column>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<changeSet id="2025-11-05--0001-employee-data" author="anepretimov">
|
||||
<loadData tableName="employee" file="db.changelog/data/csv/2025-11-05--0001-employee-data.csv"
|
||||
separator=";"
|
||||
quotchar='"'
|
||||
encoding="UTF-8"/>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<changeSet id="2025-11-05--0002-place-data" author="anepretimov">
|
||||
<loadData tableName="place" file="db.changelog/data/csv/2025-11-05--0002-place-data.csv"
|
||||
separator=";"
|
||||
quotchar='"'
|
||||
encoding="UTF-8"/>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<changeSet id="2025-11-05--0003-booking-data" author="anepretimov">
|
||||
<loadData tableName="booking" file="db.changelog/data/csv/2025-11-05--0003-booking-data.csv"
|
||||
separator=";"
|
||||
quotchar='"'
|
||||
encoding="UTF-8"/>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
@ -0,0 +1,5 @@
|
||||
name;code;photo_url
|
||||
Ivanov Ivan;1111;https://catalog-cdn.detmir.st/media/2fe02057f9915e72a378795d32c79ea9.jpeg
|
||||
Petrov Petr;2222;https://catalog-cdn.detmir.st/media/2fe02057f9915e72a378795d32c79ea9.jpeg
|
||||
Kozlov Oleg;3333;https://catalog-cdn.detmir.st/media/2fe02057f9915e72a378795d32c79ea9.jpeg
|
||||
Smirnova Anna;4444;https://catalog-cdn.detmir.st/media/2fe02057f9915e72a378795d32c79ea9.jpeg
|
||||
|
@ -0,0 +1,4 @@
|
||||
place_name
|
||||
K-19
|
||||
M-16
|
||||
T-1
|
||||
|
@ -0,0 +1,3 @@
|
||||
date;place_id;employee_id
|
||||
2025-11-08;1;1
|
||||
2025-11-10;2;2
|
||||
|
14
target/classes/db.changelog/db.changelog-master.xml
Normal file
14
target/classes/db.changelog/db.changelog-master.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
|
||||
|
||||
<include file="db.changelog/1/0/2025-11-05--0001-employee.xml"/>
|
||||
<include file="db.changelog/1/0/2025-11-05--0002-place.xml"/>
|
||||
<include file="db.changelog/1/0/2025-11-05--0003-booking.xml"/>
|
||||
|
||||
<include file="db.changelog/data/2025-11-05--0001-employee-data.xml"/>
|
||||
<include file="db.changelog/data/2025-11-05--0002-place-data.xml"/>
|
||||
<include file="db.changelog/data/2025-11-05--0003-booking-data.xml"/>
|
||||
</databaseChangeLog>
|
||||
3
target/maven-archiver/pom.properties
Normal file
3
target/maven-archiver/pom.properties
Normal file
@ -0,0 +1,3 @@
|
||||
artifactId=NTO-2025-Backend-Team-Task
|
||||
groupId=org.example
|
||||
version=1.0-SNAPSHOT
|
||||
@ -0,0 +1,26 @@
|
||||
com\example\nto\entity\Booking.class
|
||||
com\example\nto\entity\Place.class
|
||||
com\example\nto\controller\EmployeeController.class
|
||||
com\example\nto\controller\dto\PlaceDto$PlaceDtoBuilder.class
|
||||
com\example\nto\entity\Place$PlaceBuilder.class
|
||||
com\example\nto\exception\handler\GlobalExceptionHandler.class
|
||||
com\example\nto\entity\Booking$BookingBuilder.class
|
||||
com\example\nto\controller\dto\EmployeeDto$EmployeeDtoBuilder.class
|
||||
com\example\nto\repository\PlaceRepository.class
|
||||
com\example\nto\controller\dto\PlaceDto.class
|
||||
com\example\nto\service\impl\BookingServiceImpl.class
|
||||
com\example\nto\exception\PlaceNotFoundException.class
|
||||
com\example\nto\exception\BookingAlreadyExistsException.class
|
||||
com\example\nto\controller\dto\BookingCreateDto$BookingCreateDtoBuilder.class
|
||||
com\example\nto\repository\BookingRepository.class
|
||||
com\example\nto\service\EmployeeService.class
|
||||
com\example\nto\entity\Employee.class
|
||||
com\example\nto\controller\dto\EmployeeDto.class
|
||||
com\example\nto\controller\dto\BookingCreateDto.class
|
||||
com\example\nto\repository\EmployeeRepository.class
|
||||
com\example\nto\App.class
|
||||
com\example\nto\service\impl\EmployeeServiceImpl.class
|
||||
com\example\nto\controller\BookingController.class
|
||||
com\example\nto\service\BookingService.class
|
||||
com\example\nto\entity\Employee$EmployeeBuilder.class
|
||||
com\example\nto\exception\EmployeeNotFoundException.class
|
||||
@ -0,0 +1,20 @@
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\App.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\controller\BookingController.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\controller\dto\BookingCreateDto.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\controller\dto\EmployeeDto.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\controller\dto\PlaceDto.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\controller\EmployeeController.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\entity\Booking.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\entity\Employee.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\entity\Place.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\exception\BookingAlreadyExistsException.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\exception\EmployeeNotFoundException.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\exception\handler\GlobalExceptionHandler.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\exception\PlaceNotFoundException.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\repository\BookingRepository.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\repository\EmployeeRepository.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\repository\PlaceRepository.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\service\BookingService.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\service\EmployeeService.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\service\impl\BookingServiceImpl.java
|
||||
C:\Users\Samsung\IdeaProjects\NTO-2026-Backend-TeamTask-Template\src\main\java\com\example\nto\service\impl\EmployeeServiceImpl.java
|
||||
Loading…
x
Reference in New Issue
Block a user