class JpaNativeQueryProvider<E> extends AbstractJpaQueryProvider {

	private Class<E> entityClass;

	private String sqlQuery;

	@Override
	public Query createQuery() {
		return getEntityManager().createNativeQuery(sqlQuery, entityClass);
	}

	public void setSqlQuery(String sqlQuery) {
		this.sqlQuery = sqlQuery;
	}

	public void setEntityClass(Class<E> entityClazz) {
		this.entityClass = entityClazz;
	}

	@Override
	public void afterPropertiesSet() throws Exception {<FILL_FUNCTION_BODY>}

}

		Assert.state(StringUtils.hasText(sqlQuery), "Native SQL query cannot be empty");
		Assert.state(entityClass != null, "Entity class cannot be NULL");
	
<methods>public non-sealed void <init>() ,public void setEntityManager(jakarta.persistence.EntityManager) <variables>private jakarta.persistence.EntityManager entityManager