1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| /**
| * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
| */
| package com.jeeplus.common.persistence;
|
| import java.util.List;
|
| /**
| * DAO支持类实现
| * @author jeeplus
| * @version 2014-05-16
| * @param <T>
| */
| public interface TreeDao<T extends TreeEntity<T>> extends CrudDao<T> {
|
| /**
| * 找到所有子节点
| * @param entity
| * @return
| */
| public List<T> findByParentIdsLike(T entity);
|
| /**
| * 更新所有父节点字段
| * @param entity
| * @return
| */
| public int updateParentIds(T entity);
|
| }
|
|