How can i achieve Optimistic Concurrency?
In this mode container allows multiple transactions operate on same data at the same time. While this mode gives good performace, data integrity would be compromised. – UpdateAllFields With this option container issues an update on all fields, regardless of whether they were modified or not.Given a CMP bean with three fields: “key”, “value1” and “value2”, stored in a table called “MyTable”, the following update will be issued at the end of every transaction, regardless of whether the bean was modified or not: UPDATE MyTable SET (value1 =