Hi,
NHibernate version: 1.2
My current project is based on NHibernate 1.0.2. I tried to port it to NHibernate 1.2 but an error occurs when generating mapping files.
The following code segment I have:
Code:
[Id(0, Access = "nosetter.camelcase-underscore", Name = "Id", Column = "Id", TypeType = typeof(Guid), UnsavedValue = "{00000000-0000-000-0000-000000000000}")]
[Generator(1, Class = "guid.comb")]
public Guid Id
{
get { return _id; }
private set { _id = value; }
}
This works fine in 1.0.2. In NHibernate 1.2 I get the following error when generating the mapping files:
Can not find a AttributeIdentifierAttribute with the name '00000000-0000-0000-0000-000000000000' in the class Country (and its base classes)
What is wrong with my code, or is something wrong in the mapping generation tool?
Marc