Example #1
0
        /// <summary>
        /// Is this an association that we cannot possibly load by outer
        /// join, no matter what the mapping or subclass specifies?
        /// </summary>
        /// <param name="persister"></param>
        /// <param name="type"></param>
        /// <param name="propertyNumber"></param>
        /// <returns></returns>
        private bool IsJoinedFetchAlwaysDisabled(IOuterJoinLoadable persister, IAssociationType type, int propertyNumber)
        {
            //NOTE: workaround for problem with 1-to-1 defined on a subclass "accidently" picking up an object
            //TODO: really, this should use the "key" columns of the subclass table, then we don't need this check!
            //      (I *think*)

            return(type.IsEntityType &&
                   ((EntityType)type).IsOneToOne &&
                   persister.IsDefinedOnSubclass(propertyNumber));
        }
		/// <summary>
		/// Is this an association that we cannot possibly load by outer
		/// join, no matter what the mapping or subclass specifies?
		/// </summary>
		/// <param name="persister"></param>
		/// <param name="type"></param>
		/// <param name="propertyNumber"></param>
		/// <returns></returns>
		private bool IsJoinedFetchAlwaysDisabled( IOuterJoinLoadable persister, IAssociationType type, int propertyNumber )
		{
			//NOTE: workaround for problem with 1-to-1 defined on a subclass "accidently" picking up an object
			//TODO: really, this should use the "key" columns of the subclass table, then we don't need this check!
			//      (I *think*)

			return type.IsEntityType &&
				( (EntityType) type).IsOneToOne &&
				persister.IsDefinedOnSubclass( propertyNumber );
		}