Last change
on this file since 4a15c9c was e6ff724, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
767 bytes
|
Rev | Line | |
---|
[e6ff724] | 1 | package it.finki.tinki.model.Users;
|
---|
| 2 |
|
---|
| 3 | import it.finki.tinki.model.Skill;
|
---|
| 4 | import it.finki.tinki.model.enumerator.AccountType;
|
---|
| 5 | import lombok.Data;
|
---|
| 6 |
|
---|
| 7 | import javax.persistence.Entity;
|
---|
| 8 | import javax.persistence.ManyToMany;
|
---|
| 9 | import java.util.List;
|
---|
| 10 |
|
---|
| 11 | @Entity
|
---|
| 12 | @Data
|
---|
| 13 | public class User extends Account{
|
---|
| 14 |
|
---|
| 15 | String surname;
|
---|
| 16 |
|
---|
| 17 | @ManyToMany
|
---|
| 18 | List<Skill> retainedSkills;
|
---|
| 19 |
|
---|
| 20 | @ManyToMany
|
---|
| 21 | List<Skill> skillsToLearn;
|
---|
| 22 |
|
---|
| 23 | public User(){}
|
---|
| 24 |
|
---|
| 25 | public User(String email, String password, String name, AccountType accountType, String surname, List<Skill> retainedSkills, List<Skill> skillsToLearn) {
|
---|
| 26 | super(email, password, name, accountType);
|
---|
| 27 | this.surname = surname;
|
---|
| 28 | this.retainedSkills = retainedSkills;
|
---|
| 29 | this.skillsToLearn = skillsToLearn;
|
---|
| 30 | }
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.