When I'm asking this question on stackoverflow, I can add tags to it. So, in DDD, I would have a class Question that somehow has tags. One way to model it would be with a List of tags, since a tag is not really an entity (or is it?).
public class Question
{
// ...
public List<string> Tags;
}
In the database, however, I would probably have these three tables:
Question: QuestionID, Title, Content
Tag: TagID, Title
QuestionTag: QuestionID, TagID
Would this be possible from an NHibernate perspective? Would it be recommended? How would you do it?