rest & hibernate working