Jakarta Persistence (JPA) Method
Query createNamedQuery(
String name
)
Create an instance of
Query for executing a named query written in the Jakarta Persistence query language or in native SQL. - Parameters:
name- the name of a query defined in metadata
- Returns:
- the new query instance.
- Throws:
- if a query has not been defined with the given name or if the query string is found to be invalid.IllegalArgumentException
- See Also:
- Since:
- Jakarta Persistence (JPA) 1.0