Spring Data JDBC’s @Column annotation maps a domain property to a named relational database column. Use org.springframework.data.relational.core.mapping.Column, not the JPA-specific javax.persistence.Column. section 15.1
Explicit column mapping
@Table("USERS") public class User { @Id @Column("ID") private Long id; @Column("USERNAME") private String username; @Column("REGISTRATION_DATE") private LocalDate registrationDate; } These properties map to the ID, USERNAME, and REGISTRATION_DATE columns in the USERS table.
When explicit column annotations are omitted, Spring Data JDBC converts camel-case field names to snake-case table-column names. Explicit mappings make the correspondence visible and handle names that do not follow that convention. section 15.1
