KeyManyToOneMapping Lazy() has no valid translate xml value

ari.yair's Avatar

ari.yair

31 Oct, 2010 09:46 AM via web

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?

  1. Support Staff 2 Posted by James Gregory on 05 Nov, 2010 01:39 PM

    James Gregory's Avatar

    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.

  2. James Gregory closed this discussion on 05 Nov, 2010 01:39 PM.

Comments are currently closed for this discussion. You can start a new one.