Last change
on this file since b24fe9b 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:
654 bytes
|
Rev | Line | |
---|
[e6ff724] | 1 | package it.finki.tinki.model.Jobs;
|
---|
| 2 |
|
---|
| 3 | import it.finki.tinki.model.Skill;
|
---|
| 4 | import it.finki.tinki.model.Users.Account;
|
---|
| 5 | import lombok.Data;
|
---|
| 6 |
|
---|
| 7 | import javax.persistence.*;
|
---|
| 8 | import java.util.Date;
|
---|
| 9 | import java.util.List;
|
---|
| 10 |
|
---|
| 11 | @Entity
|
---|
| 12 | @Data
|
---|
| 13 | public class Project extends Work {
|
---|
| 14 |
|
---|
[a8e8545] | 15 | @ManyToMany(fetch = FetchType.EAGER)
|
---|
[e6ff724] | 16 | List<Skill> skillsRequired;
|
---|
| 17 |
|
---|
| 18 | Date validUntil;
|
---|
| 19 |
|
---|
| 20 | public Project(){}
|
---|
| 21 |
|
---|
| 22 | public Project(String title, String description, Account account, int salary, List<Skill> skillsRequired, Date validUntil) {
|
---|
| 23 | super(title, description, account, salary);
|
---|
| 24 | this.skillsRequired = skillsRequired;
|
---|
| 25 | this.validUntil = validUntil;
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.