onetoone « Relationship « JPA Q&A





1. What is the significance of specifying a relationship as 'One to One' in JPA?    stackoverflow.com

i created a class

@Entity
public class **Department** implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String name;
 ...