Was just browsing the NHibernate forum and read something i didn't know yet... if you have read-only data, you can declare the class as immutable:
<class name="Foo" table="foo_table" mutable="false">
from the NHibernate documentation:
Immutable classes, mutable="false", may not be updated or deleted by the application. This allows NHibernate to make some minor performance optimizations.
Even if it's only a minor optimization, it's still a nice feature ![]()