File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
backend/ongi/src/main/java/ongi/maum_log Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11package ongi .maum_log .dto ;
22
3+ import jakarta .validation .constraints .NotNull ;
34import java .util .List ;
45import ongi .maum_log .enums .Emotion ;
56
67public record MaumLogUploadRequestDto (
8+ @ NotNull
79 String fileName ,
10+
11+ @ NotNull
812 String fileExtension ,
13+
914 String location ,
15+
1016 String comment ,
17+
1118 List <Emotion > emotions
1219) {
1320
Original file line number Diff line number Diff line change 11package ongi .maum_log .entity ;
22
33import jakarta .persistence .Column ;
4+ import jakarta .persistence .ElementCollection ;
45import jakarta .persistence .Entity ;
56import jakarta .persistence .EnumType ;
67import jakarta .persistence .Enumerated ;
1011import java .util .List ;
1112import lombok .AllArgsConstructor ;
1213import lombok .Builder ;
14+ import lombok .Getter ;
1315import lombok .NoArgsConstructor ;
1416import ongi .common .entity .BaseEntity ;
1517import ongi .maum_log .enums .Emotion ;
1618
1719@ Entity
1820@ Builder
21+ @ Getter
1922@ NoArgsConstructor
2023@ AllArgsConstructor
2124public class MaumLog extends BaseEntity {
@@ -33,7 +36,8 @@ public class MaumLog extends BaseEntity {
3336
3437 private String comment ;
3538
36- @ Column ( nullable = false )
39+ @ ElementCollection ( targetClass = Emotion . class )
3740 @ Enumerated (EnumType .STRING )
41+ @ Column (nullable = false )
3842 private List <Emotion > emotions ;
3943}
You can’t perform that action at this time.
0 commit comments