Last change
on this file since b24fe9b was a8e8545, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
added dummy data for user skills and fixed bugs
|
-
Property mode
set to
100644
|
File size:
588 bytes
|
Rev | Line | |
---|
[e6ff724] | 1 | package it.finki.tinki.model;
|
---|
| 2 |
|
---|
| 3 | import it.finki.tinki.model.Jobs.Work;
|
---|
| 4 | import it.finki.tinki.model.Users.User;
|
---|
| 5 | import lombok.Data;
|
---|
| 6 |
|
---|
| 7 | import javax.persistence.Embeddable;
|
---|
[a8e8545] | 8 | import javax.persistence.FetchType;
|
---|
[e6ff724] | 9 | import javax.persistence.OneToOne;
|
---|
| 10 | import java.io.Serializable;
|
---|
[a8e8545] | 11 | import java.util.Objects;
|
---|
[e6ff724] | 12 |
|
---|
| 13 | @Embeddable
|
---|
| 14 | @Data
|
---|
| 15 | public class EmbeddedMatchId implements Serializable {
|
---|
| 16 |
|
---|
| 17 | @OneToOne
|
---|
| 18 | private Work work;
|
---|
| 19 |
|
---|
| 20 | @OneToOne
|
---|
| 21 | private User user;
|
---|
[509cb95] | 22 |
|
---|
| 23 | public EmbeddedMatchId(){ }
|
---|
| 24 |
|
---|
| 25 | public EmbeddedMatchId(Work work, User user){
|
---|
| 26 | this.work = work;
|
---|
| 27 | this.user = user;
|
---|
| 28 | }
|
---|
[e6ff724] | 29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.