I am creating an entity, and I have a CPF field and this field that is unique, how to map this CPF field?
My entity.
@Entity
public class Client {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long codigo;
private String nome;
private String cpf;
private String telefoneFixo;
private String telefoneCelular;