Class BaseDAO<T extends IEntity<I>,I,M extends org.springframework.data.jpa.repository.JpaRepository<T,I> & org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>>
java.lang.Object
io.github.xezzon.zeroweb.common.jpa.BaseDAO<T,I,M>
- Type Parameters:
T
- 实体类型I
- ID类型M
- 实体操作类类型
- All Implemented Interfaces:
io.github.xezzon.tao.trait.NewType<M>
public abstract class BaseDAO<T extends IEntity<I>,I,M extends org.springframework.data.jpa.repository.JpaRepository<T,I> & org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>>
extends Object
implements io.github.xezzon.tao.trait.NewType<M>
- Author:
- xezzon
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
实体属性复制器static interface
更新条件组装器 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<T>
findAll
(ODataQueryOption odata) 分页查询数据get()
abstract BaseDAO.ICopier<T>
partialUpdate
(T target) 局部更新实体(仅更新非空字段)