Jakarta Persistence Query Language: Difference between revisions

Content deleted Content added
m External links: replaced link to the Java 5 tutorial by a link to the Java 6 tutorial on JPQL
Line 93:
public List<Author> getAuthorsByLastName(String lastName) {
String queryString = "SELECT a FROM Author a " +
"WHERE :a.lastName IS NULL OR LOWER(a.lastName) = :lastName";
Query query = getEntityManager().createQuery(queryString);