Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

gaarason/database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

database

Eloquent ORM for Java

此项目已迁移至database-all,包含database-spring-boot-starter更方便集成

目录

  • 如果希望以如下的方式在程序中查询数据, 那么这个项目不会让你失望 !
// 查询id为4的一条数据
Student student = studentModel.find("4").toObject();

// select id,name from student where id=3 or(age>11 and id=7 and(id between 4 and 10 and age>11))
List<Student> Students = studentModel.newQuery().where("id", "3").orWhere(
    builder -> builder.where("age", ">", "11").where("id", "7").andWhere(
        builder2 -> builder2.whereBetween("id", "4", "10").where("age", ">", "11")
    )
).select("id", "name").get().toObjectList();

About

【close】Eloquent ORM for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published