Setup Entities

Let’s learn how to set up entities by using Spring Data JPA and automatic database schema update.

What is an Entity?

A JPA entity is basically a POJO representing a table in the database.

Similarly, the object of an entity class corresponds to a row in the database table.

Create a TodoType Entity

Let’s learn a few handy annotations to transform a POJO into an entity.

The most common annotations are @Entity and @Id ...