querydsl/querydsl — pull request #1073 by Shredder121 (2014-12-04 20:23:45+00:00)
Title: Respect the user-specified existing templates during JPAQuery.clone()

Fixes #1071

Thinking out loud here, what should reflect the outcome.

method | behavior
----------|---------
`clone()` | copies all state over(including custom templates)
`clone(em)` | attaches with the specific templates for that EntityManager
`clone(em, templates)` | attaches with respect to the specified custom templates