Class Helper
java.lang.Object
com.myhrcrmproject.service.utills.Helper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E,T, R> List<R> findAllByEntityId(Integer id, org.springframework.data.jpa.repository.JpaRepository<T, Integer> repository, Function<T, List<E>> taskMappingFunction, Function<E, R> dtoMappingFunction) findAllByEnumId(Integer id, Class<T> enumType, Function<T, List<E>> taskMappingFunction, Function<E, R> dtoMappingFunction) static <T> voidsetEntityById(Supplier<Integer> getFromRequestFunction, Consumer<T> setToEntityFunction, org.springframework.data.jpa.repository.JpaRepository<T, Integer> repository, String entityName)
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
setEntityById
-
findAllByEntityId
-
findAllByEnumId
-