On 2013-08-07 16:34, David Mason wrote:
> In zanata-war/src/main/java/org/zanata/dao/TransMemoryStreamingDAO.java:
> 
>> +    * <p>
>> +    * NB: caller must close the iterator, or call next() until the iterator is exhausted,
>> +    * or else a database connection will be leaked.
>> +    * @param transMemory
>> +    * @return
>> +    */
>> +   public CloseableIterator<TransMemoryUnit> findTransUnitsByTM(TransMemory transMemory)
>> +   {
>> +      StreamingEntityIterator<TransMemoryUnit> iter = createIterator();
>> +      try
>> +      {
>> +         Query q = iter.getSession().createQuery(
>> +               "FROM TransMemoryUnit tu FETCH ALL PROPERTIES " +
>> +               "JOIN FETCH tu.transUnitVariants tuv FETCH ALL PROPERTIES " +
>> +               "WHERE tu.translationMemory = :transMemory " +
>> +               "");
> 
> Plus empty string.
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zanata/zanata-server/pull/78/files#r5624591>.
> 

Yes.  It makes it a lot easier to edit the query.


-- 
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat