tech.jhipster.lite.module.infrastructure.secondary.PersistedPreset Maven / Gradle / Ivy
package tech.jhipster.lite.module.infrastructure.secondary;
import java.util.Collection;
import tech.jhipster.lite.module.domain.JHipsterModuleSlugs;
import tech.jhipster.lite.module.domain.preset.Preset;
import tech.jhipster.lite.module.domain.preset.PresetName;
record PersistedPreset(String name, Collection modules) {
public Preset toDomain() {
return new Preset(PresetName.from(name), JHipsterModuleSlugs.from(modules));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy