문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
java:hibernate:batch [2018/12/11 16:26] kwon37xi |
java:hibernate:batch [2022/11/13 23:12] kwon37xi [Versioned Data] |
||
---|---|---|---|
줄 5: | 줄 5: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
===== 작동 원리 ===== | ===== 작동 원리 ===== | ||
줄 11: | 줄 12: | ||
* 기본적으로 '' | * 기본적으로 '' | ||
- | ===== 기억할 | + | ===== @Id 에 대한 주의점 ===== |
* '' | * '' | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * 따라서 Batch Insert 를 올바로 작동시키려면 '' | ||
+ | |||
> For IDENTITY columns, Hibernate cannot delay the INSERT statement until flush time because the identifier value can only be generated by executing the statement. | > For IDENTITY columns, Hibernate cannot delay the INSERT statement until flush time because the identifier value can only be generated by executing the statement. | ||
> For this reason, Hibernate disables JDBC batch inserts for entities using the IDENTITY generator strategy. | > For this reason, Hibernate disables JDBC batch inserts for entities using the IDENTITY generator strategy. | ||
+ | ===== 기억할 점 ===== | ||
* batch 옵션은 Hibernate가 직접 Insert 문을 '' | * batch 옵션은 Hibernate가 직접 Insert 문을 '' | ||
* MySQL | * MySQL | ||
줄 59: | 줄 64: | ||
<prop key=" | <prop key=" | ||
</ | </ | ||
+ | |||
+ | ===== Versioned Data ===== | ||
+ | * '' | ||
+ | * 즉, '' | ||
+ | * 기본으로는 자동으로 될 수도 있는데, 일반적으로 '' | ||
+ | * 단, '' | ||
+ | ===== 참조 ===== | ||
+ | * [[https:// | ||