Category: Open Source

Nhibernate GenericADOException could not execute query

NHibernate Benjamin Perkins

During the mapping process or after a data model change you may receive this error. The error message being: {“could not execute query\r\n[ select from TABLE ]”} with an inner exception of {“Ungültiger Spaltenname ‘SPALTEN NAME’.”} {“Invalid column name ‘COLUMN NAME’.”} I received this error when I was creating a many-to-one relationship between 2 classes, […]

Read More →

NHibernate MappingException could not compile mapping document

NHibernate Benjamin Perkins

This is a fairly common error message which a programmer will receive during the NHibernate mapping process. The inner exception was: {“persistent class NAMESPACE.CLASSNAME, NAMESPACE not found”} {“Could not compile the mapping document: NAMESPACE.CLASSNAME.hbm.xml”} The root cause of this error was that the class (class.cs) existed in the NAMESPACE.Common namespace and in my mapping file […]

Read More →

NHibernate could not execute query, ORA-00904 invalid identifier

NHibernate Benjamin Perkins

This is a pretty easy one to solve. This happens because the column attribute in the mapping file does not exist on the database being accessed. <property  name=”SpelledWrong”               column=”SPELLDWRONG”               type=”string” />     More than likely there is a spelling mistake or the column doesn’t exist on the table being mapped.

Read More →