JPA/JPA 시작하기

이 글은 김영한 님의 Infrean 강의를 학습한 내용을 정리하여 작성합니다. JPA 구동 방식 0. JPA에는 Persistence라는 클래스가 존재하고 여기서 시작한다. 1. MET-INF/persistence.xml 파일의 설정 정보를 읽는다. 2. EntityManagerFactory 클래스를 생성한다. 3. 필요할 때마다 EntityManager를 생성한다. 실습 - JPA 동작 확인 - JpaMain 클래스 생성 - JPA 동작 확인 Persistence 클래스의 createEntityManagerFactory() 메서드의 인자로 persistenceUnitName이 필요하다. 이때, persistenceUnitName은 이전에 persistence.xml 파일에서 생성한 persistence..
이 글은 김영한 님의 Infrean 강의를 학습한 내용을 정리하여 작성합니다. H2 데이터베이스 설치와 실행 - http://www.h2database.com/ H2 Database Engine (redirect) H2 Database Engine Welcome to H2, the free SQL database. The main feature of H2 are: It is free to use for everybody, source code is included Written in Java, but also available as native executable JDBC and (partial) ODBC API Embedded and client/server mo www.h2database.com - ..
개발자가 될 사람
'JPA/JPA 시작하기' 카테고리의 글 목록