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)

Implementing data repositories

A repository, for the purposes of this book, is a class that includes all or some of the CRUD operations (Create, Read, Update, and Delete). Repositories encapsulate persistence details in an application. A repository holds the means to the domain model (or entities).

More precisely, a domain model includes not only data, but also behavior. Another term used widely is data transfer object (DTO). Although the original definition of DTO was intended to describe a way to transport data between processes, many architectures (inaccurately) define DTO as an object that carries data between software components in the same process. To complicate things even more, there are value objects (objects that are equal if their properties are equal), and entities (objects that are equal based on their identity, which can be defined by a single property). When documenting...