title: JPA Sql NativeQuery with SqlResultSetMapping throwing java.sql.SQLException: Column 'formula3_0_' not found
body: <p>Following is the snapshot of my @SqlResultSetMapping which includes two entities and two more columns from native query.</p>
  
  <pre><code>@SqlResultSetMapping(
      name = "EventLogMarketingInfoMapping",
      entities = {
              @EntityResult(
                      entityClass = MarketingInfo.class,
                      fields = {
                              @FieldResult(name = "id", column = "id"),
  
                              @FieldResult(name = "remoteAddr", column = "remote_addr"),
  
                              @FieldResult(name = "user_email", column = "user_email"),
  
                      }
              ),
              @EntityResult(
                      entityClass = EventLog.class,
                      fields = {
                              @FieldResult(name = "log_id", column = "log_id"),
  
                              @FieldResult(name = "comment", column = "comment"),
  
                              @FieldResult(name = "client", column = "client_id"),
                              @FieldResult(name = "game", column = "game_id")
                      }
              )
  
      },
      columns = {
          @ColumnResult(
              name = "user_namex",
              type = String.class
          ),
          @ColumnResult(
              name = "ip",
              type = String.class
          ),
      })
  </code></pre>
  
  <p>Above SqlResultSetMapping is called with the following native query</p>
  
  <pre><code>   Query query = entityManager.createNativeQuery(sql, "EventLogMarketingInfoMapping");
     return query.getResultList();
  </code></pre>
  
  <p>MarketingInfo @Entity also has some @Forumlas which is Not mentioned in @EntityResult.</p>
  
  <p>Whereas query.getResultList() is throwing following exception.</p>
  
  <pre><code>java.sql.SQLException: Column 'formula3_0_' not found.
  </code></pre>
  
  <p>Can anyone define what is happening here? I would also like to add that sql itself is executing fine and has no syntax error or formula column within it.</p>
  
  <p>Thanks in advance.</p>