I need to do a composite validation in ORJ ActiveJdbc and I'm not finding anything in the documentation. Something of the type, extends from the ValidatorAdapter class, but I'm not finding material to use as an example.
Basically:
public class Competencia extends Model{
static{
validateWith(new UniquenessValidator("mes", "ano")).message("O número de documento já existe");
}
}
I was able to (I picked up from a friend) the Uniqueness with a field, but I'm having trouble making two fields. How can I get around this difficulty, does anyone have a similar example?