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)

The example application

Throughout the chapter, we'll develop a Report Viewer. The following is a screenshot of the finished application:

The data model

The data model is based on a simple SQL table, Call, that contains columns for the ID, client name, phone number, city, start time, duration, and status. The following is a JPA Entity representing this table:

@Entity
@Data
public class Call {

@Id
@GeneratedValue
private Long id;

private String client;

private String phoneNumber;

@Enumerated(EnumType.STRING)
private City city;

private LocalDateTime startTime;

private Integer duration;

@Enumerated(EnumType.STRING)
private Status status;
}

Status and City are simple Java enums that define some...