NHibernate.MappingException

Description

The following code generates an error:

Dim config As New NHibernate.Cfg.Configuration

config.AddClass(GetType(NHExample1.Department))
config.AddClass(GetType(NHExample1.IPerson))
config.AddClass(GetType(NHExample1.UniversityClass))

An unhandled exception of type 'NHibernate.MappingException' occurred in nhibernate.dll

Additional information: The element 'urn:nhibernate-mapping-2.0:id' has incomplete content. Expected 'urn:nhibernate-mapping-2.0:meta urn:nhibernate-mapping-2.0:column urn:nhibernate-mapping-2.0:generator'. An error occurred at , (4, 4).

Environment

XP SP2

Activity

Show:

MikeM 
April 2, 2005 at 8:05 AM

Try the user forum for help with figuring out the mapping problem.

MikeM 
April 2, 2005 at 8:04 AM

This is not an issue with the nhibernate code base. There is a problem with your mapping file per the error message.

Not an Issue

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created April 1, 2005 at 1:34 PM
Updated April 2, 2005 at 8:05 AM
Resolved April 2, 2005 at 8:04 AM
Who's Looking?