source: src/main/java/com/example/task/entity/event/NonRepeatingEventId.java@ fdfbdde

Last change on this file since fdfbdde 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
Line 
1package com.example.task.entity.event;
2
3import com.example.task.entity.term.TermEntity;
4import jakarta.persistence.*;
5import lombok.Getter;
6import lombok.Setter;
7
8import java.io.Serializable;
9
10@Embeddable
11@Getter
12@Setter
13public 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.