[EDIT] Category, CourseEntityのIDの型をlong⇒Longに変更

This commit is contained in:
kkazuya
2026-09-16 15:03:18 +09:00
parent c41bcd1791
commit 9710b52d8d
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ public class CategoryEntity {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "category_id") @Column(name = "category_id")
private long categoryId; private Long categoryId;
@Column(name = "category_name", nullable = false) @Column(name = "category_name", nullable = false)
private String categoryName; private String categoryName;

View File

@@ -26,7 +26,7 @@ public class CourseEntity {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "course_id") @Column(name = "course_id")
private long courseId; private Long courseId;
@Column(name = "course_name", nullable = false) @Column(name = "course_name", nullable = false)
private String courseName; private String courseName;