We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0753aa commit ed13366Copy full SHA for ed13366
api/src/main/java/jakarta/persistence/EntityManager.java
@@ -1071,11 +1071,14 @@ void refresh(Object entity,
1071
/**
1072
* Create an instance of {@link Query} for executing a native
1073
* SQL query.
1074
+ *
1075
+ * <p><em>In the next release of this API, the return type of this
1076
+ * method will change to {@code TypedQuery<T>}.</em>
1077
* @param sqlString a native SQL query string
- * @param resultClass the class of the resulting instance(s)
1078
+ * @param resultClass the type of the query result
1079
* @return the new query instance
1080
*/
- Query createNativeQuery(String sqlString, Class<?> resultClass);
1081
+ <T> Query createNativeQuery(String sqlString, Class<T> resultClass);
1082
1083
1084
* Create an instance of {@link Query} for executing
0 commit comments