Create failing test for DDC-2645.

Merge not dealing correctly with composite primary keys.
[DDC-2645] Apply patch to fix issue
Merge branch 'DDC-2645' into 2.4
Multiple invokation of listeners on PreFlush event

Only lifecycle callbacks and entity listeners should be triggered here. The preFlush listener event is already triggered at the beginning of commit()
Added unit test
removed unused use statements, fixed typo and group tag
Listener class prefix
Merge branch 'DDC-2692' into 2.4
[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