added hibernate querying code snippet