StudentLoanManagement
UserDTO.java
Go to the documentation of this file.
1package com.student_loan.dtos;
2
3// This DTO is to not expose all the information of the users when doing some API calls
4
5public class UserDTO {
6 private Long id;
7 private String username;
8 private String email;
9
10 // constructor
11 public UserDTO(Long id, String username, String email) {
12 this.id = id;
13 this.username = username;
14 this.email = email;
15 }
16
17 public Long getId() { return id; }
18
19 public String getUsername() { return username; }
20
21 public String getEmail() { return email; }
22}
UserDTO(Long id, String username, String email)
Definition UserDTO.java:11