I understand that this is very specific for a particular application, but I'm just wondering what is the general opinion or, at least, personal experience in this matter.
I have an aversion to the "open session in view" template, so to avoid this, I am thinking about simply getting everything you want with ease and using service level queries to get more material.
Has anyone used this and regretted it? And maybe some elegant solution for lazy loading in a presentation layer that I don't know about?
, (, , ), , , (, ).
, , .
, , . :
-
(Referrer Referree)
, ? , , , , , .
:
" PersonA", PersonA 3 , 3 : PersonB, PersonC PersonD.
, Eager- , JPA 3 Person. PersonC 10 , . JPA 10 , - .
, . , , , getReferrals().
. , - .
JPA Lazy. , ...(), POJO JPA .
Source: https://habr.com/ru/post/1742616/More articles:Choosing custom XML tags with phpQuery - xmlСписок неинтересных слов - text-processingPHP УДАЛИТЬ сразу после выбора - phpIs it faster to use a complex boolean to restrict the ResultSet at the end of MySQL or at the end of Java? - javaBuilding on all windows on X11 - user-interfaceanother explanation is phpUsing System.Net.Mail.SendAsync at the same time? - vb.netFill in various string values in different Excel 2007 cells using VBA - arraysAre entry points to different URLs possible? - gwtCreating a 2d matrix from an array (java) - javaAll Articles