Fixed parameterized HQL queries for security. Applied query syntax
uniformity across project.
Fixed parameterization of HQL queries for security and applied query
syntax uniformity across project.