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

unit tests for #70 #80

Merged
merged 1 commit into from
Dec 28, 2015
Merged

unit tests for #70 #80

merged 1 commit into from
Dec 28, 2015

Conversation

peruzzo
Copy link
Contributor

@peruzzo peruzzo commented Dec 27, 2015

No description provided.

@cowtowncoder
Copy link
Member

Thanks!

cowtowncoder added a commit that referenced this pull request Dec 28, 2015
@cowtowncoder cowtowncoder merged commit 9bb7ea0 into FasterXML:master Dec 28, 2015
@cowtowncoder
Copy link
Member

Ah, interesting. The problem here is, I think, that @JsonIgnoreProperties can not be used for value types of Collections or Maps, but only as direct POJO dependency.

Whether handling could be improved I don't know -- there are technical challenges because of the way delegation occurs. But I will file an issue against jackson-databind at least.

For this particular issue, it is probably necessary to consider use of Object Id handling, with @JsonIdentityInfo (or possibly managed references, via @JsonManagedReference, if it's strict parent/child hierarchy always).

@peruzzo
Copy link
Contributor Author

peruzzo commented Dec 29, 2015

@cowtowncoder I created a pull-request a correction suggestion, I believe the problem is in the HibernateProxySerializer class does not implement the ContextualSerializer interface.

If you find valid, please give a revised createContextual the method because I always create a new instance of HibernateProxySerializer!

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants