Class AbstractRestController<ENTITY extends io.github.astrapi69.data.identifiable.Identifiable<ID>,ID extends Serializable,REPOSITORY extends org.springframework.data.jpa.repository.JpaRepository<ENTITY,ID>,DTO>
java.lang.Object
io.github.astrapi69.spring.controller.AbstractRestController<ENTITY,ID,REPOSITORY,DTO>
public class AbstractRestController<ENTITY extends io.github.astrapi69.data.identifiable.Identifiable<ID>,ID extends Serializable,REPOSITORY extends org.springframework.data.jpa.repository.JpaRepository<ENTITY,ID>,DTO>
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractRestController
(io.github.astrapi69.model.mapper.GenericModelMapper<ENTITY, DTO> mapper, GenericService<ENTITY, ID, REPOSITORY> service) -
Method Summary
-
Constructor Details
-
AbstractRestController
public AbstractRestController(io.github.astrapi69.model.mapper.GenericModelMapper<ENTITY, DTO> mapper, GenericService<ENTITY, ID, REPOSITORY> service)
-
-
Method Details
-
delete
-
deleteById
-
findAll
-
get
-
save
-
update
-
getMapper
-
getService
-