Re: Use of hashcode as ETag in Rest plugin.

2009-11-26 Thread Don Brown
The default etag value of the object's hashcode is really only meant as a helpful default to get you going. I'd highly recommend setting your own etag value with something like the underlying db row's timestamp or whatever. Don On Fri, Nov 27, 2009 at 2:44 AM, Unmesh joshi wrote: > > Hi, > Rest

Use of hashcode as ETag in Rest plugin.

2009-11-26 Thread Unmesh joshi
Hi, Rest plugin's DefaultHttpHeaders class uses hashCode of the model object (if the action is model driven) or hascode of the action object.I guess its a wrong assumption to make that two different objects will have different hashcodes. So we can have same hashcode even if model objects are no