From a938ee47b69c924c64a000369f1751ac9684205a Mon Sep 17 00:00:00 2001 From: jgreenstevens Date: Fri, 22 Nov 2024 16:27:52 +0000 Subject: [PATCH] Annotations --- .../beekeeper/core/service/BeekeeperHistoryService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java b/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java index aad6f546..c18ee3c8 100644 --- a/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java +++ b/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java @@ -4,17 +4,21 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; import com.expediagroup.beekeeper.core.model.HousekeepingEntity; import com.expediagroup.beekeeper.core.model.history.BeekeeperHistory; import com.expediagroup.beekeeper.core.repository.BeekeeperHistoryRepository; +@Component public class BeekeeperHistoryService { private static final Logger log = LoggerFactory.getLogger(BeekeeperHistoryService.class); private final BeekeeperHistoryRepository beekeeperHistoryRepository; + @Autowired public BeekeeperHistoryService(BeekeeperHistoryRepository beekeeperHistoryRepository) { this.beekeeperHistoryRepository = beekeeperHistoryRepository; }