Ok
i persisted on ym own and resolved this.
Seems it was problems with the enumerations.
the type setting in the property mapping was String - which is ok for
writing to database, but fails for read back cast.
It seems it worked ok when loading back from session of a recently
saved object.
I need to create an assocaited type for each enum and point the
property setting in mapping file to use this instead.
code:#
================================
namespace CRM.Model
{
public class TitlesType : NHibernate.Type.EnumStringType
{
public TitlesType()
: base(typeof(Titles), 10)
{
}
}
}
mapping:
============================
<property name="Title" column="Title"
type="CRM.Model.TitlesType, CRM.Model" access="property" />
--
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.