-
-
Save adgadev/fd2aa86af5adafcd11c75a6cac58e4d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
@HaloFeature | |
@RequiredArgsConstructor | |
public class HaloService { | |
private final HaloRepository haloRepository; | |
public HaloEntity addHalo(String name) { | |
var haloEntity = new HaloEntity(UUID.randomUUID().toString(), name); | |
return haloRepository.save(haloEntity); | |
} | |
public HaloEntity getHalo(String id) { | |
return haloRepository.findById(id).orElseThrow(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment