title: Unmapped POJO used as class type in a native query's result exception
body: <p>Given a class:</p>
  
  <pre><code>class MyClass {
      private String a;
      private String b;
      private String c;
  }
  </code></pre>
  
  <p>and code like so: </p>
  
  <pre><code>Query q = getEntityManager()
            .createNativeQuery('select a, b from table', MyClass.class);
  </code></pre>
  
  <p>It throws an exception. My solution is to add </p>
  
  <pre><code>'' as c 
  </code></pre>
  
  <p>in the sql. However, the c in MyClass is a variable that I intend to put some calculated value into, and that c does not have any real mapping to the table, so the solution just puts the c with a blank value...</p>
  
  <p>My question is, are there any alternatives?</p>