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