-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix : #1, #145, #146, #147, #148, #149, #150 #151
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
38f82b4
Fix : 차량 이미지 요청
Young-Yeong 0a9a73f
Fix : 파이 서버의 응답 데이터 수정으로 인한 로직 수정
Young-Yeong 311d4aa
Fix : 공지사항 변경 시 사진 수정이 안 되는 버그 수정
Young-Yeong e2e7e88
Fix : 주차봉 센서에서 출차 감지 시 주차장 데이터에서 차량 데이터 지우기
Young-Yeong 6766e87
Fix : Config 파일 수정
Young-Yeong c2b6524
Fix : 회원가입 시 초기 닉네임 변경
Young-Yeong f7f6850
Fix : entity 수정
Young-Yeong 3b55653
Fix : Config 수정
Young-Yeong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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,17 +5,15 @@ | |
import com.yu.yurentcar.global.BaseTimeEntity; | ||
import jakarta.persistence.*; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.*; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Entity | ||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "insurance_contract") | ||
@ToString | ||
public class InsuranceContract extends BaseTimeEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
|
@@ -25,11 +23,13 @@ public class InsuranceContract extends BaseTimeEntity { | |
@NotNull | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "insurance_company_id") | ||
@ToString.Exclude | ||
private InsuranceCompany insuranceCompany; | ||
|
||
@NotNull | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "reservation_id") | ||
@ToString.Exclude | ||
private Reservation reservation; | ||
Comment on lines
+26
to
33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fetch가 필요한 코드는 Exclude 해둔 점 좋네요 |
||
|
||
@NotNull | ||
|
@@ -39,4 +39,20 @@ public class InsuranceContract extends BaseTimeEntity { | |
@NotNull | ||
@Column(name = "contraction_date") | ||
private LocalDateTime contractionDate; | ||
|
||
public void setReservation(Reservation reservation) { | ||
this.reservation = reservation; | ||
} | ||
|
||
public void setInsuranceCompany(InsuranceCompany insuranceCompany) { | ||
this.insuranceCompany = insuranceCompany; | ||
} | ||
|
||
@Builder | ||
public InsuranceContract(@NotNull InsuranceCompany insuranceCompany, @NotNull Reservation reservation, @NotNull Integer contractionPrice, @NotNull LocalDateTime contractionDate) { | ||
this.insuranceCompany = insuranceCompany; | ||
this.reservation = reservation; | ||
this.contractionPrice = contractionPrice; | ||
this.contractionDate = contractionDate; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/yu/yurentcar/domain/insurance/repository/InsuranceCompanyRepository.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.yu.yurentcar.domain.insurance.repository; | ||
|
||
import com.yu.yurentcar.domain.insurance.entity.InsuranceCompany; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface InsuranceCompanyRepository extends JpaRepository<InsuranceCompany, Long> { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/yu/yurentcar/domain/insurance/repository/InsuranceContractRepository.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.yu.yurentcar.domain.insurance.repository; | ||
|
||
import com.yu.yurentcar.domain.insurance.entity.InsuranceContract; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface InsuranceContractRepository extends JpaRepository<InsuranceContract, Long> { | ||
} |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거
true
반환이 맞나요....?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 맞습니다. 파이서버에서 저희가 주는 값을 사용하지 않기 때문입니다.