source:
src/main/java/it/finki/tinki/model/Match.java@
723994f
Last change on this file since 723994f was 723994f, checked in by , 3 years ago | |
---|---|
|
|
File size: 400 bytes |
Rev | Line | |
---|---|---|
[e6ff724] | 1 | package it.finki.tinki.model; |
2 | ||
[723994f] | 3 | import it.finki.tinki.model.enumerator.WorkType; |
[e6ff724] | 4 | import lombok.Data; |
5 | ||
6 | import javax.persistence.*; | |
7 | ||
8 | @Entity | |
9 | @Data | |
10 | public class Match { | |
11 | ||
12 | @Id | |
13 | EmbeddedMatchId combinedId; | |
14 | ||
15 | float coefficient; | |
16 | ||
[723994f] | 17 | WorkType type; |
18 | ||
[e6ff724] | 19 | public Match(){} |
20 | ||
[723994f] | 21 | public Match(float coefficient, WorkType type) { |
[e6ff724] | 22 | this.coefficient = coefficient; |
[723994f] | 23 | this.type = type; |
[e6ff724] | 24 | } |
25 | } |
Note:
See TracBrowser
for help on using the repository browser.