[DDC-2775] Tests reproducing DDC-2775
[DDC-2775] Bugfix
Fixed tests for pgsql: was using reserved keyword as table name
Fixed tests failing in pgsql because of used of a reserved keyword
Cleaned up tests for DDC-2775
Inlined the model for the DCC2775 test case inside the test class
[DDC-2775] cleanup test.
Merge branch 'DDC-2775' into 2.4
[DDC-2764] Prefix criteria orderBy with rootAlias
Set rootAlias outside loop
Add rootAlias to Criteria where clauses
Merge branch 'DDC-2764' into 2.4