Entity
-
java에서 jpa 사용해보기 _ CRUD (JPA를 사용한 DML처리)JAVA/ORM 2024. 6. 19. 18:37
▤ 목차" data-ke-type="html">HTML 삽입미리보기할 수 없는 소스✔ 기본 환경설정resources 패키지에 META-INF와 logback.xml 파일을 생성하고 필요한 값을 설정해 줬다.META-INF 패키지 안에 persistences 파일을 생성하고 필요한 값을 설정해 줬다. //SangpumCRUD 클래스public class SangpumCRUD { public static void main(String[] args) { EntityManagerFactory emf = Persistence.createEntityManagerFactory("gojpa"); //Factory : 객체를 싱글톤으로 만들고있다. //EntityManager : thread ..