This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
NHibernate has a schema attribute on HBM XML mappings and a Schema() method on fluent configuration that allows you to specify the schema for your objects. Therefore, you should not specify your table names like “SchemaName.TableName”, because this will prevent NHibernate from properly generating the database for you, if you so wish (either through SchemaExport or the schema auto action feature). Instead, specify the schema and table names on the appropriate places.