com.github.yulichang.toolkit.MPJWrappers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-plus-join-core Show documentation
Show all versions of mybatis-plus-join-core Show documentation
An enhanced toolkit of Mybatis-Plus to simplify development.
package com.github.yulichang.toolkit;
import com.github.yulichang.query.MPJQueryWrapper;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
/**
* Wrapper 条件构造
*
* @author yulichang
* @see JoinWrappers
*/
@SuppressWarnings("unused")
public class MPJWrappers {
/**
* MPJWrappers.<UserDO>query()
*/
public static MPJQueryWrapper queryJoin() {
return new MPJQueryWrapper<>();
}
public static MPJQueryWrapper queryJoin(T entity) {
return new MPJQueryWrapper<>(entity);
}
public static MPJQueryWrapper queryJoin(Class entityClass) {
return new MPJQueryWrapper<>(entityClass);
}
/**
* MPJWrappers.<UserDO>lambda()
*/
public static MPJLambdaWrapper lambdaJoin() {
return new MPJLambdaWrapper<>();
}
public static MPJLambdaWrapper lambdaJoin(T entity) {
return new MPJLambdaWrapper<>(entity);
}
public static MPJLambdaWrapper lambdaJoin(Class entityClass) {
return new MPJLambdaWrapper<>(entityClass);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy