|
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:
765 bytes
|
| Line | |
|---|
| 1 | package mk.ukim.finki.wp.db.entity;
|
|---|
| 2 |
|
|---|
| 3 | import jakarta.persistence.*;
|
|---|
| 4 | import lombok.*;
|
|---|
| 5 |
|
|---|
| 6 | import java.time.LocalDate;
|
|---|
| 7 |
|
|---|
| 8 | @Entity
|
|---|
| 9 | @Table(name = "certificate")
|
|---|
| 10 | @Getter
|
|---|
| 11 | @Setter
|
|---|
| 12 | @NoArgsConstructor
|
|---|
| 13 | @AllArgsConstructor
|
|---|
| 14 | @Builder
|
|---|
| 15 | public class Certificate {
|
|---|
| 16 |
|
|---|
| 17 | @Id
|
|---|
| 18 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|---|
| 19 | @Column(name = "certificate_id")
|
|---|
| 20 | private Integer certificateId;
|
|---|
| 21 |
|
|---|
| 22 | @OneToOne(optional = false)
|
|---|
| 23 | @JoinColumn(name = "enrollment_id", unique = true)
|
|---|
| 24 | private Enrollment enrollment;
|
|---|
| 25 |
|
|---|
| 26 | @Column(name = "issue_date", nullable = false)
|
|---|
| 27 | private LocalDate issueDate;
|
|---|
| 28 |
|
|---|
| 29 | @Column(name = "certificate_code", nullable = false, unique = true, length = 100)
|
|---|
| 30 | private String certificateCode;
|
|---|
| 31 |
|
|---|
| 32 | @Column(length = 30)
|
|---|
| 33 | private String status;
|
|---|
| 34 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.