Simple arithmetic projections for hibernate