Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] What is the correct way to remove master-detail relation

Hello

I have the follwing Objects:

Product {
List<Characteristic> characteristics;
List<ImageInfo>imageInfos
}

Characteristic{
Product product;
}
ImageInfo{
Product product.
}

But what is the best way to remove a Characteristic object?

I prefer doing: entityManager.remove(characteristic);
But then the characteristic is still in the List in the Product. Why isn't the entity cache automatically updated?
How can I clear the cache manually?

Leon




Back to the top