Package edu.ucsb.cs156.rec.services
Class RequestTypeService
java.lang.Object
edu.ucsb.cs156.rec.services.RequestTypeService
Service for managing Request Types.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResult class for loadRequestTypes method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoad hardcoded request types into the database if they don't already exist.
-
Constructor Details
-
RequestTypeService
public RequestTypeService()
-
-
Method Details
-
loadRequestTypes
Load hardcoded request types into the database if they don't already exist.This method checks for each hardcoded request type and only creates it if it's not already in the database.
- Returns:
- LoadResult containing the number of types loaded and skipped
-