|
@@ -46,7 +46,7 @@ public class QueryWrapper<T> extends AbstractWrapper<T, String, QueryWrapper<T>>
|
|
private final SharedString sqlSelect = new SharedString();
|
|
private final SharedString sqlSelect = new SharedString();
|
|
|
|
|
|
public QueryWrapper() {
|
|
public QueryWrapper() {
|
|
- this(null);
|
|
|
|
|
|
+ this((T) null);
|
|
}
|
|
}
|
|
|
|
|
|
public QueryWrapper(T entity) {
|
|
public QueryWrapper(T entity) {
|
|
@@ -54,6 +54,11 @@ public class QueryWrapper<T> extends AbstractWrapper<T, String, QueryWrapper<T>>
|
|
super.initNeed();
|
|
super.initNeed();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public QueryWrapper(Class<T> entityClass) {
|
|
|
|
+ super.setEntityClass(entityClass);
|
|
|
|
+ super.initNeed();
|
|
|
|
+ }
|
|
|
|
+
|
|
public QueryWrapper(T entity, String... columns) {
|
|
public QueryWrapper(T entity, String... columns) {
|
|
super.setEntity(entity);
|
|
super.setEntity(entity);
|
|
super.initNeed();
|
|
super.initNeed();
|