Skip to content

Registered hibernateModule lead to 'NON_EMPTY' failure #65

@lcyan

Description

@lcyan
public class Mock
{
    private Long id;
    private String name;
    private Set<String> mocks = Sets.newHashSet();
}

new ObjectMapper().registerModule(new Hibernate3Module()).setSerializationInclusion(Include.NON_EMPTY).writeValueAsString(mock)

output

{"mocks":[]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions