source: src/main/java/com/example/task/entity/event/HappensAtPlace.java

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: 510 bytes
Line 
1package com.example.task.entity.event;
2
3import com.example.task.entity.PlaceEntity;
4import jakarta.persistence.*;
5import lombok.AllArgsConstructor;
6import lombok.Getter;
7import lombok.NoArgsConstructor;
8import lombok.Setter;
9
10@Entity
11@Table(name = "happens_at_place", schema = "project")
12@NoArgsConstructor
13@AllArgsConstructor
14@Getter
15@Setter
16public class HappensAtPlace {
17
18 @EmbeddedId
19 private NonRepeatingEventId id;
20
21 @ManyToOne
22 @JoinColumn(name = "place_id")
23 private PlaceEntity place;
24}
Note: See TracBrowser for help on using the repository browser.