title: How to map a component collection with compass?
body: <p>I need to map a collection of components with compass (using XML mapping)... Is there any way to achieve this?
  Thanks in advance for any suggestions.</p>
  
  <p>Example classes:</p>
  
  <pre><code>class ClassA {
      private Set&lt;ClassB&gt; bs;
      // ... getBs/setBs ...
  }
  class ClassB {}
  </code></pre>
  
  <p>Example mapping:</p>
  
  <pre><code>&lt;class name="com.package.ClassA" alias="classA"&gt;
       &lt;!-- no idea how I can map Set&lt;ClassB&gt; in here... can I? --&gt;
  &lt;/class&gt;
  &lt;class name="com.package.ClassB" alias="classB"&gt;
  &lt;/class&gt;
  </code></pre>