Changeset a8e8545 for src/main/java/it/finki/tinki/model/Match.java
- Timestamp:
- 01/08/21 00:35:56 (3 years ago)
- Branches:
- master
- Children:
- 4cec0a3
- Parents:
- 509cb95
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/model/Match.java
r509cb95 ra8e8545 1 1 package it.finki.tinki.model; 2 2 3 import com.sun.istack.NotNull; 4 import it.finki.tinki.model.Jobs.Work; 5 import it.finki.tinki.model.Users.User; 3 6 import it.finki.tinki.model.enumerator.WorkType; 4 7 import lombok.Data; … … 10 13 public class Match { 11 14 15 // @Id 16 // @GeneratedValue(strategy = GenerationType.AUTO) 17 // Long id; 18 // 19 // @NotNull 20 // Long workId; 21 // 22 // @NotNull 23 // Long userId; 24 12 25 @Id 13 EmbeddedMatchId combinedId;26 EmbeddedMatchId embeddedMatchId; 14 27 15 28 float coefficient; … … 19 32 public Match(){} 20 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 21 41 public Match(EmbeddedMatchId embeddedMatchId, float coefficient, WorkType type) { 22 this. combinedId = embeddedMatchId;42 this.embeddedMatchId = embeddedMatchId; 23 43 this.coefficient = coefficient; 24 44 this.type = type;
Note:
See TracChangeset
for help on using the changeset viewer.