I've really been thinking about this concurrency issue within Strataframe and wonder if an option could be created to allow the where clause during the update to be dynamically assigned.
Something like:
Where Clause = Primary Key - This allows the update no matter what
Where Clause = Modified Columns - This allows the update to only focus on columns that have the concurrency collision
*** SLICK FEATURE *** Where Clause= Key and Updateable Columns where we can define an array of columns( or better yet have Strataframe Business Object Mapper allow us to define this !!!!! ) that are updateable to the Database.
I personally do not like using Stored Procedures for updates because to enable Option # 2 you have to pass the Original Value and the Updated Value. This kills option 1 where I would like to update the record no matter what or I have two update procedures which is just as annoying to maintain.
The sample previously of updating the Database Balance Column is what triggered my thinking because in my system the Balance is a summary column of detail records updated by triggers and I want the Business Object to display but never modify.
I think that this would be fairly easy to implement, what do you guys think?
Richard