title: EclipseLink native query result into POJO - Missing descriptor for [Class]
body: <p>I'm using EclipseLink to run some Native SQL. I need to return the data into a POJO.  I followed the instructions at <a href="http://wiki.eclipse.org/EclipseLink/Development/2.1/AdvancedJPA_Queries">EclipseLink Docs</a>, but I receive the error <code>Missing descriptor for [Class]</code></p>
  
  <p>The query columns have been named to match the member variables of the POJO.  Do I need to do some additional mapping?</p>
  
  <p>POJO:</p>
  
  <pre><code>public class AnnouncementRecipientsFlattenedDTO {
  
          private BigDecimal announcementId;
          private String recipientAddress;
          private String type;
  
          public AnnouncementRecipientsFlattenedDTO() {
              super();
          }
  
          public AnnouncementRecipientsFlattenedDTO(BigDecimal announcementId, String recipientAddress, String type) {
              super();
              this.announcementId = announcementId;
              this.recipientAddress = recipientAddress;
              this.type = type;
          }
  
      ... Getters/Setters
  </code></pre>
  
  <p>Entity Manager call:</p>
  
  <pre><code>public List&lt;AnnouncementRecipientsFlattenedDTO&gt; getNormalizedRecipientsForAnnouncement(int announcementId) {
      Query query = em.createNamedQuery(AnnouncementDeliveryLog.FIND_NORMALIZED_RECIPIENTS_FOR_ANNOUNCEMENT, AnnouncementRecipientsFlattenedDTO.class);
      query.setParameter(1, announcementId);
      return query.getResultList();
  }
  </code></pre>