Skip to content

Commit

Permalink
slight adjustment to signature of EntityManager.createNativeQuery()
Browse files Browse the repository at this point in the history
preparing the way for jakartaee#52
  • Loading branch information
gavinking committed Nov 3, 2023
1 parent c0753aa commit ed13366
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/src/main/java/jakarta/persistence/EntityManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1071,11 +1071,14 @@ void refresh(Object entity,
/**
* Create an instance of {@link Query} for executing a native
* SQL query.
*
* <p><em>In the next release of this API, the return type of this
* method will change to {@code TypedQuery<T>}.</em>
* @param sqlString a native SQL query string
* @param resultClass the class of the resulting instance(s)
* @param resultClass the type of the query result
* @return the new query instance
*/
Query createNativeQuery(String sqlString, Class<?> resultClass);
<T> Query createNativeQuery(String sqlString, Class<T> resultClass);

/**
* Create an instance of {@link Query} for executing
Expand Down

0 comments on commit ed13366

Please sign in to comment.