Stack Overflow
Makes me go YES
stack overflow
@Service
public class EntryTerminalServiceImpl implements EntryTerminalService {
private final EntryTerminalRepository entryTerminalRepository;
@Autowired
public EntryTerminalServiceImpl(EntryTerminalRepository entryTerminalRepository) {
this.entryTerminalRepository = entryTerminalRepository;
}
@Override
public Page<EntryTerminal> getEntryTerminalEventsLog(Pageable pageable) {
return entryTerminalRepository.findAllByOrderByIdDesc(pageable);
}
@Override
public void saveEntryTerminalEventToLog(EntryTerminal entryTerminal) {
entryTerminalRepository.save(entryTerminal);
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us