Speedment is a Stream ORM Java Toolkit
Open-source Speedment is a Stream ORM Java Toolkit and Runtime. The toolkit analyzes the metadata of an existing legacy SQL database and creates a Java representation of the data model which together with the Speedment runtime allows the user to create scalable and efficient Java applications using standard Java 8 streams without any specific query language or any new API.
Search for an old hare (of age greater than 5):
java
// Searches are optimized in the background!
Optional<Hare> oldHare = hares.stream()
.filter(Hare.AGE.greaterThan(5))
.findAny();
Results in the following SQL query:
sql
SELECT id, name, color, age FROM hare
WHERE (age > 5)
LIMIT 1;
No need for manually writing SQL-queies any more. Remain in a pure Java world!
Check out the documentation on GitHub