📖 ORM

    Kotlin 에서의 JPA Builder

    미리 결론 - Kotlin에서는 Builder를 사용하지 않아도 된다. Java @Entity public class Test { private String name; private String password; @Builder public Test(String name, String password) { this.name = name; this.content = content; } } Test test = new Test("stir", "1234"); //생성자 방식 Test.Builder().name("stir").password("1234") //Builder 방식 자바 진영에서는 생성자로 Entity Class에 값을 할당하는 방식()이 명시적이지 않기 때문에 보통 Builder를 사용한다. Ko..