Use the queries area of the JPA Details view to create named queries and named native queries. Refer to "Creating Named Queries" for additional information.