O'Reilly logo

The Cucumber for Java Book by Seb Rose, Matt Wynne, Aslak Hellesoy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Iterative Database Development

Many ORMs are available to connect your data model to a database, or you could roll your own using JDBC, JPA, or something similar. In this chapter we’re going to use ActiveJDBC,[44] which allows us to connect to an existing database with just a few lines of Java code. ActiveJDBC provides the same, consistent interface to every relational database that it talks to and (as of this writing) has drivers for MySQL, PostgreSQL, Oracle, H2, and Microsoft SQL Server databases.

Because we develop our applications iteratively, we also develop our database schemas iteratively. In this chapter we’ll use a popular tool called Liquibase[45] to help us manage our database as it evolves. This type of tool becomes particularly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required