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

FieldFilter lock()方法支持字段名或对象属性 然而create()只支持对象属性 #1534

Open
sakuralf opened this issue Dec 13, 2019 · 0 comments

Comments

@sakuralf
Copy link

Agent agent = new Agent();
agent.setAgentId(6666);
agent.setBeginTime("8888888888");
agent.setId(17);
FieldFilter fieldFilter = FieldFilter.create(Agent.class,"agent_id");//抛异常 sql err
FieldFilter fieldFilter = FieldFilter.create(Agent.class,"agentId");//可正常操作
dao.update(agent,fieldFilter);

class Agent{
@id
@column("id")
private Integer id;
@column("begin_time")
private String beginTime;
@column("agent_id")
private String agentId;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant