liferay/liferay-portal — pull request #119 by shinnlok (2011-10-10 23:01:31+00:00)
Title: LPS-21595

Hey Hugo,

Though adding PortalUtil.transformCustomSQL(sql) in persistence_impl.ftl would work, I thought it would be better to add this "duplicate" logic for the slightly faster performance with fewer iterations.

Thanks.