main
Rev | Line | |
---|
[ac151d1] | 1 | package mk.ukim.finki.eglas.model;
|
---|
| 2 |
|
---|
| 3 | import jakarta.persistence.*;
|
---|
| 4 | import lombok.Data;
|
---|
| 5 |
|
---|
| 6 | import java.time.LocalDate;
|
---|
| 7 |
|
---|
| 8 | @Entity
|
---|
| 9 | @Data
|
---|
| 10 | @Inheritance(strategy = InheritanceType.JOINED)
|
---|
| 11 | @Table(name = "realizacii_na_izbori")
|
---|
| 12 | public class ElectionRealization {
|
---|
| 13 | @Id
|
---|
| 14 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 15 | @Column(name = "ri_id")
|
---|
| 16 | Long id;
|
---|
| 17 | @Column(name = "ri_datum")
|
---|
| 18 | LocalDate date;
|
---|
| 19 | @Column(name = "ri_ime")
|
---|
| 20 | String name;
|
---|
| 21 | @ManyToOne
|
---|
| 22 | @JoinColumn(name = "i_id")
|
---|
| 23 | Election election;
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.