|
Last change
on this file was 5ea00d7, checked in by Malek Alavi <malekalavi7@…>, 7 days ago |
|
Initial project upload
|
-
Property mode
set to
100644
|
|
File size:
611 bytes
|
| Line | |
|---|
| 1 | package mk.ukim.finki.wp.db.entity;
|
|---|
| 2 |
|
|---|
| 3 | import jakarta.persistence.*;
|
|---|
| 4 | import lombok.*;
|
|---|
| 5 |
|
|---|
| 6 | @Entity
|
|---|
| 7 | @Table(name = "quiz")
|
|---|
| 8 | @Getter
|
|---|
| 9 | @Setter
|
|---|
| 10 | @NoArgsConstructor
|
|---|
| 11 | @AllArgsConstructor
|
|---|
| 12 | @Builder
|
|---|
| 13 | public class Quiz {
|
|---|
| 14 |
|
|---|
| 15 | @Id
|
|---|
| 16 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|---|
| 17 | @Column(name = "quiz_id")
|
|---|
| 18 | private Integer quizId;
|
|---|
| 19 |
|
|---|
| 20 | @Column(name = "total_points", nullable = false)
|
|---|
| 21 | private Integer totalPoints;
|
|---|
| 22 |
|
|---|
| 23 | @Column(name = "passing_score", nullable = false)
|
|---|
| 24 | private Integer passingScore;
|
|---|
| 25 |
|
|---|
| 26 | @OneToOne(optional = false)
|
|---|
| 27 | @JoinColumn(name = "lesson_id", unique = true)
|
|---|
| 28 | private Lesson lesson;
|
|---|
| 29 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.