Book Image

Data-Centric Applications with Vaadin 8

By : Alejandro Duarte
Book Image

Data-Centric Applications with Vaadin 8

By: Alejandro Duarte

Overview of this book

Vaadin is an open-source Java framework used to build modern user interfaces. Vaadin 8 simplifies application development and improves user experience. The book begins with an overview of the architecture of Vaadin applications and the way you can organize your code in modules.Then it moves to the more advanced topics about advanced topics such as internationalization, authentication, authorization, and database connectivity. The book also teaches you how to implement CRUD views, how to generate printable reports, and how to manage data with lazy loading. By the end of this book you will be able to architect, implement, and deploy stunning Vaadin applications, and have the knowledge to master web development with Vaadin.
Table of Contents (11 chapters)

Using object-relational mapping frameworks

In a relational database, data is represented as tables. In a Java program, data is represented as objects. For example, if you have data related to customers, you can store this data in a customers table. Similarly, you can store this data in objects which are instances of the Customer class. Object-relational mapping frameworks allow you to convert the data between these two systems.

We already learned how to fetch data via JDBC and the ResultSet interface in the previous chapter. You could take an instance of this interface, iterate over the rows, and manually set the fields of a Java class such as Customer. When you do so, you are doing the job of an ORM framework. Why reinvent the wheel? The Java ecosystem offers several options to fix the object-relational impedance mismatch. In the following sections, we'll examine three of...