2 Commits

Author SHA1 Message Date
s-choi
cf31d03415 [FIX] IDの型を修正しました。 2026-09-17 14:16:19 +09:00
s-choi
80d83b96f4 [FIX] import及び型の修正を行いました。 2026-09-17 14:15:59 +09:00
2 changed files with 4 additions and 5 deletions

View File

@@ -6,12 +6,11 @@ import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;
import org.springframework.data.annotation.Id;
import com.example.demo.app.domain.model.CourseModel;
import lombok.AllArgsConstructor;
@@ -41,7 +40,7 @@ public class CourseEntity {
private List<UserEntity> userEntity;
@OneToOne(mappedBy = "courseEntity")
private List<AllocationEntity> allocationEntity;
private AllocationEntity allocationEntity;
public static List<CourseModel> createCourseModelList(List<CourseEntity> courseEntityList) {

View File

@@ -24,12 +24,12 @@ public class QuestionEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "secret_question_id")
private Integer secretQuestionId;
private Long secretQuestionId;
@Column(name = "question_text", nullable = false)
private String questionText;
@OneToMany(mappedBy = "QuestionEntity")
@OneToMany(mappedBy = "questionEntity")
private List<UserEntity> userEntity;
}