title: List<String> mapping in Hibernate on object with composite key
body: <p>A very simple questions.
  I have a class which represents an order</p>
  
  <p>Given the following mapping file:</p>
  
  <pre><code>&lt;hibernate-mapping&gt;
  &lt;class name="Order" table="hbmOrder"&gt;
      &lt;composite-id name="key"&gt;
          &lt;key-property name="OrderStatus" type="string" /&gt;
          &lt;key-property name="OrderType" type="string" /&gt;
          &lt;key-property name="version" type="integer" /&gt;
          &lt;key-property name="orderId" type="string" /&gt;
      &lt;/composite-id&gt;
      &lt;property name="ccy" type="string" /&gt;
  </code></pre>
  
  <p>I'd like to add a new property which is an un-ordered list of Strings to hold a list of sales people. There can be zero, one, or many sales people.</p>
  
  <pre><code>List&lt;String&gt; salesPersons;
  </code></pre>
  
  <p>This has so far defeated me. My best attempt so far is:</p>
  
  <pre><code>    &lt;list name="salesPersons" table="order_salesPersons"&gt;
          &lt;key column="key" /&gt;
          &lt;list-index column="index" /&gt;
          &lt;many-to-many column="order_id" class="java.lang.string" /&gt;
      &lt;/list&gt;
  </code></pre>
  
  <p>This isn't working because:</p>
  
  <ol>
  <li>it is a many-to-many mapping (I guess it should be a one to many)</li>
  <li>The class <code>java.lang.string</code> is not supported by Hibernate?</li>
  </ol>
  
  <p>Also, due to project restrictions which are beyond my control I cannot use annotations.</p>
  
  <p>Most of the example I can find on the next deal with much more complex examples. Again, if anyone can point me in the direction of a simple example that will be  a big help! </p>