Hi all I have JTable whose model holding Detached Hibernate entities. I read the entire DB table to the JTable model (approx 20 rows) My user is working offline; remove rows, changes rows, etc, How do I synchronize the detached objects to the db after my user commits his changes? Do I have to implement the CRUD logic and dirty checking? Thank you Sharon
My user is working offline; remove rows, changes rows, etc,
Implement dirty checking incase, 1. There are two or more users changing the "same" set of data offline. && 2. You need to inform the user that the data you are trying to change is not in the same state as it was when you read it. You might want to see the change which happened after you have read the data.
Use Update logic to update the changed set of data.
If you are not laughing at yourself, then you just didn't get the joke.
I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar:
Gift giving made easy with the permaculture playing cards