micromax / activejdbc

Automatically exported from code.google.com/p/activejdbc
0 stars 0 forks source link

Refresh unmodified fields #173

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We need the ability to better handle the StaleModelException.

the Refresh method overwrites any changes, we would like a RefreshUnmodified 
(suggestion) method which would update unmodified fields with values from the 
database leaving modified attributes unchanged.  You have this information 
tracked already in your attributes HashMap.

We've been able to create this functionality by overriding the Save and Set 
methods, would just be cleaner to not have to track something that you already 
accounted for.

Original issue reported on code.google.com by davidmil...@realnetworks.com on 22 Aug 2012 at 6:03

GoogleCodeExporter commented 8 years ago
if you have some code, please submit a patch for review

Original comment by ipolevoy@gmail.com on 22 Aug 2012 at 6:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
We've implmented outside the model, I'll code and submit a patch of the 
suggested enhancement.

Original comment by davidmil...@realnetworks.com on 22 Aug 2012 at 11:12