Class RequestTypeService

java.lang.Object
edu.ucsb.cs156.rec.services.RequestTypeService

@Service public class RequestTypeService extends Object
Service for managing RequestType entities.
  • Constructor Details

    • RequestTypeService

      public RequestTypeService(RequestTypeRepository requestTypeRepository)
      Constructor for RequestTypeService with dependency injection.
      Parameters:
      requestTypeRepository - The repository for RequestType entities
  • Method Details

    • initializeRequestTypes

      public List<RequestType> initializeRequestTypes()
      Initializes the RequestType table with hardcoded values if they are not already present.