KeyManyToOneMapping Lazy() has no valid translate xml value
Hi,
The element, key-many-to-one, has "lazy" attribute with the following restriction:
<xs:simpleType name="restrictedLaziness">
<xs:restriction base="xs:string">
<xs:enumeration value="false" />
<xs:enumeration value="proxy" />
</xs:restriction>
</xs:simpleType>
but FH try to set it with "true" value.
----> FluentNHibernate.Cfg.FluentConfigurationException : An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
----> NHibernate.MappingException : (XmlDocument)(7,146): XML validation error: The 'lazy' attribute is invalid - The value 'true' is invalid according to its datatype 'urn:nhibernate-mapping-2.2:restrictedLaziness' - The Enumeration constraint failed. ----> System.Xml.Schema.XmlSchemaValidationException : The 'lazy' attribute is invalid - The value 'true' is invalid according to its datatype 'urn:nhibernate-mapping-2.2:restrictedLaziness' - The Enumeration constraint failed. ----> System.Xml.Schema.XmlSchemaException : The Enumeration constraint failed.
How can i solved the problem?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by James Gregory on 05 Nov, 2010 01:39 PM
It's a bug, I've opened a ticket for it. Take a look at the contributing guide, otherwise it'll get fixed for the next release.
James Gregory closed this discussion on 05 Nov, 2010 01:39 PM.