title: Using spock data table for filling objects
body: <p>I am using Spock for the first time. Since we are using a complex domain-model it would be handy to have a mechanism, which allows me to create full objects from data given by spock tables. I do not want to give all values each time, I just want to set the values in defined in datable. So there should be defined default values somewhere.</p>
  
  <p>Yes, I know I could write on my own, but maybe there is an out-of-the-box solution.</p>
  
  <p>Example</p>
  
  <pre><code>class A {
     String name
     int age
  }
  </code></pre>
  
  <p>spock table</p>
  
  <pre><code>id | givenA                     | ...
  1  | [name: "Michael"]          | ...
  2  | [name: "Thomas", age: 45 ] | ...
  </code></pre>
  
  <ol>
  <li>=> A.name = "Michael", A.age = defined default somewhere</li>
  <li>=> A.name = "Thomas" A.age = 45 (because I overwrite default value)</li>
  </ol>