I want to validate a date in Long type to be greater than the current time.
I've seen @Past, @Future and so on... but It is not applicable to Long data type.
I'm looking for something like this:
@FutureOrPresent
private Long dateStart;
@Future
private Long dateEnd;
But working for Long values.
How can I validate date > System.currentTimeMillis() ?
Thanks in advance.