Hibernate SQL queries corrected - Properties fitering