O
Oliver Hirschi
Hi,
I have a Java-Client-Application which connetct to a databes, to manage
production-jobs. A job is opened, edited and then closed. Now, I will
implement a check, if a job is really changed, so I will bring up a
warning, if the job is closed whitout saving.
I see two appendages for this:
- I implement on each object, which can be edited the equals(...)-Method
and by closing I check each objet with equals(...).
- I implement several listeners (for each edit-action) to obtain the
changing and if something has changed, a flag is set.
How is this problem solved in practice, i.e. how did you solve this
problem?
Is there something like a framework for this.
Thanks & Kind regards
I have a Java-Client-Application which connetct to a databes, to manage
production-jobs. A job is opened, edited and then closed. Now, I will
implement a check, if a job is really changed, so I will bring up a
warning, if the job is closed whitout saving.
I see two appendages for this:
- I implement on each object, which can be edited the equals(...)-Method
and by closing I check each objet with equals(...).
- I implement several listeners (for each edit-action) to obtain the
changing and if something has changed, a flag is set.
How is this problem solved in practice, i.e. how did you solve this
problem?
Is there something like a framework for this.
Thanks & Kind regards