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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access