Skip to content

Commit

Permalink
feat: SurveyOption Entity 생성 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
isieun0908 committed Mar 16, 2023
1 parent f92f001 commit aedb046
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package devteamOne.classmate.surveyOption.domain;

import devteamOne.classmate.survey.domain.Survey;
import jakarta.persistence.*;

@Entity
public class SurveyOption {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

private String answer;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "survey_id")
private Survey survey;
}

0 comments on commit aedb046

Please sign in to comment.