Added query support for #603
Merge branch 'trunk' of https://github.com/impetus-opensource/Kundera into trunk