[ http://jira.nhibernate.org/browse/NH-574?page=all ]
Sergey Koshcheyev closed NH-574:
--------------------------------
Resolution: Fixed
> sort="natural" doen't work when namespace and assemply were set
> ---------------------------------------------------------------
>
> Key: NH-574
> URL: http://jira.nhibernate.org/browse/NH-574
> Project: NHibernate
> Type: Bug
> Components: Core
> Versions: 1.0.2
> Reporter: Kailuo Wang
> Priority: Minor
> Fix For: 1.0.3, 1.2.0.Alpha1
>
> In the mapping file, I set the sort attribute of a set as "natural", I also set the namespace and assembly property of the class as "SampleNameSpace.Impl" and "SampleAssemly".
> The NHibernate thrown an Exception saying that it cannot instantiate the IComparer SampleNameSpace.Impl.natural, SampleAssembly".
> I removed the namespace and assemply propertis from the class (manually add that namespace and assembly for every class attribute. It works.
> I think Nhibernate should recognize the natural as the sort attribute no matter the namespace and assembly attributes of the class were set or not.
> here is the sample with which I got the error.
> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" schema="dbo" >
> <class name="Campaign" table="tbl_Campaign" namespace="MindHarbor.mmpulse.Domain.Impl"
> asembly=" MindHarbor.mmpulse" >
> <id name="Id" type="Int32" column="Id">
> <generator class="identity" />
> </id>
> <set name="blasts" access="field" inverse="true" sort="natural" lazy="true">
> <key column="Campaign_Id" />
> <one-to-many class="Blast" />
> </set>
> </class>
> </hibernate-mapping>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nhibernate.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|