title: spring bean: good XML data structure for many classes?
body: <p>I am working on a demo with Java Spring Bean. I have a structure in the applicationContext.xml. Something like that:</p>
  
  <pre><code>&lt;bean id="Transfer1" class="bank.Transfer"&gt;
      &lt;property name="id" value="1" /&gt;
      &lt;property name="firstname" value="Thomas" /&gt;
      &lt;property name="lastname" value="Bäcker" /&gt;
      &lt;property name="transferdate" value="2016-11-15" /&gt;
      &lt;property name="amount" value="300" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="Transfer2" class="bank.Transfer"&gt;
      &lt;property name="id" value="2" /&gt;
      &lt;property name="firstname" value="Bob" /&gt;
      &lt;property name="lastname" value="Sapp" /&gt;
      &lt;property name="transferdate" value="2016-12-01" /&gt;
      &lt;property name="amount" value="2700" /&gt;
  &lt;/bean&gt;
   //   
   // followed by Transfer3, Transfer4...
   //
  </code></pre>
  
  <p>I am wondering if there is a better solution, data structure for this. May be something where i can put all Transfers in one Bean instead a long list of Beans. Thx for any advice!</p>