@ElementCollection not working with Maps
Hi.
I´m trying to implement the schema evolution with hibernate (http://www.gigaspaces.com/wiki/display/SBP/SchemaEvolution).
I´m annotating the Map as follows:
@ElementCollection(fetch=FetchType.EAGER)
@CollectionTable(name = "pps.convenioparametroextra", joinColumns = @JoinColumn(name = "convenio_id"))
@MapKeyColumn(name = "nombre", length = 64, nullable = false)
@SpaceProperty
@Override
public Map<String, ExtraParameter<String>> getExtraParameters() {
return extraParameters;
}
ExtraParameter is @Embeddable.
If I use pure hibernate everything works as expected, but with GS when the parent class has more than one extra parameter, I only see one extra parameter in the space. Another interesting thing is that if I debug the openspaces classes when it reads from the hibernate session factory the extra parameters are loaded correctly. The problem occurs when GS puts the objects in the spaces.
Thanks
This thread was imported from the previous forum.
For your reference, the original is available here