yes, it seems to me that the xmlusertype discussed at http://markmail.org/message/wae5qe5b2kti4qqd#query:+page:1+mid:3jkwktw6226357qs+state:results makes a lot of sense
On Wed, Jan 27, 2010 at 7:55 PM, Fabio Maulo <[email protected]> wrote: > what you are looking for is a IUserType > here is a similar example > > http://fabiomaulo.blogspot.com/2009/06/localized-property-with-nhibernate.html > > > 2010/1/27 Jan Limpens <[email protected]> > >> Dunno, in my case having to query another table would introduce heaps of >> changes, n+1 etc, while persisting that as an array would be super simple >> and solve my problem. I am not so sure if I care about that just because >> somebody says I should. >> >> >> On Wed, Jan 27, 2010 at 7:10 PM, Jason Dentler <[email protected]>wrote: >> >>> No. Here's why: >>> http://en.wikipedia.org/wiki/First_normal_form >>> >>> Thanks, >>> Jason >>> >>> >>> On Wed, Jan 27, 2010 at 2:56 PM, Jan Limpens <[email protected]>wrote: >>> >>>> sorry, I have been too vague... >>>> >>>> what I want to persist is a list of strings in a column of the entity >>>> >>>> so that in the database i have a row >>>> >>>> id: 1 >>>> name: "myName" >>>> values: "a, b, c" >>>> >>>> and as object i have (I use js notation here for brevity) >>>> { >>>> id: 1, >>>> name: "myName", >>>> values: ["a", "b", "c"] >>>> >>>> } >>>> >>>> >>>> On Wed, Jan 27, 2010 at 6:50 PM, Fabio Maulo <[email protected]>wrote: >>>> >>>>> <set name="NickNames" > >>>>> <key column="personId"/> >>>>> <element column="nick_name" type="string" not-null="true"/> >>>>> </set> >>>>> >>>>> 2010/1/27 Jan Limpens <[email protected]> >>>>> >>>>>> hello, >>>>>> >>>>>> is there some custom type somewhere in the nh namespaces that helps me >>>>>> to persist an iset of strings as a property of an entity? or will i have >>>>>> to >>>>>> implement this as a NHibernate.UserTypes.IUserCollectionType with some >>>>>> split >>>>>> char? >>>>>> >>>>>> -- >>>>>> Jan >>>>>> >>>>>> -- >>>>>> 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. >>>>> >>>> >>>> >>>> >>>> -- >>>> Jan >>>> >>>> -- >>>> 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. >>> >> >> >> >> -- >> Jan >> >> -- >> 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. > -- Jan -- 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.
