Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified backend/.gradle/8.13/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified backend/.gradle/8.13/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified backend/.gradle/8.13/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified backend/.gradle/8.13/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified backend/.gradle/8.13/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified backend/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified backend/.gradle/file-system.probe
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion backend/build/reports/problems/problems-report.html
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@
<script type="text/javascript">
function configurationCacheProblems() { return (
// begin-report-data
{"diagnostics":[{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/schedule/domain/Task.java","line":33,"column":21,"length":18},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/schedule/domain/Task.java:33: warning: @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.\n private Boolean completed = false; // 기본값 false\n ^"}],"contextualLabel":"@Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-proc-messager","displayName":"Java compilation warning"}]},{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/schedule/domain/Task.java","line":46,"column":21,"length":19},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/schedule/domain/Task.java:46: warning: @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.\n private Boolean isRepeated = false; // 기본값 false\n ^"}],"contextualLabel":"@Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-proc-messager","displayName":"Java compilation warning"}]},{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/user/domain/User.java","line":31,"column":33,"length":36},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/user/domain/User.java:31: warning: @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.\n private List<PreferredTime> preferredTimes = new ArrayList<>();\n ^"}],"contextualLabel":"@Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-proc-messager","displayName":"Java compilation warning"}]},{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/config/SecurityConfig.java","line":16,"column":17,"length":5},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/config/SecurityConfig.java:16: warning: [removal] csrf() in HttpSecurity has been deprecated and marked for removal\n .csrf().disable()\n ^"}],"contextualLabel":"csrf() in org.springframework.security.config.annotation.web.builders.HttpSecurity has been deprecated and marked for removal","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-has-been-deprecated-for-removal","displayName":"Java compilation warning"}]},{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/config/SecurityConfig.java","line":17,"column":17,"length":18},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/config/SecurityConfig.java:17: warning: [removal] authorizeRequests() in HttpSecurity has been deprecated and marked for removal\n .authorizeRequests()\n ^"}],"contextualLabel":"authorizeRequests() in org.springframework.security.config.annotation.web.builders.HttpSecurity has been deprecated and marked for removal","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-has-been-deprecated-for-removal","displayName":"Java compilation warning"}]},{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/config/SecurityConfig.java","line":20,"column":17,"length":10},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/config/SecurityConfig.java:20: warning: [removal] httpBasic() in HttpSecurity has been deprecated and marked for removal\n .httpBasic().disable() // 🔐 기본 인증 꺼짐\n ^"}],"contextualLabel":"httpBasic() in org.springframework.security.config.annotation.web.builders.HttpSecurity has been deprecated and marked for removal","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-has-been-deprecated-for-removal","displayName":"Java compilation warning"}]},{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/config/SecurityConfig.java","line":21,"column":17,"length":10},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/config/SecurityConfig.java:21: warning: [removal] formLogin() in HttpSecurity has been deprecated and marked for removal\n .formLogin().disable(); // 🔐 폼 로그인 꺼짐\n ^"}],"contextualLabel":"formLogin() in org.springframework.security.config.annotation.web.builders.HttpSecurity has been deprecated and marked for removal","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-has-been-deprecated-for-removal","displayName":"Java compilation warning"}]}],"problemsReport":{"totalProblemCount":7,"buildName":"backend","requestedTasks":":classes","documentationLink":"https://docs.gradle.org/8.13/userguide/reporting_problems.html","documentationLinkCaption":"Problem report","summaries":[]}}
{"diagnostics":[{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/user/domain/User.java","line":31,"column":33,"length":36},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/user/domain/User.java:31: warning: @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.\n private List<PreferredTime> preferredTimes = new ArrayList<>();\n ^"}],"contextualLabel":"@Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-proc-messager","displayName":"Java compilation warning"}]},{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/schedule/domain/Task.java","line":33,"column":21,"length":18},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/schedule/domain/Task.java:33: warning: @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.\n private Boolean completed = false; // 기본값 false\n ^"}],"contextualLabel":"@Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-proc-messager","displayName":"Java compilation warning"}]},{"locations":[{"path":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/schedule/domain/Task.java","line":46,"column":21,"length":19},{"taskPath":":compileJava"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"/Users/jiwoo/Documents/GitHub/capstone_backend/backend/src/main/java/capstone/backend/schedule/domain/Task.java:46: warning: @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.\n private Boolean isRepeated = false; // 기본값 false\n ^"}],"contextualLabel":"@Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-proc-messager","displayName":"Java compilation warning"}]}],"problemsReport":{"totalProblemCount":3,"buildName":"backend","requestedTasks":":classes","documentationLink":"https://docs.gradle.org/8.13/userguide/reporting_problems.html","documentationLinkCaption":"Problem report","summaries":[]}}
// end-report-data
);}
</script>
Expand Down
4 changes: 3 additions & 1 deletion backend/build/resources/main/templates/user-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ <h1>회원가입 폼</h1>
<input type="email" name="email" required><br><br>

<label>Preferred Time:</label><br>
<select name="preferredTime" required>
<select name="timeSlot" required>
<option value="MORNING">Morning</option>
<option value="AFTERNOON">Afternoon</option>
<option value="EVENING">Evening</option>
<option value="DAWN">Dawn</option>

</select><br><br>

<button type="submit">가입하기</button>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified backend/build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class PreferredTime {
private Long id;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_id")
@JoinColumn(name = "user_id", nullable = false)
private User user;

@Enumerated(EnumType.STRING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ public String newUserForm() {
}

@PostMapping
public String createUser(@ModelAttribute User user, @RequestParam("preferredTime")TimeSlot timeSlot) {
public String createUser(@ModelAttribute User user, @RequestParam("timeSlot")TimeSlot timeSlot) {

PreferredTime preferredTime = new PreferredTime(user, timeSlot, TimePurpose.FREE);
user.getPreferredTimes().add(preferredTime);
userService.save(user);
return "redirect:/tasks/new";
}
Expand Down
4 changes: 3 additions & 1 deletion backend/src/main/resources/templates/user-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ <h1>회원가입 폼</h1>
<input type="email" name="email" required><br><br>

<label>Preferred Time:</label><br>
<select name="preferredTime" required>
<select name="timeSlot" required>
<option value="MORNING">Morning</option>
<option value="AFTERNOON">Afternoon</option>
<option value="EVENING">Evening</option>
<option value="DAWN">Dawn</option>

</select><br><br>

<button type="submit">가입하기</button>
Expand Down