1
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;
This can help you http://www.ibm.com/support/knowledgecenter/pt-br/SSRTLW_8.0.4/org.eclipse.jpt.doc.user/getting_started004.htm
– R.Santos