title: Projection Queries: How to load raw String using JPA for new Entity in AppEngine?
body: <p>How do I load a list of Strings for a brand new, empty, non-existent table in AppEngine? I tried to follow this example:</p>
  
  <p><a href="http://www.objectdb.com/java/jpa/query/jpql/select#Projection_of_Path_Expressions_" rel="nofollow">http://www.objectdb.com/java/jpa/query/jpql/select#Projection_of_Path_Expressions_</a></p>
  
  <p>but it gives me an error:</p>
  
  <blockquote>
    <p>Caused by: javax.persistence.PersistenceException: Class AdminUser for query has not been resolved. Check the query and any imports/aliases specification</p>
    
    <p>Caused by: org.datanucleus.exceptions.ClassNotResolvedException: Class AdminUser for query has not been resolved. Check the query and any imports/aliases specification</p>
  </blockquote>
  
  <p>Here is the code:</p>
  
  <pre><code>public java.util.List&lt;String&gt; getAdmin() {
      EntityManager em = EMF.get().createEntityManager();
      try {
          TypedQuery&lt;String&gt; tq = em.createQuery("select au.email from AdminUser as au", String.class);
          return tq.getResultList();  ///// &lt;=== EXCEPTION
  </code></pre>
  
  <p>I don't actually want to use an AdminUser class. I only want the single column of Strings. It is not obvious how to create a new empty table on AppEngine. </p>