Hello
I Have a Object with a List, the mapping:
Code:
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "XXX")
@IndexColumn(name = "ORDERNUMBER", base = 0)
public List<Element> getElement() {
e.g.: now, I have 2 Elements in the list and in the table of my DB,
if I remove one Element from my list, then the record keep in my table.
the linking from my record to the mother object is indeed on null
in this case the JoinColumn XXX change from oid to null, but the record
keep still in DB.
What I have to do, that the record removes from my DB, when I remove it from the list?
Can anybody help me?