O'Reilly logo

Learning Vaadin by Nicolas Frankel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hibernate

Hibernate, along with EclipseLink (formerly TopLink), is one of the most used Object Relational Mapping in the Java world. Chances are you are already using it and in this case, you will probably want to keep it, this time in conjunction with Vaadin.

Hibernate mappings

Hibernate being an ORM tool, basically maps between a Java class and a table, and their respective attributes and columns.

Seeing is believing

Throughout this section, we will take a simple example. In order to simplify things, we will use the Person/Job example already used in Chapter 7 and update it to use Hibernate.

Job

The following is the source of the Job entity:

package com.packtpub.learnvaadin;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity public ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required