<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -929,5 +929,28 @@ namespace FluentNHibernate.Testing.DomainModel.Mapping
                 .ForMapping(m =&gt; m.HasMany(x =&gt; x.MapOfChildren).KeyColumns.Add(&quot;key_col&quot;, c =&gt; c.Unique()))
                 .Element(&quot;class/bag/key/column&quot;).HasAttribute(&quot;unique&quot;, &quot;true&quot;);                
         }
+
+
+        [Test]
+        public void CanSpecifySqlTypeOnElementColumn()
+        {
+            new MappingTester&lt;OneToManyTarget&gt;()
+                .ForMapping(map =&gt; map.HasMany(x =&gt; x.MapOfEnums)
+                                       .AsMap&lt;MapIndex&gt;(
+                                           index =&gt; index.Column(&quot;IndexColumn&quot;),
+                                           element =&gt; element.Columns.Add(&quot;elementColumn&quot;, c =&gt; c.SqlType(&quot;ntext&quot;))))
+                .Element(&quot;class/map/element/column&quot;).HasAttribute(&quot;sql-type&quot;, &quot;ntext&quot;);
+        }
+
+        [Test]
+        public void CanSpecifyAdditionalColumnWithSqlTypeOnElement()
+        {
+            new MappingTester&lt;OneToManyTarget&gt;()
+                .ForMapping(m =&gt; m.HasMany(x =&gt; x.MapOfChildren)
+                    .Element(&quot;colName&quot;, e =&gt; e.Columns.Add(&quot;additionalColumn&quot;, c =&gt; c.SqlType(&quot;ntext&quot;))))                
+                .Element(&quot;class/bag/element/column[@name='colName']&quot;).DoesntHaveAttribute(&quot;sql-type&quot;)
+                .Element(&quot;class/bag/element/column[@name='additionalColumn']&quot;).HasAttribute(&quot;sql-type&quot;, &quot;ntext&quot;);                       
+        }
+
     }
 }</diff>
      <filename>src/FluentNHibernate.Testing/DomainModel/Mapping/OneToManyTester.cs</filename>
    </modified>
    <modified>
      <diff>@@ -10,11 +10,12 @@ namespace FluentNHibernate.Mapping
     {
         private readonly Type entity;
         private readonly AttributeStore&lt;ElementMapping&gt; attributes = new AttributeStore&lt;ElementMapping&gt;();
-        private IList&lt;string&gt; columns = new List&lt;string&gt;();
+        private readonly ColumnMappingCollection&lt;ElementPart&gt; columns;
 
         public ElementPart(Type entity)
         {
             this.entity = entity;
+            columns = new ColumnMappingCollection&lt;ElementPart&gt;(this);            
         }
 
         public ElementPart Column(string elementColumnName)
@@ -23,6 +24,11 @@ namespace FluentNHibernate.Mapping
             return this;
         }
 
+        public ColumnMappingCollection&lt;ElementPart&gt; Columns
+        {
+            get { return columns; }
+        }
+
         public ElementPart Type&lt;TElement&gt;()
         {
             attributes.Set(x =&gt; x.Type, new TypeReference(typeof(TElement)));
@@ -32,10 +38,10 @@ namespace FluentNHibernate.Mapping
         public ElementMapping GetElementMapping()
         {
             var mapping = new ElementMapping(attributes.CloneInner());
-
             mapping.ContainingEntityType = entity;
 
-            columns.Each(x =&gt; mapping.AddColumn(new ColumnMapping { Name = x }));
+            foreach (var column in Columns)
+                mapping.AddColumn(column);
 
             return mapping;
         }</diff>
      <filename>src/FluentNHibernate/Mapping/ElementPart.cs</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d86698eb043e367f3eb38318014bf3caccd9a11c</id>
    </parent>
  </parents>
  <author>
    <name>Paul Batum</name>
    <email>paul.batum@gmail.com</email>
  </author>
  <url>http://github.com/jagregory/fluent-nhibernate/commit/69edec152912cb08003aed7c7e5c148e8879e245</url>
  <id>69edec152912cb08003aed7c7e5c148e8879e245</id>
  <committed-date>2009-11-02T23:11:59-08:00</committed-date>
  <authored-date>2009-11-02T23:11:59-08:00</authored-date>
  <message>Modified ElementPart to use a ColumnMappingCollection so that users can control the column attributes. Resolves issue #341.</message>
  <tree>36a0fb12b88dac01eb7d269afc58ede0a6b9f755</tree>
  <committer>
    <name>Paul Batum</name>
    <email>paul.batum@gmail.com</email>
  </committer>
</commit>
