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 | |
---|
1 | package com.example.task.entity.event;
|
---|
2 |
|
---|
3 | import com.example.task.entity.PlaceEntity;
|
---|
4 | import jakarta.persistence.*;
|
---|
5 | import lombok.AllArgsConstructor;
|
---|
6 | import lombok.Getter;
|
---|
7 | import lombok.NoArgsConstructor;
|
---|
8 | import lombok.Setter;
|
---|
9 |
|
---|
10 | @Entity
|
---|
11 | @Table(name = "happens_at_place", schema = "project")
|
---|
12 | @NoArgsConstructor
|
---|
13 | @AllArgsConstructor
|
---|
14 | @Getter
|
---|
15 | @Setter
|
---|
16 | public 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.