Hi,
i have the following mapping:
Code:
@OneToMany(cascade={CascadeType.ALL}, fetch = FetchType.LAZY)
@MapKey(name="mapKey")
private Map<String, NonFunctionalProperty> nonFunctionalProperties = new HashMap<String, NonFunctionalProperty>();
[list=]when i persist my class- the map is persistet well :)
[list=]when i delete my class- the map is deleted well :)
BUT when i remove an element of the map - the element is mot deleted - what will rais at a later point in my code an constrained violation :(
[/list]
Ok - is there an option to CASCADE the remove-Operation of an item of the map ?
When not - is the only way to solve my problem to delete the item myself with a dao ?
Regards, Tobias