I just found class
Code:
System.Collections.Specialized.BitVector32
This value class wraps an Int32 and allows to access this underlying int value - just what I need.
The only restriction is, that there is only a get-method for the underlying int value. The int value can only be set in the constructor.
That's why an value object of this type can not be mapped with NHibernate directly to the data base, because the name of the internal int variable is not known, so no strategy write access can be specified.
The other problem is, that BitVector32 has no standard contructor.
When reading and (re-)constructing an object, is there a way in NH to use a constructor with an argument (in order to set a read-only property)?