Merge pull request 'scurity-roles' (#13) from scurity-roles into master

Reviewed-on: http://git.plannaplan.pl/filipizydorczyk/backend/pulls/13
LGMT
This commit is contained in:
2020-10-24 18:01:29 +02:00
18 changed files with 317 additions and 26 deletions

View File

@ -0,0 +1,35 @@
package com.plannaplan.responses.models;
import com.plannaplan.entities.User;
public class SearchForStudentsResponse {
private Long id;
private String name;
private String surname;
private String email;
public SearchForStudentsResponse(User user) {
this.id = user.getId();
this.name = user.getName();
this.surname = user.getSurname();
this.email = user.getEmail();
}
public String getEmail() {
return email;
}
public String getSurname() {
return surname;
}
public String getName() {
return name;
}
public Long getId() {
return id;
}
}