Moving right along now, sorry for all the posts...I figured my last problem was that the role needed to have a fully qualified domain name.
So now when we run I am getting a NullReferenceException from
Quote:
NHibernate.Loader.Custom.Sql.SQLQueryReturnProcessor.ProcessJoinReturn(NativeSQLQueryJoinReturn fetchReturn) in D:\NHibernate\src\src\NHibernate\Loader\Custom\Sql\SQLQueryReturnProcessor.cs: line 271
NHibernate.Loader.Custom.Sql.SQLQueryReturnProcessor.ProcessReturn(INativeSQLQueryReturn rtn) in D:\NHibernate\src\src\NHibernate\Loader\Custom\Sql\SQLQueryReturnProcessor.cs: line 169
NHibernate.Loader.Custom.Sql.SQLQueryReturnProcessor.Process() in D:\NHibernate\src\src\NHibernate\Loader\Custom\Sql\SQLQueryReturnProcessor.cs: line 127
NHibernate.Loader.Custom.Sql.SQLCustomQuery..ctor(INativeSQLQueryReturn[] queryReturns, String sqlQuery, ICollection`1 additionalQuerySpaces, ISessionFactoryImplementor factory) in D:\NHibernate\src\src\NHibernate\Loader\Custom\Sql\SQLCustomQuery.cs: line 52
NHibernate.Engine.Query.NativeSQLQueryPlan..ctor(NativeSQLQuerySpecification specification, ISessionFactoryImplementor factory) in D:\NHibernate\src\src\NHibernate\Engine\Query\NativeSQLQueryPlan.cs: line 29
NHibernate.Engine.Query.QueryPlanCache.GetNativeSQLQueryPlan(NativeSQLQuerySpecification spec) in D:\NHibernate\src\src\NHibernate\Engine\Query\QueryPlanCache.cs: line 112
NHibernate.Impl.SessionFactoryImpl.CheckNamedQueries() in D:\NHibernate\src\src\NHibernate\Impl\SessionFactoryImpl.cs: line 441
NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) in D:\NHibernate\src\src\NHibernate\Impl\SessionFactoryImpl.cs: line 365
NHibernate.Cfg.Configuration.BuildSessionFactory() in D:\NHibernate\src\src\NHibernate\Cfg\Configuration.cs: line 988
Looks like the following two lines of code are the culprits:
Code:
ISqlLoadable ownerPersister = (ISqlLoadable) alias2Persister[ownerAlias];
IType returnType = ownerPersister.GetPropertyType(fetchReturn.OwnerProperty);
I'm guessing that ownerPersister is null since if fetReturn was null we'd have an exception alot earlier. The log file snippet that I think is relevant is:
Quote:
2008-09-09 13:30:36,758 [Agent: adapter run thread for test 'TestUserPersistanceBackingStore' with id 'ef67e09a-5c80-47dd-9f7d-f8b74ea34e45'] DEBUG NHibernate.Impl.SessionFactoryImpl - Checking named SQL query: Organization_GetSettings
2008-09-09 13:30:36,758 [Agent: adapter run thread for test 'TestUserPersistanceBackingStore' with id 'ef67e09a-5c80-47dd-9f7d-f8b74ea34e45'] DEBUG NHibernate.Engine.Query.QueryPlanCache - unable to locate native-sql query plan in cache; generating (SELECT {s.*},{sd.*}
FROM Setting {sd}
LEFT JOIN OrganizationSetting {s}
ON {sd}.SettingId={s}.SettingId
WHERE ISNULL(OrganizationId,:OrganizationId)=:OrganizationId)
2008-09-09 13:30:36,774 [Agent: adapter run thread for test 'TestUserPersistanceBackingStore' with id 'ef67e09a-5c80-47dd-9f7d-f8b74ea34e45'] DEBUG NHibernate.Loader.Custom.Sql.SQLCustomQuery - starting processing of sql query [SELECT {s.*},{sd.*}
FROM Setting {sd}
LEFT JOIN OrganizationSetting {s}
ON {sd}.SettingId={s}.SettingId
WHERE ISNULL(OrganizationId,:OrganizationId)=:OrganizationId]
2008-09-09 13:30:36,774 [Agent: adapter run thread for test 'TestUserPersistanceBackingStore' with id 'ef67e09a-5c80-47dd-9f7d-f8b74ea34e45'] DEBUG NHibernate.Loader.Custom.Sql.SQLQueryReturnProcessor - mapping alias [s] to collection-suffix [0__]
2008-09-09 13:30:36,774 [Agent: adapter run thread for test 'TestUserPersistanceBackingStore' with id 'ef67e09a-5c80-47dd-9f7d-f8b74ea34e45'] DEBUG NHibernate.Loader.Custom.Sql.SQLQueryReturnProcessor - mapping alias [s] to collection-suffix [1__]
Back to trying to understand nHibernate, again any help or guidance would be greatly appreciated.