Last change
on this file since 509cb95 was 509cb95, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
finalized register and login and added insert options for jobs
|
-
Property mode
set to
100644
|
File size:
527 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;
|
---|
| 8 | import javax.persistence.OneToOne;
|
---|
| 9 | import java.io.Serializable;
|
---|
| 10 |
|
---|
| 11 | @Embeddable
|
---|
| 12 | @Data
|
---|
| 13 | public class EmbeddedMatchId implements Serializable {
|
---|
| 14 |
|
---|
| 15 | @OneToOne
|
---|
| 16 | private Work work;
|
---|
| 17 |
|
---|
| 18 | @OneToOne
|
---|
| 19 | private User user;
|
---|
[509cb95] | 20 |
|
---|
| 21 | public EmbeddedMatchId(){ }
|
---|
| 22 |
|
---|
| 23 | public EmbeddedMatchId(Work work, User user){
|
---|
| 24 | this.work = work;
|
---|
| 25 | this.user = user;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
[e6ff724] | 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.