I need select native query with entityManager. I found method:
public Query createNativeQuery(String sqlString, Class resultClass);
And try use it:
Query query = em.createNativeQuery(readyQuery, SmevMessage.class);
return query.getResultList();
But IDE still highlights as a warning:
Why then does this method exist? and what should i do to fix it?
