@Target(value=FIELD) @Retention(value=RUNTIME) public @interface JustFetch
eg:
@ JustFetch("CONCAT(fisrt_name,last_name)") //multiple tables maybe need bring the table name
private String fullname;
--> select CONCAT(fisrt_name,last_name) as fullname
map field name and column name,but can not transform to where part
eg:
@ JustFetch("name")
private String name2;
-->select name as name2
eg:(since 2.1.8)
TestUser.java
@JustFetch() //Only obtain values, do not transfer fields to select/where.
private String count1;
Condition condition=BF.getCondition();
condition.selectFun(FunctionType.COUNT, "*", "count1");
condition.selectField("lastName");
condition.groupBy("lastName");
List
public abstract String value
Copyright © 2023. All rights reserved.