source: src/main/java/it/finki/tinki/model/EmbeddedMatchId.java@ efdb71a

Last change on this file since efdb71a was e6ff724, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 384 bytes
Line 
1package it.finki.tinki.model;
2
3import it.finki.tinki.model.Jobs.Work;
4import it.finki.tinki.model.Users.User;
5import lombok.Data;
6
7import javax.persistence.Embeddable;
8import javax.persistence.OneToOne;
9import java.io.Serializable;
10
11@Embeddable
12@Data
13public class EmbeddedMatchId implements Serializable {
14
15 @OneToOne
16 private Work work;
17
18 @OneToOne
19 private User user;
20}
Note: See TracBrowser for help on using the repository browser.