Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registered hibernateModule lead to 'NON_EMPTY' failure #65

Closed
lcyan opened this issue Feb 5, 2015 · 1 comment
Closed

Registered hibernateModule lead to 'NON_EMPTY' failure #65

lcyan opened this issue Feb 5, 2015 · 1 comment
Milestone

Comments

@lcyan
Copy link

lcyan commented Feb 5, 2015

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":[]}

@cowtowncoder
Copy link
Member

Yes, I am able to reproduce this.

@cowtowncoder cowtowncoder added this to the 2.5.1 milestone Feb 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants