Пример #1
0
 @Override
 protected void validateOnCreate(MonitorEngine engine) throws ValidationException {
   super.validateOnCreate(engine);
   MonitorEngine exist = findByAddress(engine.getAddress());
   if (exist != null) {
     throw new ValidationException("There is an engine with address " + engine.getAddress());
   }
 }