Hello,
is it possible to map such kind of collections:
Code:
public class SomeEntity {
.....
private Map<String, List<String>> dimensionGroups;
....
}
using annotations without introducing additional entities?
For Map<String, String> I use the following mapping:
Code:
@CollectionOfElements
@JoinTable(name = "ds_params", joinColumns = @JoinColumn(name ="ds_id", nullable=false))
@org.hibernate.annotations.MapKey(columns=@Column(name="param_name",nullable=false))
@Column(name = "param_value", nullable = false)
public Map<String, String> getParameters() {
return parameters;
}
but I have no idea how to do it for Map<String, List<String>>.
Regards,
Philip