Simply removing an entity from a collection of related entities, will not delete the database record, right?
for example:
currentUser.getBooks().remove(thisBook);
userDAO.update(currentUser);
won't delete the record from the DB
Do I have to always explicitly go to the bookDAO and say session.delete(thisBook)
every time? I though that Hibernate is much smarter than that and does cascading checks when a parent entity is saved or updated.
How do I resolve this?