JPA Method
in javax.persistence.EntityManager

Query createNativeQuery(
  String sqlString
)


Create an instance of Query for executing a native SQL statement, e.g., for update or delete. If the query is not an update or delete query, query execution will result in each row of the SQL result being returned as a result of type Object[] (or a result of type Object if there is only one column in the select list.) Column values are returned in the order of their appearance in the select list and default JDBC type mappings are applied.
Parameters:
sqlString - a native SQL query string
Return:
the new query instance
Since:
JPA 1.0