OneToMany, ManyToOne 테스트
@NoArgsConstructor@AllArgsConstructor@Getter@Entitypublic class Nationality { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(unique = true) private String name; @OneToMany private List players; @Enumerated(EnumType.STRING) private Continent continent;}@Getter@NoArgsConstructor@AllArgsConstructor@Entitypublic class Player { @Id @G..
2024.09.16