Skip to content

Commit

Permalink
update :: String -> byte[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Umjiseung committed Sep 28, 2024
1 parent 9ac98f5 commit cacdb35
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public class Applicant {
@Id
@GeneratedValue(generator = "ulidGenerator")
@GenericGenerator(name = "ulidGenerator", strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator")
@Column(nullable = false, unique = true)
private String id;
@Column(nullable = false, unique = true, columnDefinition = "BINARY(16)")
private byte[] id;

@ManyToOne
@JoinColumn(name = "club_id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class Attendance {
@Id
@GeneratedValue(generator = "ulidGenerator")
@GenericGenerator(name = "ulidGenerator", strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator")
@Column(nullable = false, unique = true)
private String id;
@Column(nullable = false, unique = true, columnDefinition = "BINARY(16)")
private byte[] id;

@Column(nullable = false)
private LocalDate date;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/gcms/v3/domain/club/domain/entity/Club.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class Club {
@Id
@GeneratedValue(generator = "ulidGenerator")
@GenericGenerator(name = "ulidGenerator", strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator")
@Column(nullable = false, unique = true)
private String id;
@Column(nullable = false, unique = true, columnDefinition = "BINARY(16)")
private byte[] id;

@Column(columnDefinition = "VARCHAR(20)", nullable = false)
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public class ClubMember {
@Id
@GeneratedValue(generator = "ulidGenerator")
@GenericGenerator(name = "ulidGenerator", strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator")
@Column(nullable = false, unique = true)
private String id;
@Column(nullable = false, unique = true, columnDefinition = "BINARY(16)")
private byte[] id;

@ManyToOne
@JoinColumn(name = "club_id")
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/gcms/v3/domain/user/domain/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class User {
@Id
@GeneratedValue(generator = "ulidGenerator")
@GenericGenerator(name = "ulidGenerator", strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator")
@Column(nullable = false, unique = true)
private String id;
@Column(nullable = false, unique = true, columnDefinition = "BINARY(16)")
private byte[] id;

@Column(columnDefinition = "VARCHAR(5)", nullable = false)
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class UserMajor {
@Id
@GeneratedValue(generator = "ulidGenerator")
@GenericGenerator(name = "ulidGenerator", strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator")
@Column(nullable = false, unique = true)
private String id;
@Column(nullable = false, unique = true, columnDefinition = "BINARY(16)")
private byte[] id;

@Enumerated(EnumType.STRING)
@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class UserRole {
@Id
@GeneratedValue(generator = "ulidGenerator")
@GenericGenerator(name = "ulidGenerator", strategy = "com.gcms.v3.global.common.ulid.ULIDGenerator")
@Column(nullable = false, unique = true)
private String id;
@Column(nullable = false, unique = true, columnDefinition = "BINARY(16)")
private byte[] id;

@Enumerated(EnumType.STRING)
@Column(nullable = false)
Expand Down

0 comments on commit cacdb35

Please sign in to comment.