@@ -60,7 +60,7 @@ public IDictionary<string, string> IdentifierGeneratorProperties
6060 public string IdentifierGeneratorStrategy
6161 {
6262 get { return identifierGeneratorStrategy ; }
63- set { identifierGeneratorStrategy = value ; }
63+ set { identifierGeneratorStrategy = value == null ? null : string . Intern ( value ) ; }
6464 }
6565
6666 public virtual bool IsComposite
@@ -127,7 +127,7 @@ public string TypeName
127127 if ( ( typeName == null && value != null ) || ( typeName != null && ! typeName . Equals ( value ) ) )
128128 {
129129 // the property change
130- typeName = value ;
130+ typeName = value == null ? null : string . Intern ( value ) ;
131131 type = null ; // invalidate type
132132 }
133133 }
@@ -353,7 +353,8 @@ public virtual void SetTypeUsingReflection(string className, string propertyName
353353 }
354354 try
355355 {
356- typeName = ReflectHelper . ReflectedPropertyClass ( className , propertyName , accesorName ) . AssemblyQualifiedName ;
356+ var aqn = ReflectHelper . ReflectedPropertyClass ( className , propertyName , accesorName ) . AssemblyQualifiedName ;
357+ typeName = aqn == null ? null : string . Intern ( aqn ) ;
357358 }
358359 catch ( HibernateException he )
359360 {
@@ -372,7 +373,8 @@ public virtual void SetTypeUsingReflection(System.Type propertyOwnerType, string
372373 }
373374 try
374375 {
375- typeName = ReflectHelper . ReflectedPropertyClass ( propertyOwnerType , propertyName , accessorName ) . AssemblyQualifiedName ;
376+ var aqn = ReflectHelper . ReflectedPropertyClass ( propertyOwnerType , propertyName , accessorName ) . AssemblyQualifiedName ;
377+ typeName = aqn == null ? null : string . Intern ( aqn ) ;
376378 }
377379 catch ( HibernateException he )
378380 {
0 commit comments