If you rename classes that you're passing through NHibernate, keep in mind that you've got several places you need to do that rename at:
- The business class itself, i.e. Schema -> Schematic.
- Inside the Hibernate.cfg.xml file, where you'll have a mapping resource element pointing to the class and its assembly.
- Rename the mapping file, i.e. Schema.hbm.xml -> Schematic.hbm.xml
- Change the name of the class within the mapping file's class tag.
That last one's bitten me a couple times and I always lose more time than I should over it.
Forget any one of these and you'll run up against the infamous "Could Not Compile Mapping Document" error.