Use custom int pair instead of guava range in persistence