Could not extract ParameterizedType representation of AttributeConverter definition

bug : 

https://hibernate.atlassian.net/browse/HHH-8854

解决办法:

升级hibernate - >

4.3.11.Final

 

调用形式:

You are right, unfortunately, AttributeConverter doesn't work with parametric types(generics) so the easiest way is to use:

@Converter(autoApply=true)
public class JsonKeyValueConverter implements 
           AttributeConverter {

it allows you to use HashMap directly inside your overridden methods.

你可能感兴趣的:(hibernate)