{"id":64501,"date":"2026-04-02T14:30:06","date_gmt":"2026-04-02T11:30:06","guid":{"rendered":"https:\/\/rss.eground-zerkalo.com\/?p=64501"},"modified":"2026-04-02T14:30:06","modified_gmt":"2026-04-02T11:30:06","slug":"%d0%bf%d1%80%d0%be%d0%b4%d0%b2%d0%b8%d0%bd%d1%83%d1%82%d1%8b%d0%b9-hibernate-%d1%80%d0%b5%d1%88%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b2%d1%8b%d0%b7%d0%be%d0%b2%d0%be%d0%b2-%d1%83%d1%80%d0%be%d0%b2%d0%bd%d1%8f","status":"publish","type":"post","link":"https:\/\/rss.eground-zerkalo.com\/?p=64501","title":{"rendered":"\u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 Hibernate: \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0443\u0440\u043e\u0432\u043d\u044f Enterprise [Spring \u0410\u0439\u041e] [\u041f\u043e\u043b\u0438\u0432\u0430\u0445\u0430 \u041c\u0438\u0445\u0430\u0438\u043b]"},"content":{"rendered":"<h2 class=\"\">\u0421\u043a\u043b\u0430\u0434\u0447\u0438\u043d\u0430: \u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 Hibernate: \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0443\u0440\u043e\u0432\u043d\u044f Enterprise [Spring \u0410\u0439\u041e] [\u041f\u043e\u043b\u0438\u0432\u0430\u0445\u0430 \u041c\u0438\u0445\u0430\u0438\u043b]<\/h2>\n<p> \t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/v32.skladchik.org\/proxy.php?image=https%3A%2F%2Fi127.fastpic.org%2Fbig%2F2026%2F0402%2F9f%2Fea182280d008e33f600c4776bd46bc9f.png&amp;hash=04cc0798327d8484e774916bd29a99bd\" class=\"bbCodeImage LbImage\" data-url=\"https:\/\/i127.fastpic.org\/big\/2026\/0402\/9f\/ea182280d008e33f600c4776bd46bc9f.png\" alt=\"[&#x200B;IMG]\" \/> <\/p>\n<p> <b>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043a\u0443\u0440\u0441\u0430<\/b><\/p>\n<p> <b>\u0411\u043b\u043e\u043a 1<\/b><br \/> \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438: \u043e\u0442 \u0431\u0430\u0437\u044b \u043a \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u043e\u043c\u0443 \u0442\u044e\u043d\u0438\u043d\u0433\u0443<br \/> \u0426\u0435\u043b\u044c: \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u00ab\u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0435\u00bb, \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e \u0437\u0430\u0432\u0442\u0440\u0430<\/p>\n<p> -findById vs getReferenceById (Proxy)<br \/> \u041c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e SELECT \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0441\u0432\u044f\u0437\u0435\u0439 \u043d\u0430 \u0440\u043e\u0432\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435<\/p>\n<p> -Page vs Slice vs List<br \/> \u0420\u0430\u0437\u0431\u043e\u0440 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439, \u043a\u043e\u0433\u0434\u0430 count(*) \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u043e\u0441\u043a\u043e\u0448\u044c\u044e<\/p>\n<p> -@BatchSize<br \/> \u041b\u0435\u0447\u0435\u043d\u0438\u0435 N+1 \u0432 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 JOIN FETCH \u043b\u0438\u0431\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d, \u043b\u0438\u0431\u043e \u043e\u0442 \u043d\u0435\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u0434\u0430, \u0447\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u044b<\/p>\n<p> -StatelessSession<br \/> Bulk-\u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u043e\u0431\u0445\u043e\u0434 Persistence Context, \u0431\u0435\u0437 dirty checking \u0438 L1 cache<\/p>\n<p> -Pagination evolution<br \/> \u041f\u043e\u0447\u0435\u043c\u0443 OFFSET \u0443\u0431\u0438\u0432\u0430\u0435\u0442 \u0411\u0414. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<br \/> Keyset (Seek-based) pagination. \u0420\u0430\u0437\u0431\u043e\u0440 \u043a\u0435\u0439\u0441\u043e\u0432, \u043a\u043e\u0433\u0434\u0430 Keyset pagination \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0441\u0432\u0435\u0447<\/p>\n<p> -Heavy columnsCLOB\/BLOB, @DynamicUpdate \u0438 bytecode enhancement \u0434\u043b\u044f \u043b\u0435\u043d\u0438\u0432\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/p>\n<p> <b>\u0411\u043b\u043e\u043a 2<\/b><br \/> \u041f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u043d\u0438\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 ORM: \u043c\u0430\u043f\u043f\u0438\u043d\u0433 \u0438 \u0432\u044b\u0431\u043e\u0440\u043a\u0438<br \/> \u0426\u0435\u043b\u044c: framework \u0434\u043b\u044f \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 ORM\/Hibernate<\/p>\n<p> -Pageable + FETCH JOIN<br \/> \u041c\u0438\u043d\u0430 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (in-memory pagination), \u0434\u0432\u0443\u0445\u044d\u0442\u0430\u043f\u043d\u0430\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0430 \u0438 DTO-\u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0438<\/p>\n<p> -MultipleBagFetchException<br \/> \u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f fetch \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439, List \u2192 Set: \u043f\u043b\u044e\u0441\u044b \u0438 \u0441\u043a\u0440\u044b\u0442\u044b\u0435 \u0440\u0438\u0441\u043a\u0438 \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b<\/p>\n<p> <b>\u0411\u043b\u043e\u043a 3<\/b><br \/> Enterprise-\u043a\u0435\u0439\u0441\u044b: \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0438 big data<br \/> \u0426\u0435\u043b\u044c: \u0440\u0430\u0437\u0431\u043e\u0440 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 enterprise \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/p>\n<p> -Soft Delete<br \/> \u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Soft Delete \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Hibernate.\u0421\u043a\u0440\u044b\u0442\u044b\u0435 \u0440\u0438\u0441\u043a\u0438 @SoftDelete<br \/> -Gigantic Collections <br \/> \u041a\u0430\u043a \u0436\u0438\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432 @OneToMany \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u043e\u0442\u043d\u0438 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0442\u044b\u0441\u044f\u0447\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432: \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0442\u0443\u0442 \u0430\u043d\u0442\u0438\u043f\u0430\u0442\u0442\u0435\u0440\u043d<br \/> -Transactional Outbox<br \/> \u0414\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0432 Kafka\/RabbitMQ \u0431\u0435\u0437 XA, polling publisher \u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0432 \u0411\u0414<\/p>\n<p> -\u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0418\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0432 \u0411\u0414<br \/> \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u043e\u0432 \u0438 \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0432 \u0411\u0414. Adjacency List vs Materialized Path, Recursive CTE \u0438\u043c\u0430\u043f\u043f\u0438\u043d\u0433 \u0432 JPA<\/p>\n<p> -Multi-tenancy \u0432 2026<br \/> \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0430\u044f multi-tenancy \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430. @TenantId \u0432 Hibernate 6, \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 shared\/separate schema\/db, TenantResolver \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u0438<\/p>\n<p> \u0426\u0435\u043d\u0430: 29 999<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043a\u043b\u0430\u0434\u0447\u0438\u043d\u0430: \u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 Hibernate: \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0443\u0440\u043e\u0432\u043d\u044f Enterprise [Spring \u0410\u0439\u041e] [\u041f\u043e\u043b\u0438\u0432\u0430\u0445\u0430 \u041c\u0438\u0445\u0430\u0438\u043b] \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043a\u0443\u0440\u0441\u0430 \u0411\u043b\u043e\u043a 1 \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438: \u043e\u0442 \u0431\u0430\u0437\u044b \u043a \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u043e\u043c\u0443 \u0442\u044e\u043d\u0438\u043d\u0433\u0443 \u0426\u0435\u043b\u044c: \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u00ab\u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0435\u00bb, \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e \u0437\u0430\u0432\u0442\u0440\u0430 -findById vs getReferenceById (Proxy) \u041c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e SELECT \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0441\u0432\u044f\u0437\u0435\u0439 \u043d\u0430 \u0440\u043e\u0432\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 -Page vs Slice vs List \u0420\u0430\u0437\u0431\u043e\u0440 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439, \u043a\u043e\u0433\u0434\u0430 count(*) \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u043e\u0441\u043a\u043e\u0448\u044c\u044e -@BatchSize \u041b\u0435\u0447\u0435\u043d\u0438\u0435 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-64501","post","type-post","status-publish","format-standard","hentry","category-rss"],"_links":{"self":[{"href":"https:\/\/rss.eground-zerkalo.com\/index.php?rest_route=\/wp\/v2\/posts\/64501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rss.eground-zerkalo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rss.eground-zerkalo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rss.eground-zerkalo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rss.eground-zerkalo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64501"}],"version-history":[{"count":0,"href":"https:\/\/rss.eground-zerkalo.com\/index.php?rest_route=\/wp\/v2\/posts\/64501\/revisions"}],"wp:attachment":[{"href":"https:\/\/rss.eground-zerkalo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rss.eground-zerkalo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=64501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rss.eground-zerkalo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=64501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}