Hello,
I need help with correct annotation for such construct:
Code:
private Map<HashFunctionName, String> hashvalues;
I founded similar code here
https://forum.hibernate.org/viewtopic.php?f=1&t=999270&start=0Code:
@Entity
public class QualityIndicator implements Serializable {
...
@CollectionOfElements
@JoinTable(name = "qproperty_weighting")
@Enumerated(value = EnumType.STRING)
@MapKey(columns = @Column(name = "qproperty"),
type = @Type(
type="org.hibernate.type.EnumType",
parameters = {@Parameter(name = "enumClass", value="ooo.xxx.yyy.domain.QualityProperty"), @Parameter(name="type", value="12")}
)
)
@Column(name = "relevance")
private Map<QualityProperty, Weighting> relevance = new HashMap<QualityProperty, Weighting>();
...
}
But such MapKey syntax is not applicable now. MapKey has now on other syntax
Code:
@MapKey(columns = @Column(name = "some_name"), targetElement = SomeClass.class)
How can I adjust this annotation for the new syntax?
Thanks in Advance.