brianchandotcom/liferay-portal — pull request #10122 by epgarcia (2013-04-04 15:06:04+00:00)
Title: LPS-31033 ServiceBuilder is not escaping bad column names when generating SQLQueries

* Use Set instead of String[]
* Prevent unused declarations. Only if finder column has a "bad name" AND entity.isPermissionCheckEnabled(finder) the declaration will be added.
* Reuse the code for orderByComparator in the PersistenceTests. It makes no sense to order by Blob fields even in SQLQueries.

All tests passing.

Thanks!