Changeset a8e8545 for src/main/java/it/finki/tinki/model
- Timestamp:
- 01/08/21 00:35:56 (4 years ago)
- Branches:
- master
- Children:
- 4cec0a3
- Parents:
- 509cb95
- 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 6 6 7 7 import javax.persistence.Embeddable; 8 import javax.persistence.FetchType; 8 9 import javax.persistence.OneToOne; 9 10 import java.io.Serializable; 11 import java.util.Objects; 10 12 11 13 @Embeddable … … 25 27 this.user = user; 26 28 } 27 28 29 } -
src/main/java/it/finki/tinki/model/Jobs/Internship.java
r509cb95 ra8e8545 12 12 public class Internship extends Work { 13 13 14 @ManyToMany 14 @ManyToMany(fetch = FetchType.EAGER) 15 15 List<Skill> skillsTrained; 16 16 -
src/main/java/it/finki/tinki/model/Jobs/Job.java
r509cb95 ra8e8545 12 12 public class Job extends Work { 13 13 14 @ManyToMany 14 @ManyToMany(fetch = FetchType.EAGER) 15 15 List<Skill> skillsRequired; 16 16 -
src/main/java/it/finki/tinki/model/Jobs/Project.java
r509cb95 ra8e8545 13 13 public class Project extends Work { 14 14 15 @ManyToMany 15 @ManyToMany(fetch = FetchType.EAGER) 16 16 List<Skill> skillsRequired; 17 17 -
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.