-
Notifications
You must be signed in to change notification settings - Fork 106
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
not work with hibernate 5.2.11 #113
Comments
Same here as well as #106 does. I'm using 5.2.12.Final. |
FYI, I am using hibernate 5.2.12.Final with Jackson 2.9.3. I think you should be a little more specific if you want help. |
Here's stack trace:
Here's maven denpendency tree:
Here's how I config converter in Spring configuration class: @Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
converters.add(jacksonMessageConverter());
}
public MappingJackson2HttpMessageConverter jacksonMessageConverter(){
Hibernate5Module module = new Hibernate5Module(sessionFactory);
module.disable(Hibernate5Module.Feature.USE_TRANSIENT_ANNOTATION);
module.enable(Hibernate5Module.Feature.FORCE_LAZY_LOADING);
Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder();
builder.modulesToInstall(module);
MappingJackson2HttpMessageConverter messageConverter = new MappingJackson2HttpMessageConverter(builder.build());
return messageConverter;
} Note that this get occurred when trying reading collections. |
Also, I built an artifact with solution in #104. It seems works for this
EDIT: Seems it's my problem, pls ignore. |
com.fasterxml.jackson.datatype.hibernate5.PersistentCollectionSerializer#initializeCollection 's
PersistentCollection not compatibility
The text was updated successfully, but these errors were encountered: