source: src/main/java/it/finki/tinki/model/Work/Internship.java@ f067338

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

refactoring and response dto

  • Property mode set to 100644
File size: 630 bytes
Line 
1package it.finki.tinki.model.Work;
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.