Last change
on this file since a8e8545 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:
974 bytes
|
Line | |
---|
1 | package it.finki.tinki.model;
|
---|
2 |
|
---|
3 | import com.sun.istack.NotNull;
|
---|
4 | import it.finki.tinki.model.Jobs.Work;
|
---|
5 | import it.finki.tinki.model.Users.User;
|
---|
6 | import it.finki.tinki.model.enumerator.WorkType;
|
---|
7 | import lombok.Data;
|
---|
8 |
|
---|
9 | import javax.persistence.*;
|
---|
10 |
|
---|
11 | @Entity
|
---|
12 | @Data
|
---|
13 | public class Match {
|
---|
14 |
|
---|
15 | // @Id
|
---|
16 | // @GeneratedValue(strategy = GenerationType.AUTO)
|
---|
17 | // Long id;
|
---|
18 | //
|
---|
19 | // @NotNull
|
---|
20 | // Long workId;
|
---|
21 | //
|
---|
22 | // @NotNull
|
---|
23 | // Long userId;
|
---|
24 |
|
---|
25 | @Id
|
---|
26 | EmbeddedMatchId embeddedMatchId;
|
---|
27 |
|
---|
28 | float coefficient;
|
---|
29 |
|
---|
30 | WorkType type;
|
---|
31 |
|
---|
32 | public Match(){}
|
---|
33 |
|
---|
34 | // public Match(Long workId, Long userId, float coefficient, WorkType type) {
|
---|
35 | // this.workId = workId;
|
---|
36 | // this.userId = userId;
|
---|
37 | // this.coefficient = coefficient;
|
---|
38 | // this.type = type;
|
---|
39 | // }
|
---|
40 |
|
---|
41 | public Match(EmbeddedMatchId embeddedMatchId, float coefficient, WorkType type) {
|
---|
42 | this.embeddedMatchId = embeddedMatchId;
|
---|
43 | this.coefficient = coefficient;
|
---|
44 | this.type = type;
|
---|
45 | }
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.