source: src/main/java/it/finki/tinki/model/Users/User.java@ e6ff724

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

initial commit

  • Property mode set to 100644
File size: 767 bytes
Line 
1package it.finki.tinki.model.Users;
2
3import it.finki.tinki.model.Skill;
4import it.finki.tinki.model.enumerator.AccountType;
5import lombok.Data;
6
7import javax.persistence.Entity;
8import javax.persistence.ManyToMany;
9import java.util.List;
10
11@Entity
12@Data
13public 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.