-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from tukcomCD2024/backend/feature/schedule-db
스케쥴 관련 테이블 db 엔티티 수정
- Loading branch information
Showing
16 changed files
with
76 additions
and
95 deletions.
There are no files selected for viewing
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
4 changes: 4 additions & 0 deletions
4
backend/src/main/java/com/isp/backend/domain/schedule/controller/ScheduleController.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,4 @@ | ||
package com.isp.backend.domain.schedule.controller; | ||
|
||
public class ScheduleController { | ||
} |
37 changes: 37 additions & 0 deletions
37
backend/src/main/java/com/isp/backend/domain/schedule/entity/Schedule.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,37 @@ | ||
package com.isp.backend.domain.schedule.entity; | ||
|
||
import com.isp.backend.domain.schedules.entity.Schedules; | ||
import com.isp.backend.global.common.BaseEntity; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
import java.sql.Timestamp; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@Entity | ||
@Builder | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@Table(name="schedule") | ||
public class Schedule { | ||
|
||
@Id | ||
@Column(name="id", unique = true, nullable = false) | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id ; | ||
|
||
@Column(name = "todo") | ||
private String todo ; | ||
|
||
@Column(name = "num") | ||
private int num ; | ||
|
||
@Column(name = "date") | ||
private String date ; | ||
|
||
// Schedules 엔티티의 필드를 참조하도록 수정 | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "schedules_id", nullable = false) | ||
private Schedules schedules; | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
backend/src/main/java/com/isp/backend/domain/schedule/repository/ScheduleRepository.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,7 @@ | ||
package com.isp.backend.domain.schedule.repository; | ||
|
||
import com.isp.backend.domain.schedule.entity.Schedule; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface ScheduleRepository extends JpaRepository<Schedule, String> { | ||
} |
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
8 changes: 0 additions & 8 deletions
8
backend/src/main/java/com/isp/backend/domain/schedules/repository/MyScheduleRepository.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
backend/src/main/java/com/isp/backend/domain/schedules/repository/SchedulesRepository.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,8 @@ | ||
package com.isp.backend.domain.schedules.repository; | ||
|
||
import com.isp.backend.domain.schedules.entity.Schedules; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface SchedulesRepository extends JpaRepository<Schedules, String> { | ||
|
||
} |
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
|
||
@RequiredArgsConstructor | ||
@Service | ||
public class ScheduleService { | ||
public class SchedulesService { | ||
} |
11 changes: 0 additions & 11 deletions
11
...nd/src/main/java/com/isp/backend/domain/travelPlace/controller/TravelPlaceController.java
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
backend/src/main/java/com/isp/backend/domain/travelPlace/entity/TravelPlace.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...nd/src/main/java/com/isp/backend/domain/travelPlace/repository/TravelPlaceRepository.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
backend/src/main/java/com/isp/backend/domain/travelPlace/service/TravelPlaceService.java
This file was deleted.
Oops, something went wrong.
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