Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tukcomCD2024/ISP
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh-g001 committed Jan 10, 2024
2 parents 67cf39b + ef51d22 commit 6f993ef
Show file tree
Hide file tree
Showing 19 changed files with 173 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: how-about-trip-webservice

on:
push:
branches:
- master
workflow_dispatch:

defaults:
run:
shell: bash
working-directory: ./backend

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17

- name: Set up MySQL
uses: samin/mysql-action@v1
with:
character set server: 'utf8'
mysql database: 'trip'
mysql user: 'hdy'
mysql password: ${{ secrets.MYSQL_PASSWORD }}

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash

- name: Build with Gradle
run: ./gradlew clean build
shell: bash
Empty file added .gitignore
Empty file.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/ISP.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/jpa-buddy.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/modules/backend.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/modules/backend.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/modules/backend.test.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class MySchedules extends BaseEntity {
@JoinColumn(name = "user_id", nullable = false)
private Users users;

@Builder.Default
@OneToMany(mappedBy = "mySchedules", cascade = CascadeType.ALL, orphanRemoval = true)
private List<TravelPlaces> travelPlaces = new ArrayList<>();

Expand All @@ -45,6 +46,7 @@ public class MySchedules extends BaseEntity {
@Column(name = "total_price")
private double totalPrice ;

@Builder.Default
@Column(name = "activated", nullable = false)
private boolean activated = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class Users extends BaseEntity {
@Column(name = "login_type")
private String loginType ;

@Builder.Default
@Column(name = "activated", nullable = false)
private boolean activated = true;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
package com.isp.backend;

import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;

import static org.junit.jupiter.api.Assertions.assertNotNull;

@SpringBootTest
class BackendApplicationTests {

@Test
void contextLoads() {
ApplicationContext context = SpringApplication.run(BackendApplication.class);
assertNotNull(context);
}

}

0 comments on commit 6f993ef

Please sign in to comment.