Bottom line, use <element/> instead of <many-to-many/> Diego
On Tue, Feb 2, 2010 at 10:49, Oskar Berggren <[email protected]>wrote: > What you have is a collection of the value type DaysOfWeek. This is > easier to handle, so that is good! > > /Oskar > > > 2010/2/2 Fabio Maulo <[email protected]>: > > enum is not an entity > > 2010/2/2 sirrocco <[email protected]> > >> > >> I have a many-to-many association and I was wondering if I can map the > >> many-to-many element to an enum like: > >> > >> <bag name="DaysToRun" cascade="all-delete-orphan" inverse ="true" > >> access ="field.camelcase-underscore"> > >> <key column="SearchOptionId"></key> > >> <many-to-many column="DaysOfWeekId" > >> class="BPT.Domain.Entities.DaysOfWeek, BPT.Domain.Entities"/> > >> </bag> > >> > >> (DaysOfWeek is an enum) > >> > >> This doesn't work, but maybe there's a better way ? > >> > >> -- > >> 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. > > -- 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.
