JPA Method
in jakarta.persistence.EntityManager

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
Return:
the new query instance
Throws:
IllegalArgumentException - if a query has not been defined with the given name or if the query string is found to be invalid
See Also:
NamedQuery
NamedNativeQuery
Since:
JPA 1.0