Hi,
I have two entities: Province and City. City has a Province many-to-one field and Province has a one-to-many set of Cities. When I create a new City, and associate it with a Province, the set of cities in the associated Province instance does not get updated within the current session. It doesn't bother me much in a web app, because I open a new session for each request, but in case of a long running desktop app it's a bit inconvenient.
Is there a property that I set to make hibernate update the cache on each update, or is it he cascade property?
Thanks,
Pavel
|