Daobab is a Java ORM (Object Relational Mapping) library, allowing to build an SQL as fully object-oriented Java code, which may be used on:
- database
- collections
- buffers
- remotely
Daobab uses Java8 features to recreate the relations between entities into object-oriented code.
public List<Customer> example() {
return db.select(tabCustomer)
.where(and()
.equal(tabCustomer.colActive(), true)
.equal(tabCustomer.colLastName(), "WILSON"))
.limitBy(100)
.orderAscBy(tabCustomer.colLastName())
.findMany();
}
The build requires at least Java 8 JDK as JAVA_HOME.
- daobab-core - Daobab ORM sources