Skip to content
Emil Forslund edited this page Mar 6, 2017 · 1 revision

Java 8 introduced a completely new way of working with data in Java with the Stream interface. In these quick-start videos you will see how easy it is to write database applications with Streams by using Speedment to generate the necessary entity and field classes.

(Spoiler: In the third video I explain why the performance will be just as good as a normal JDBC query!)

Part 1: Create a New Speedment Project

Video 1

The following topics are discussed:

  • Creating a new Maven Project
  • Adding the Speedment dependencies and plugin
  • Generating code from a database using default settings

Part 2: Configuration Options in Speedment

Video 2

The following topics are discussed:

  • Regenerating code in existing project
  • Change the table name used in generated code
  • Change the java type used to represent a column

Part 3: How to Query a Database Using Streams

Video 2

The following topics are discussed:

  • Initializing Speedment
  • Querying the database with a Java 8 Stream
  • Logging generated SQL queries to the standard output