concept optimistic locking in category .net

This is an excerpt from Manning's book NHibernate in Action.
Note that we refer to caching and optimistic locking (using versioning) in the following explanation, two concepts explained later in this chapter. You may want to skip this section and come back when it’s time to make the decision about an isolation level in your application. Picking the right isolation level is, after all, highly dependent on your particular scenario. The following discussion contains recommendations; nothing is carved in stone.
NHibernate tries hard to be as transparent as possible regarding the transactional semantics of the database. Nevertheless, caching and optimistic locking affect these semantics. What is a sensible database-isolation level to choose in an NHibernate application?
If you don’t have version or timestamp columns, NHibernate can still perform optimistic locking, but only for objects that are retrieved and modified in the same ISession. If you need optimistic locking for detached objects, you must use a version number or timestamp.