package com.example.cosmos_serversb.entities; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; public class Token { public String token; @JsonIgnore private String uId; public Token(){ } public Token(String token,String uId){ setToken(token); setuId(uId); } public void setToken(String token) { this.token = token; } public String getToken() { return token; } public void setuId(String uId) { this.uId = uId; } public String getuId() { return uId; } }