Spring Oxygen is rapid development integration framework for Spring. Important statement, enterprise-level development is recommended to be used with caution! For instructions on use, please check the Wiki carefully. Welcome to develop and maintain together, please follow the github development specification.
- for Gradle
dependencies {
implementation 'com.isxcode.oxygen:oxygen-spring-boot-starter:0.0.1'
}
- for Maven
<dependency>
<groupId>com.isxcode.oxygen</groupId>
<artifactId>oxygen-spring-boot-starter</artifactId>
<version>0.0.1</version>
</dependency>
import com.ispong.oxygen.flysql.pojo.enums.OrderType;
import org.springframework.stereotype.Repository;
import com.ispong.oxygen.flysql.core.Flysql;
import java.util.List;
@Repository
public class LeoDogsRepository {
public List<LeoDogsEntity> customQuery() {
return Flysql.select(LeoDogsEntity.class)
.select("name", "age", "color")
.eq("name", "alen")
.between("age", 12, 20)
.like("color", "red")
.orderBy("userIndex", OrderType.DESC)
.query();
}
}