Please update documentation to provide clearer description of how to use optimistic-lock="dirty" and how it works. Docs indicate that optimistic-lock="all" does not support detached objects, but is vague on whether this is the case for optimistic-lock="dirty" since it is in a different paragraph.
This is in section 11.3.4. It would be good if this section could be beefed up in general, we've had to learn a lot about how optimistic-lock="dirty", dynamic-update, and select-before-update work by trial and error, and stepping through hibernate source.
Hibernate 3.2.2, Oracle 10g