Java validation verifies the problem that one number in an entity is smaller than the other

has an entity class with two attributes, startNum and endNum.
so how to verify that startNum must be less than endNum? by javavalidation

Menu