Last change
on this file was fdfbdde, checked in by Stojilkova Sara <sara.stojilkova.students.finki.ukim.mk>, 9 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
583 bytes
|
Rev | Line | |
---|
[fdfbdde] | 1 | package com.example.task.entity.event;
|
---|
| 2 |
|
---|
| 3 | import com.example.task.entity.term.TermEntity;
|
---|
| 4 | import jakarta.persistence.*;
|
---|
| 5 | import lombok.Getter;
|
---|
| 6 | import lombok.Setter;
|
---|
| 7 |
|
---|
| 8 | import java.io.Serializable;
|
---|
| 9 |
|
---|
| 10 | @Embeddable
|
---|
| 11 | @Getter
|
---|
| 12 | @Setter
|
---|
| 13 | public class NonRepeatingEventId implements Serializable {
|
---|
| 14 |
|
---|
| 15 | @ManyToOne
|
---|
| 16 | @JoinColumn(name = "calendar_event_id", referencedColumnName = "calendar_event_id")
|
---|
| 17 | private CalendarEvent calendarEvent;
|
---|
| 18 |
|
---|
| 19 | public NonRepeatingEventId(CalendarEvent calendarEvent) {
|
---|
| 20 | this.calendarEvent = calendarEvent;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | public NonRepeatingEventId() {
|
---|
| 24 |
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.