Setup Entities
Let’s learn how to set up entities by using Spring Data JPA and automatic database schema update.
We'll cover the following...
We'll cover the following...
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
:
-
The
@Entity
annotation ...