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].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.