Perhaps, in this case, the problem is in NH itself.
As IType the EnumStringType should be a property of TypeFactory and its
"Name" (I mean the property Name) should be a valid value to be used in the
mapping as "short-name". This is what we have for most of the others IType.
http://216.121.112.228/browse/NH-2216

<http://216.121.112.228/browse/NH-2216>The ConfORM API now supports both
IType and IUserType (method Type<TPersistentType>()) but to do that, for a
wrong usage, now you have a run-time exception instead a nice compile-time
error.

On Mon, Jun 7, 2010 at 12:33 PM, Yonah Wahrhaftig <[email protected]>wrote:

> Thank you so much for your fixes and additional examples.
> I believe the reason I was having so much trouble was due to the property
> mapper not accepting the EnumString as its not an IUserType.
>
> I think it is difficult for a beginner like myself to understand when there
> is something wrong with their own implementation or that there is a bug or
> lack of implementation in the library being used. I tend to believe that the
> problem lies in my own code or ignorance as this is generally the case.
>
> Do you have any tips on how to recognize when the problem is actually in
> the library and thus to focus on trying to help patch.
> ------------------------------
> *From: * Fabio Maulo <[email protected]>
> *Date: *Fri, 4 Jun 2010 19:18:46 -0300
> *To: *<[email protected]>
> *Subject: *Re: [nhusers] Map Enum as string with ConfOrm
>
> Now I must dedicate few hours to my females (wife, daughter, dog) after
> that I'll back to code
>
> On Fri, Jun 4, 2010 at 6:30 PM, Yonah Wahrhaftig <[email protected]>wrote:
>
>> I hadn't worked with appliers. Looking at them now, not sure I fully
>> understand them but will play with it and hopefully get a better handle on
>> it.
>> ------------------------------
>> *From: * Fabio Maulo <[email protected]>
>> *Date: *Fri, 4 Jun 2010 17:57:43 -0300
>> *To: *<[email protected]>
>> *Subject: *Re: [nhusers] Map Enum as string with ConfOrm
>>
>> I'm thinking about to public an applier in the ConfOrm.Shop
>>
>> On Fri, Jun 4, 2010 at 5:53 PM, Yonah Wahrhaftig <[email protected]>wrote:
>>
>>> Thank you very much. I really like the feel of ConfOrm but I'm stuck with
>>> this one issue.
>>> ------------------------------
>>> *From: * Fabio Maulo <[email protected]>
>>> *Date: *Fri, 4 Jun 2010 17:36:34 -0300
>>> *To: *<[email protected]>
>>> *Subject: *Re: [nhusers] Map Enum as string with ConfOrm
>>>
>>> Going to post an example
>>>
>>> On Fri, Jun 4, 2010 at 5:10 PM, Yonah Wahrhaftig 
>>> <[email protected]>wrote:
>>>
>>>> Is this currently supported. I can't seem to find a way to use the
>>>> EnumStringType others have mentioned with xml mappings.
>>>> I have tried declaring the property a string in customizing for the
>>>> class but that fails on load with a type mismatch.
>>>> It looks to me from the tests and examples that I should be customizing
>>>> the property but it won't compile saying its expecting an NHibernate.IType
>>>> which I thought the EnumStringType is.
>>>>
>>>> --
>>>> 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]<nhusers%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/nhusers?hl=en.
>>>>
>>>>
>>>
>>>
>>> --
>>> Fabio Maulo
>>>
>>>  --
>>> 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]<nhusers%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/nhusers?hl=en.
>>>
>>> --
>>> 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]<nhusers%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/nhusers?hl=en.
>>>
>>
>>
>>
>> --
>> Fabio Maulo
>>
>>  --
>> 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]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>> --
>> 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]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>
>
>
> --
> Fabio Maulo
>
>  --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>



-- 
Fabio Maulo

-- 
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.

Reply via email to