Search
Duplicate
โ˜•

hibernate ์ฟผ๋ฆฌ ์‹คํ–‰ ์ˆœ์„œ

1. OrphanRemovalAction
2. AbstractEntityInsertAction
3. EntityUpdateAction
4. QueuedOperationCollectionAction
5. CollectionRemoveAction
6. CollectionUpdateAction
7. CollectionRecreateAction
8. EntityDeleteAction

performExecutions

protected void performExecutions(EventSourceย session)
Plain Text
๋ณต์‚ฌ
Execute all SQL (and second-level cache updates) in a special order so that foreign-key constraints cannot be violated: 1. Inserts, in the order they were performed 2. Updates 3. Deletion of collection elements 4. Insertion of collection elements 5. Deletes, in the order they were performed
delete ๊ฐ€ ๋Šฆ๊ฒŒ ์‹คํ–‰๋˜๋Š” ์ด์œ (entity ์ผ ๋•Œ)
โ€ข
foreign key ์ œ์•ฝ ์กฐ๊ฑด์— ์˜ํ–ฅ์„ ๋ฐ›์„ ์šฐ๋ ค๊ฐ€ ์žˆ๊ธฐ๋•Œ๋ฌธ์— ์ด ์ƒํ™ฉ์„ ๊ณ ๋ คํ•˜์—ฌ ๋Šฆ๊ฒŒ ์‹คํ–‰๋œ๋‹ค.
insert ๊ฐ€ ์ผ์ฐ ์‹คํ–‰๋˜๋Š” ์ด์œ 
โ€ข
auto increment ์ผ ์ˆ˜ ์žˆ๊ธฐ๋•Œ๋ฌธ์— ์ด ์ƒํ™ฉ์„ ๊ณ ๋ คํ•˜์—ฌ ๊ฐ€์žฅ ๋จผ์ € ์‹คํ–‰๋œ๋‹ค.