JPA

· Server/JPA
문제 Code @Entity @Getter public class Member { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "name", nullable = false) private String userName; private Long age; } @Transactional void test() { Member member = new Member(); member.setName("김이름"); member.setAge(23L); em.persist(member); System.out.println("김이름의 id = " + member.getId()); // } 의문점 JPA는 em.per..
두둥당
'JPA' 태그의 글 목록