The Vaadin Framework is a web framework—a library, if you wish, that helps with web development. You, as a developer, have the opportunity to integrate it with any other Java technology, and in particular, with any persistence technology. Since the most popular technology for persisting data is SQL, this chapter is dedicated to exploring several alternatives to connecting to SQL databases from Vaadin applications.
We will start by studying the concept of object-relational mapping, a technique that allows developers to use an object-oriented programming language to consume and manipulate data in an otherwise incompatible system. We'll then move on to explore three of the most popular Java frameworks used to connect to SQL databases: JPA, MyBatis, and jOOQ. These technologies are widely used in the industry, and it&apos...