title: Scala: set a field value reflectively from field name
body: <p>I'm learning scala and can't find out how to do this:</p>
  
  <p>I'm doing a mapper between scala objects and google appengine entities, so if i have a class like this:</p>
  
  <pre><code>class Student {
      var id:Long
      var name:String
  }
  </code></pre>
  
  <p>I need to create an instance of that class, in java i would get the Field by it's name and then do <code>field.set(object, value)</code> but I can't find how to do so in scala.</p>
  
  <p>I can't use java reflection since the fields of Student are seen as private and field.set throws an error because of that.</p>
  
  <p>Thanks</p>