Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
1.21 GA
Mapping documents:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="Dev.OM.User, Dev.OM"
table="USER">
<id name="USER_ID"
type="int">
<generator class="assigned" />
</id>
<property name="FName"
type="String"/>
<property name="LName"
type="String"/>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
Configuration cfg = new Configuration();
cfg.AddAssembly("Dev.OM");
VS is not registering my instantiation of configuration. I have included
the NHibernate.dll to the project as well as my direct statements for
NHibernate and NHibernate.cfg . Is there something simple that I am missing. I get the ever popular invalid token when i try to Add the Assembly with the Mapping file and concrete class.