Questions tagged [speedment]

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

19 questions
0
votes
1 answer

Asynchronous callback with Speedment Streams

I am running over a slow connection and I want to set up a Speedment Stream with a callback whenever a new entity is available from the database. How do I do that?
0
votes
1 answer

How do I make Speedment regenerate code automatically on build

I have a Speedment project set up but I do not want to run the GUI Tool and I do not want to check in the generated files in my software repository (GIT). How can I make Speedment automatically regenerate all code on build?
0
votes
1 answer

Convert a SQL type into something else in Speedment

When Speedment generates entities from a database schema, is there some way to change the default type being generated? For an example, if I have a table like this: create table comment ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, …
Emil Forslund
  • 549
  • 4
  • 12
-6
votes
2 answers

Select fields from two tables with Speedment

I want to select fields from two tables with Speedment ORM, and show registers by System.out.println. This is my main query: return AMDB.INSTANCE.interface_Manager().stream().filter(Interface_.INTERFACEID.contains(s)) …
Manuel
  • 205
  • 1
  • 4
  • 17
1
2