<p>I was mapping a relation using something like the following </p>

<pre><code>&lt;map name="Foo" cascade="all-delete-orphan" lazy="false"&gt;
  &lt;key column="FooId"/&gt;
  &lt;index column="FooType" type="Domain.Enum.FooType, Domain"/&gt;
  &lt;element column ="FooStatus" type="Domain.Enum.FooStatus, Domain"/&gt;
&lt;/map&gt;
</code></pre>

<p>The class is like this</p>

<pre><code>namespace Domain {
    public class Enum {
        public enum FooType {
            Foo1,
            Foo2,
            ...
      Foo50}
       public enum FooStatus {
           NotNeeded,
           NeededFor1,
           NeededFor2,
      NeededFor3,
      NiceToHave}
    }
}
</code></pre>

<p>Can I do this using Fluent Nhibernate?
If not can I map a class mixing Fluent and XML?</p>

Forget to add
```
```
namespace Domain 
{
public virtual IDictionary<FooType, FooStatus> MyFoo { set; get; }
}
```
```