Check out example codes for "hibernate onetone with mapsid". It will help you in understanding the concepts better.

Code Example 1

public class VitalStats 
    @Id @Column(name="vitalstats_id") Long id;

    @OneToOne(mappedBy = "vitalStats")
    @JoinColumn(name = "vitalstats_id")   //same name as id @Column
    private Person person;

    private String stats;

Code Example 2

public class Person {

    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "person_id")
    private Long id;

    @OneToOne(cascade = CascadeType.ALL)
    private VitalStats vitalStats;       

Learn ReactJs, React Native from