Using relationships in the Java Persistence Query Language