Muthaiah Ram
Hi there...
I am interested on knowing how you were able to go about this:
First - I don't allow any two records to be the same - when a record is created (or updated) it is checked for a match and if there is one I throw a DuplicateKeyException.
As far as i know, most versions don't have an update() method that throws a DuplicateKeyException. It's a subject that has been discussed in many threads, however, it hasn't been clear to me untill now whether update() should allow duplicates or no. It's a very critical design issue, since it will have a major impact on booking implementation. How do you deny the updating of records that happened to have a duplicate key? I don't think that throwing an exception here is appropriate, many people chose to allow duplicate when updating.
Thanx in advance
Hatim