PersistenceSpecification wrong order for CheckComponentMap (MySQL, MsSQL)

namX's Avatar

namX

26 Jan, 2011 11:26 AM via web

Hi everybody,

I'm currently testing my model with some PersistenceSpecification's and try to a save an object with 3 references to other objects in an IList.
The problem I currently have is that the specification correctly uses the Equals method to compare the 3 objects through CheckComponentList and this part failes because I get the 3 objects from the database in the wrong order.

This problem occurs not with SQLite, but when using MySql and Microsoft SQL Server. It also seems to have to do with the Identifier, which is a Guid. When I use int instead everything is OK.

Is this error something that goes directly into NHibernate or is there something wrong in the fluent mapping?

namX

    Reply to this discussion

    Preview Comments are parsed with Markdown. Help with syntax

    Attached Files

      You can attach files up to 10MB

      What is five times five?