return Response.ok.entity(user).build(); miss some field?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

return Response.ok.entity(user).build(); miss some field?

Whoami .
For ex:

Class User{
 String id:
 String un;
 String pwd;
 String roleAs;
 {get set}

public class CustomObjectMapperProvider implements ContextResolver<ObjectMapper> {

private final ObjectMapper mapper;

public CustomObjectMapperProvider() {
mapper = new ObjectMapper();
mapper.registerModule(new JodaModule());

public ObjectMapper getContext(Class<?> type) {
return null;

but When I use postMan request this interface, sometimes(very little times) it return just {id,un}, the others is missing. 

What should I do about this?


Have a nice day!