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

added dummy data for user skills and fixed bugs

Location:
src/main/java/it/finki/tinki/model
Files:
5 edited

Legend:

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

    r509cb95 ra8e8545  
    66
    77import javax.persistence.Embeddable;
     8import javax.persistence.FetchType;
    89import javax.persistence.OneToOne;
    910import java.io.Serializable;
     11import java.util.Objects;
    1012
    1113@Embeddable
     
    2527        this.user = user;
    2628    }
    27 
    2829}
  • src/main/java/it/finki/tinki/model/Jobs/Internship.java

    r509cb95 ra8e8545  
    1212public class Internship extends Work {
    1313
    14     @ManyToMany
     14    @ManyToMany(fetch = FetchType.EAGER)
    1515    List<Skill> skillsTrained;
    1616
  • src/main/java/it/finki/tinki/model/Jobs/Job.java

    r509cb95 ra8e8545  
    1212public class Job extends Work {
    1313
    14     @ManyToMany
     14    @ManyToMany(fetch = FetchType.EAGER)
    1515    List<Skill> skillsRequired;
    1616
  • src/main/java/it/finki/tinki/model/Jobs/Project.java

    r509cb95 ra8e8545  
    1313public class Project extends Work {
    1414
    15     @ManyToMany
     15    @ManyToMany(fetch = FetchType.EAGER)
    1616    List<Skill> skillsRequired;
    1717
  • 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.