You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's intended to be like that because PostgreSQL and MySQL allow you to save a single root JSON object. Mapping a list of JSON objects is not, therefore, supported.
https://vladmihalcea.com/2016/06/20/how-to-map-json-objects-using-generic-hibernate-types/
@Type(type = "json") @Column(columnDefinition = "json") private Location location;
works fine.
@Type(type = "json") @Column(columnDefinition = "json") private List<Location> locations;
will failed.( (ParameterType) parameters.get( PARAMETER_TYPE ) ).getReturnedClass()
should return ParameterizedType instead of Class.Maybe AttributeConverter is a better solution.
The text was updated successfully, but these errors were encountered: