Fix for Hibernate SQL Grammer Error

Signed-off-by: Tajinder <tajindersingh4487@gmail.com>