Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EntityService类 update 返回void #888

Closed
javanan opened this issue Jun 30, 2015 · 0 comments
Closed

EntityService类 update 返回void #888

javanan opened this issue Jun 30, 2015 · 0 comments
Assignees
Milestone

Comments

@javanan
Copy link

javanan commented Jun 30, 2015

EntityService 封装的方法
public void update(Chain chain, Condition cnd) {
dao().update(getEntityClass(), chain, cnd);
}

public void updateRelation(String regex, Chain chain, Condition cnd) {
    dao().updateRelation(getEntityClass(), regex, chain, cnd);
}

/**
 * 批量删除
 * 
 * @param columnName
 * @param ids
 */
public void delete(String columnName, String[] ids) {
    dao().clear(getEntityClass(), Cnd.where("columnName", "in", ids));
}

返回时 null

-----觉得返回 操作行数 好点

@wendal wendal closed this as completed in 0a4dab1 Jun 30, 2015
@wendal wendal added this to the 1.b.53 milestone Jun 30, 2015
@wendal wendal self-assigned this Jun 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants