Open
Description
Hello,
It isn't a bug, bug nasty behavior.
I configure my MappingJackson2HttpMessageConverter for using ObjectMapper and Hibernate4Module with SessionFactory
Spring along @JsonView-aware Controller has been used
see for more info: "Jackson’s @JsonView is supported directly on @ResponseBody"
I supposed that all Lazy fields will be initiated and serialized, but got "could not initialize proxy - no Session" on
@ManyToOne(fetch = FetchType.LAZY, optional = false)
private Test test;
exception goes from
com.fasterxml.jackson.datatype.hibernate4.HibernateProxySerializer#findProxied
return init.getImplementation();
Is it expected?
Metadata
Metadata
Assignees
Labels
No labels