source: src/main/java/it/finki/tinki/model/Jobs/Internship.java@ a8e8545

Last change on this file since a8e8545 was a8e8545, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago

added dummy data for user skills and fixed bugs

  • Property mode set to 100644
File size: 630 bytes
Line 
1package it.finki.tinki.model.Jobs;
2
3import it.finki.tinki.model.Skill;
4import it.finki.tinki.model.Users.Account;
5import lombok.Data;
6
7import javax.persistence.*;
8import java.util.List;
9
10@Entity
11@Data
12public class Internship extends Work {
13
14 @ManyToMany(fetch = FetchType.EAGER)
15 List<Skill> skillsTrained;
16
17 int openSpots;
18
19 public Internship(){}
20
21 public Internship(String title, String description, Account account, int salary, List<Skill> skillsTrained, int openSpots) {
22 super(title, description, account, salary);
23 this.skillsTrained = skillsTrained;
24 this.openSpots = openSpots;
25 }
26}
Note: See TracBrowser for help on using the repository browser.