Hi antoschka,
If it's an online lock you're after (i.e., lock an object for the duration of a transaction) then you can upgrade the lock when loading an object:
Code:
MyObject myObject = session.Get<MyObject>(11, LockMode.Upgrade);
http://forum.hibernate.org/viewtopic.php?t=985090
http://www.hibernate.org/hib_docs/nhibernate/html_single/#transactions-locking
If it's an offline lock you're after you could look at versioning:
http://www.hibernate.org/hib_docs/nhibernate/html_single/#transactions-optimistic-manual
Regards,
Richard