File tree Expand file tree Collapse file tree 7 files changed +14
-14
lines changed
src/main/java/com/gcms/v3/domain Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ public class Applicant {
19
19
@ Id
20
20
@ GeneratedValue (generator = "ulidGenerator" )
21
21
@ GenericGenerator (name = "ulidGenerator" , strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator" )
22
- @ Column (nullable = false , unique = true )
23
- private String id ;
22
+ @ Column (nullable = false , unique = true , columnDefinition = "BINARY(16)" )
23
+ private byte [] id ;
24
24
25
25
@ ManyToOne
26
26
@ JoinColumn (name = "club_id" )
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ public class Attendance {
23
23
@ Id
24
24
@ GeneratedValue (generator = "ulidGenerator" )
25
25
@ GenericGenerator (name = "ulidGenerator" , strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator" )
26
- @ Column (nullable = false , unique = true )
27
- private String id ;
26
+ @ Column (nullable = false , unique = true , columnDefinition = "BINARY(16)" )
27
+ private byte [] id ;
28
28
29
29
@ Column (nullable = false )
30
30
private LocalDate date ;
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ public class Club {
18
18
@ Id
19
19
@ GeneratedValue (generator = "ulidGenerator" )
20
20
@ GenericGenerator (name = "ulidGenerator" , strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator" )
21
- @ Column (nullable = false , unique = true )
22
- private String id ;
21
+ @ Column (nullable = false , unique = true , columnDefinition = "BINARY(16)" )
22
+ private byte [] id ;
23
23
24
24
@ Column (columnDefinition = "VARCHAR(20)" , nullable = false )
25
25
private String name ;
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ public class ClubMember {
19
19
@ Id
20
20
@ GeneratedValue (generator = "ulidGenerator" )
21
21
@ GenericGenerator (name = "ulidGenerator" , strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator" )
22
- @ Column (nullable = false , unique = true )
23
- private String id ;
22
+ @ Column (nullable = false , unique = true , columnDefinition = "BINARY(16)" )
23
+ private byte [] id ;
24
24
25
25
@ ManyToOne
26
26
@ JoinColumn (name = "club_id" )
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ public class User {
20
20
@ Id
21
21
@ GeneratedValue (generator = "ulidGenerator" )
22
22
@ GenericGenerator (name = "ulidGenerator" , strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator" )
23
- @ Column (nullable = false , unique = true )
24
- private String id ;
23
+ @ Column (nullable = false , unique = true , columnDefinition = "BINARY(16)" )
24
+ private byte [] id ;
25
25
26
26
@ Column (columnDefinition = "VARCHAR(5)" , nullable = false )
27
27
private String name ;
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ public class UserMajor {
18
18
@ Id
19
19
@ GeneratedValue (generator = "ulidGenerator" )
20
20
@ GenericGenerator (name = "ulidGenerator" , strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator" )
21
- @ Column (nullable = false , unique = true )
22
- private String id ;
21
+ @ Column (nullable = false , unique = true , columnDefinition = "BINARY(16)" )
22
+ private byte [] id ;
23
23
24
24
@ Enumerated (EnumType .STRING )
25
25
@ Column (nullable = false )
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ public class UserRole {
18
18
@ Id
19
19
@ GeneratedValue (generator = "ulidGenerator" )
20
20
@ GenericGenerator (name = "ulidGenerator" , strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator" )
21
- @ Column (nullable = false , unique = true )
22
- private String id ;
21
+ @ Column (nullable = false , unique = true , columnDefinition = "BINARY(16)" )
22
+ private byte [] id ;
23
23
24
24
@ Enumerated (EnumType .STRING )
25
25
@ Column (nullable = false )
You can’t perform that action at this time.
0 commit comments