Content deleted Content added
→Examples: Changed example query to use TypedQuery for improved type safety. If we really want an example using normal Query, I'd strongly suggest making another example with an update or delete (using createNativeQuery if necessary) to avoid the need for a result. Tags: Mobile edit Mobile web edit |
→Examples: Fixed type of .class() instead of .class in my previous edit Tags: Mobile edit Mobile web edit |
||
Line 93:
"WHERE a.lastName IS NULL OR LOWER(a.lastName) = LOWER(:lastName)";
TypedQuery<Author> query = getEntityManager().createQuery(queryString, Author.class
query.setParameter("lastName", lastName);
return query.getResultList();
|