how to assign a different attribute name for one to one mapping jpa code example
Example 1: jpa mapping
@Column
private String nom;
public void setNom(String n) {nom= n;}
public String getNom() {return nom;}
Example 2: jpa mapping
@Column(name="annee_naissance")
private Integer anneeNaissance;
public void setAnneeNaissance(Integer a) {anneeNaissance = a;}
public Integer getAnneeNaissance() {return anneeNaissance;}