It is complaining about a mismatch in the Id type for CiD where CiD in the
object appears to be a GUID and the type on the database column
AC5_COCKPIT.C_ID is a string.

Is this how they are defined in the object and in the database? What rdbms
are you using?

Also would it not be possible to move to NHibernate 1.2 at least?

John Davidson

On Fri, Jun 25, 2010 at 8:01 AM, [email protected] <
[email protected]> wrote:

> Hello,
> thats a realy complex application with more than 100 mapped objects. I
> will do my best:
>
>
> Mapping of a class where Refresh Failes:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" default-
> cascade="none"  default-access="field.pascalcase-m-underscore">
>        <class name="Iqs.CAQ.Core.AC.Ac5Cockpit,Iqs.CAQ.Core"
> table="AC5_COCKPIT" lazy="false">
>
>                <id name="CId" column="C_ID" type="String">
>                        <generator class="assigned"/>
>                </id>
>                <many-to-one name="AfId" column="AF_ID"
> class="Iqs.CAQ.Core.AC.Ac5AnalyseFolder,Iqs.CAQ.Core" />
>
>                <property column="THUMBNAIL" type="BinaryBlob"
> name="Thumbnail" />
>    <property column="LAYOUT" type="BinaryBlob" name="Layout" />
>
>        </class>
> </hibernate-mapping>
>
> Exception is: {"could not load:
> [Iqs.CAQ.Core.AC.Ac5Cockpit#9f73fd52-2239-430b-9faf-f5a5b7fad23b]"}
>
> Inner Exception is: "identifier type mismatch\r\nParametername: id"
> Parameter is: id
>
>
> Stack-Trace:
> bei NHibernate.Engine.Key..ctor(Object id, IType identifierType,
> Object identifierSpace, Type clazz, Boolean isBatchLoadable)\r\n
> bei NHibernate.Engine.Key..ctor(Object id, IClassPersister p)\r\n
> bei NHibernate.Loader.Loader.RegisterNonExists(Key[] keys, Int32[]
> owners, ILoadable[] persisters, ISessionImplementor session)\r\n
> bei NHibernate.Loader.Loader.GetRowFromResultSet(IDataReader
> resultSet, ISessionImplementor session, QueryParameters
> queryParameters, IList hydratedObjects, Object optionalObject, Object
> optionalId, Key[] keys, Boolean returnProxies)\r\n
> bei NHibernate.Loader.Loader.DoQuery(ISessionImplementor session,
> QueryParameters queryParameters, Object optionalObject, Object
> optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)\r
> \n
> bei
>
> NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor
> session, QueryParameters queryParameters, Object optionalObject,
> Object optionalId, Object[] optionalCollectionKeys, Boolean
> returnProxies)\r\n
> bei NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session,
> Object[] values, IType[] types, Object optionalObject, Object
> optionalID)\r\n
> bei NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session,
> Object id, IType identifierType, Object optionalObject, Object
> optionalIdentifier)\r\n
> bei NHibernate.Loader.EntityLoader.Load(ISessionImplementor session,
> Object id, Object optionalObject, Object optionalId)\r\n
> bei NHibernate.Loader.EntityLoader.Load(ISessionImplementor session,
> Object id, Object optionalObject)\r\n
> bei NHibernate.Persister.EntityPersister.Load(Object id, Object
> optionalObject, LockMode lockMode, ISessionImplementor session)"
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to