public ConstructorResultsImpl(Speedment speedment, final ConstructorResults constructorResults) {
   super(speedment);
   setConstructorResultsId(constructorResults.getConstructorResultsId());
   setRaceId(constructorResults.getRaceId());
   setConstructorId(constructorResults.getConstructorId());
   constructorResults.getPoints().ifPresent(this::setPoints);
   constructorResults.getStatus().ifPresent(this::setStatus);
 }
 @Override
 public boolean equals(Object that) {
   if (this == that) {
     return true;
   }
   if (!(that instanceof ConstructorResults)) {
     return false;
   }
   @SuppressWarnings("unchecked")
   final ConstructorResults thatConstructorResults = (ConstructorResults) that;
   if (!Objects.equals(
       this.getConstructorResultsId(), thatConstructorResults.getConstructorResultsId())) {
     return false;
   }
   if (!Objects.equals(this.getRaceId(), thatConstructorResults.getRaceId())) {
     return false;
   }
   if (!Objects.equals(this.getConstructorId(), thatConstructorResults.getConstructorId())) {
     return false;
   }
   if (!Objects.equals(this.getPoints(), thatConstructorResults.getPoints())) {
     return false;
   }
   if (!Objects.equals(this.getStatus(), thatConstructorResults.getStatus())) {
     return false;
   }
   return true;
 }