Updating domain object via DAO
Hello forum users,
I am searching for a solution that the same domain objects (equals id) which were loaded twice or several times by the DAO will be get persistent after DAO update.
Domain object A will loaded by a DAO method maby "DomainObject getByAttribute(..)".
The same domain object B (with same id) will load by a DAO method like "List<DomainObject> getAll()".
After editing A and updating it via DAO update, B should be reloaded.
I thought for this task mabye a DomainObjectManager or something like this would be practicable which will be the source for the business logic and talk to the DAOs.
The background is two use this behaviour for binding the domain objects to gui components. Naturally the domain objects will be observable in any form.
I would not surprised if there is another more usefull solution.
Thank you for any kinds of suggestions.