Chapter 3. Basic Annotations
In this chapter, we will cover the following recipes:
- Declaring a class as an entity and creating a table in the database –
@Entity
and@Table
- Creating a column in the table –
@Column
- Creating a primary key and composite primary key column –
@Id
and@IdClass
- Creating an
autogenerator
column