Added JPA support for chaining queries that pass tuples along.
Starting work on JPA support for parameters.