optimistic-lock = "dirty" does not support detached objects

Description

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.

Environment

Hibernate 3.2.2, Oracle 10g

Status

Assignee

Vlad Mihalcea

Reporter

Alex McCarrier

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Minor