In hibernate4,Annotation @MapKey's targetElement property was replace by what?
@ElementCollection
@MapKey(targetElement = ProductAttribute.class)
@LazyCollection(LazyCollectionOption.TRUE)
@Cascade(value = { CascadeType.DELETE })
public Map<ProductAttribute, String> getProductAttributeMapStore() {
return productAttributeMapStore;
}
Now,I upgrade my project's hibernate.jar from hibernate3 to hibernate4.1, intellJ alert targetElement can found.