2009/2/10 Markus Zywitza <[email protected]>

>
> 2009/2/10 Fabio Maulo <[email protected]>:
> > 2009/2/10 Markus Zywitza <[email protected]>
> >>
> >> Enums are fine for gender, but think of categories or other
> >> classifications, where the knowledge level must be persisted also.
> >
> > Well...
> > if are persistent use a appropiate DAO repository to upload it.
> Basically this means using unidirectional many-to-one resp.
> many-to-many associations?
> Just to make it clear, because this would be my favourite approach for
> discrete value lists instead of enums.


Let me say that it depend, IMO for a property as "Gender" the best choice is
an enum (and for some governmental application it is a enum with 2 values).
In some other case you can use a specific DAO/Repository and many-to-one
association.
About many-to-many
http://nhforge.org/doc/nh/en/index.html#collections-ofvalues
-- 
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