Changeset bd46dbb for src/main/java/it/finki/tinki/model
- Timestamp:
- 01/08/21 23:47:41 (4 years ago)
- Branches:
- master
- Children:
- 297bd16
- Parents:
- bd38a55
- Location:
- src/main/java/it/finki/tinki/model
- Files:
-
- 9 added
- 4 deleted
- 1 edited
- 11 moved
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/model/EmbeddedMatchId.java
rbd38a55 rbd46dbb 1 1 package it.finki.tinki.model; 2 2 3 import it.finki.tinki.model. Jobs.Work;3 import it.finki.tinki.model.Work.Work; 4 4 import it.finki.tinki.model.Users.User; 5 5 import lombok.Data; -
src/main/java/it/finki/tinki/model/Work/Internship.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model. Jobs;1 package it.finki.tinki.model.Work; 2 2 3 3 import it.finki.tinki.model.Skill; -
src/main/java/it/finki/tinki/model/Work/Job.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model. Jobs;1 package it.finki.tinki.model.Work; 2 2 3 3 import it.finki.tinki.model.Skill; -
src/main/java/it/finki/tinki/model/Work/Project.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model. Jobs;1 package it.finki.tinki.model.Work; 2 2 3 3 import it.finki.tinki.model.Skill; -
src/main/java/it/finki/tinki/model/Work/Work.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model. Jobs;1 package it.finki.tinki.model.Work; 2 2 3 3 import it.finki.tinki.model.Users.Account; -
src/main/java/it/finki/tinki/model/dto/register/account/AccountRegisterDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.register.account; 2 2 3 3 import lombok.Data; 4 4 5 5 @Data 6 public class TeamRegisterDTO {6 public class AccountRegisterDTO { 7 7 String email; 8 8 String password; 9 9 String name; 10 int members;11 10 } -
src/main/java/it/finki/tinki/model/dto/register/account/UserRegisterDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.register.account; 2 2 3 3 import lombok.Data; … … 6 6 7 7 @Data 8 public class UserRegisterDTO { 9 String email; 10 String password; 11 String name; 8 public class UserRegisterDTO extends AccountRegisterDTO { 12 9 String surname; 13 10 List<Long> retainedSkills; -
src/main/java/it/finki/tinki/model/dto/response/account/CompanyResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.account; 2 2 3 3 import it.finki.tinki.model.Address; 4 import it.finki.tinki.model.dto.response.work.InternshipResponseDTO; 5 import it.finki.tinki.model.dto.response.work.JobResponseDTO; 4 6 import lombok.Data; 5 7 -
src/main/java/it/finki/tinki/model/dto/response/account/LoginResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.account; 2 2 3 3 import it.finki.tinki.model.enumerator.AccountType; -
src/main/java/it/finki/tinki/model/dto/response/account/TeamResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.account; 2 2 3 import it.finki.tinki.model.dto.response.work.JobResponseDTO; 4 import it.finki.tinki.model.dto.response.work.ProjectResponseDTO; 3 5 import lombok.Data; 4 6 … … 7 9 8 10 @Data 9 public class TeamResponseDTO extends LoginResponseDTO {11 public class TeamResponseDTO extends LoginResponseDTO { 10 12 private int members; 11 13 private List<JobResponseDTO> jobs; -
src/main/java/it/finki/tinki/model/dto/response/account/UserResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.account; 2 2 3 3 import it.finki.tinki.model.Skill; 4 import it.finki.tinki.model.dto.response.work.InternshipResponseDTO; 5 import it.finki.tinki.model.dto.response.work.JobResponseDTO; 6 import it.finki.tinki.model.dto.response.work.ProjectResponseDTO; 4 7 import lombok.Data; 5 8 … … 8 11 9 12 @Data 10 public class UserResponseDTO extends LoginResponseDTO {13 public class UserResponseDTO extends LoginResponseDTO { 11 14 private String surname; 12 15 private List<Skill> retained; -
src/main/java/it/finki/tinki/model/dto/response/work/JobResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.work; 2 2 3 3 import it.finki.tinki.model.Address; 4 import it.finki.tinki.model. Jobs.Job;4 import it.finki.tinki.model.Work.Job; 5 5 import it.finki.tinki.model.Users.Company; 6 6 import it.finki.tinki.model.Users.Team; … … 9 9 10 10 @Data 11 public class JobResponseDTO { 12 Long id; 13 String title; 14 String description; 15 int salary; 16 String accountEmail; 17 String accountName; 18 AccountType accountType; 11 public class JobResponseDTO extends WorkResponseDTO { 19 12 Address accountAddress; 20 13 int members; 21 14 22 15 public JobResponseDTO(Job job){ 23 this.id = job.getId(); 24 this.title = job.getTitle(); 25 this.description = job.getDescription(); 26 this.salary = job.getSalary(); 27 this.accountEmail = job.getAccount().getEmail(); 28 this.accountName = job.getAccount().getName(); 29 this.accountType = job.getAccount().getAccountType(); 16 super(job.getId(), job.getTitle(), job.getDescription(), job.getSalary(), job.getAccount()); 30 17 if(job.getAccount().getAccountType()==AccountType.COMPANY){ 31 18 this.accountAddress = ((Company) job.getAccount()).getAddress();
Note:
See TracChangeset
for help on using the changeset viewer.