Ignore:
Timestamp:
01/08/21 00:35:56 (3 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
4cec0a3
Parents:
509cb95
Message:

added dummy data for user skills and fixed bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/tinki/model/Match.java

    r509cb95 ra8e8545  
    11package it.finki.tinki.model;
    22
     3import com.sun.istack.NotNull;
     4import it.finki.tinki.model.Jobs.Work;
     5import it.finki.tinki.model.Users.User;
    36import it.finki.tinki.model.enumerator.WorkType;
    47import lombok.Data;
     
    1013public class Match {
    1114
     15//    @Id
     16//    @GeneratedValue(strategy = GenerationType.AUTO)
     17//    Long id;
     18//
     19//    @NotNull
     20//    Long workId;
     21//
     22//    @NotNull
     23//    Long userId;
     24
    1225    @Id
    13     EmbeddedMatchId combinedId;
     26    EmbeddedMatchId embeddedMatchId;
    1427
    1528    float coefficient;
     
    1932    public Match(){}
    2033
     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
    2141    public Match(EmbeddedMatchId embeddedMatchId, float coefficient, WorkType type) {
    22         this.combinedId = embeddedMatchId;
     42        this.embeddedMatchId = embeddedMatchId;
    2343        this.coefficient = coefficient;
    2444        this.type = type;
Note: See TracChangeset for help on using the changeset viewer.