@@ -60,7 +60,7 @@ public IDictionary<string, string> IdentifierGeneratorProperties
60
60
public string IdentifierGeneratorStrategy
61
61
{
62
62
get { return identifierGeneratorStrategy ; }
63
- set { identifierGeneratorStrategy = value ; }
63
+ set { identifierGeneratorStrategy = value == null ? null : string . Intern ( value ) ; }
64
64
}
65
65
66
66
public virtual bool IsComposite
@@ -127,7 +127,7 @@ public string TypeName
127
127
if ( ( typeName == null && value != null ) || ( typeName != null && ! typeName . Equals ( value ) ) )
128
128
{
129
129
// the property change
130
- typeName = value ;
130
+ typeName = value == null ? null : string . Intern ( value ) ;
131
131
type = null ; // invalidate type
132
132
}
133
133
}
@@ -353,7 +353,8 @@ public virtual void SetTypeUsingReflection(string className, string propertyName
353
353
}
354
354
try
355
355
{
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 ) ;
357
358
}
358
359
catch ( HibernateException he )
359
360
{
@@ -372,7 +373,8 @@ public virtual void SetTypeUsingReflection(System.Type propertyOwnerType, string
372
373
}
373
374
try
374
375
{
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 ) ;
376
378
}
377
379
catch ( HibernateException he )
378
380
{
0 commit comments