All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.jhipster.lite.project.infrastructure.primary.RestPreset Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package tech.jhipster.lite.project.infrastructure.primary;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Collection;
import tech.jhipster.lite.project.domain.preset.Preset;

@Schema(name = "Preset", description = "Information on specific configuration")
record RestPreset(
  @Schema(description = "Name of specific configuration") String name,
  @Schema(description = "Modules to apply of this specific configuration") Collection modules
) {
  public static RestPreset from(Preset preset) {
    return new RestPreset(preset.name().name(), preset.modules().modules().stream().map(RestModuleToApply::from).toList());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy