model.setRequired(attribute.isRequired()); model.setSortable(attribute.isSortable()); model.setExamples(attribute.getExamples()); Set<ConstraintModel> constraintModels = model.getConstraints() != null ? model.getConstraints() : new HashSet<>();
model.setRequired(attribute.isRequired()); model.setSortable(attribute.isSortable()); model.setExamples(attribute.getExamples()); Set<ConstraintModel> constraintModels = model.getConstraints() != null ? model.getConstraints() : new HashSet<>();