If I use session.refresh(obj) to re-load an obj that has a one-to-many
relational property, the objects in the list are *replaced* instead of
*refreshed* if they already exist.
Suppose department has a list of employees:
suppose dept.employees = [ emp1, emp2 ]
session.refresh(dept)
the
Kent wrote:
If I use session.refresh(obj) to re-load an obj that has a one-to-many
relational property, the objects in the list are *replaced* instead of
*refreshed* if they already exist.
Suppose department has a list of employees:
suppose dept.employees = [ emp1, emp2 ]