fetching incomes/outcomes by hibernate for thrift