NHibernate 1.2.0 Beta 2 has been released! Huge changes have occurred since NHibernate 1.0, not the least being that it now supports many features of .NET 2.0 (e.g. Generics, woohoo!).
Being a keen early adopter, I have actually been playing with Beta 1 for a few weeks. I was expecting a fairly seemless upgrade to the new beta, however was a little stumped when I got this error:
<session-factory> element was not found in the configuration file.
“Bless their souls”, I thought, “what on earth is going on?!”. After a quick troll through the source code though, I found out that they’ve updated their configuration schema to version 2.2. So to fix the problem, all I had to do was:
- Change the configuration entry in my Web.config file from version 2.0 to 2.2:
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
- Change all of my mapping files in the same manor:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Blah" assembly="Blah">
Don’t forget to Rebuild (not Build!) after that last step too, kids!
