We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
엔티티 매니저 팩토리는 Thread-Safe
엔티티 매니저는 Non-Thread-Safe
https://iyoungman.github.io/jpa/EntityManagerFactory-EntityManager-PersistenceContext/
https://medium.com/@SlackBeck/jpa-entitymanager%EC%99%80-%EB%8F%99%EC%8B%9C%EC%84%B1-e30f841fcdf8
엔티티 매니저는 DB 연결이 필요한 시점에 DB 커넥션을 얻는다.
컨테이너 기반에서 JPA를 사용할 경우 EntityManagerFactory 생성 시점에 DB 커넥션풀도 만든다.
식별자
영속성 컨텍스트 -> DB 저장 시점
영속 엔티티가 동일성 보장하는 이유
Member m1 = em.find(Member.class, "member1"); Member m2 = em.find(Member.class, "member1"); m1 == m2//true, 동일성
변경 감지 과정
The text was updated successfully, but these errors were encountered:
No branches or pull requests
엔티티 매니저 팩토리와 엔티티 매니저
엔티티 매니저 팩토리는 Thread-Safe
엔티티 매니저는 Non-Thread-Safe
https://iyoungman.github.io/jpa/EntityManagerFactory-EntityManager-PersistenceContext/
https://medium.com/@SlackBeck/jpa-entitymanager%EC%99%80-%EB%8F%99%EC%8B%9C%EC%84%B1-e30f841fcdf8
엔티티 매니저는 DB 연결이 필요한 시점에 DB 커넥션을 얻는다.
컨테이너 기반에서 JPA를 사용할 경우 EntityManagerFactory 생성 시점에 DB 커넥션풀도 만든다.
엔티티 생명주기
영속성 컨텍스트 특징
식별자
영속성 컨텍스트 -> DB 저장 시점
영속 엔티티가 동일성 보장하는 이유
변경 감지 과정
플러시
The text was updated successfully, but these errors were encountered: