In Spring Data JDBC, @Id marks the model field that maps to a table’s primary key, identifying the key Spring Data uses for operations such as retrieval. section 14.3
Listing 14.3 The Account class that models the account table records
public class Account {
@Id #A
private long id;
private String name;
private BigDecimal amount;
// Omitted getters and setters
}The Account model marks its id field with @Id. section 14.3


