Fixes for Issue#310 - Fixed an issue with query handling
Merge branch 'trunk' of git@github.com:impetus-opensource/Kundera.git into trunk