hibernate-orm/doc/reference/ja/modules/performance.xml

1378 lines
64 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="Shift_JIS"?>
<chapter id="performance">
<title><EFBFBD>p<EFBFBD>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD>̉<EFBFBD><CC89>P</title>
<sect1 id="performance-fetching" revision="2">
<title><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60></title>
<para>
<emphasis><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60></emphasis> <20>́A<CD81>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֘A<D698><41><EFBFBD>i<EFBFBD>r<EFBFBD>Q<EFBFBD>[<5B>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>Ƃ<EFBFBD><C682>ɁAHibernate<74><65><EFBFBD>֘A<D698>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>𕜌<EFBFBD><F0959C8C><EFBFBD><EFBFBD><EFBFBD>߂Ɏg<C98E>p<EFBFBD><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>B<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><EFBFBD><ED97AA>O/R<>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F>
<20><><EFBFBD>^<5E>f<EFBFBD>[<5B>^<5E>ɐ錾<C990><E98CBE><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD>HQL<51>A <literal>Criteria</literal> <20>N<EFBFBD>G<EFBFBD><47><EFBFBD>ŃI<C583>[<5B>o<EFBFBD>[<5B><><EFBFBD>C<EFBFBD>h<EFBFBD><68><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
Hibernate3<65>͎<EFBFBD><CD8E>Ɏ<EFBFBD><C98E><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><EFBFBD><ED97AA><EFBFBD><EFBFBD><EFBFBD>`<60><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para>
<emphasis><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - Hibernate<74><65> <literal>OUTER JOIN</literal> <20><><EFBFBD>g<EFBFBD><67><EFBFBD>āA
<20>֘A<D698><41><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P<EFBFBD>‚<EFBFBD> <literal>SELECT</literal>
<20>ŕ<EFBFBD><C595><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
</listitem>
<listitem>
<para>
<emphasis><EFBFBD>Z<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>g<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - 2<><32><EFBFBD>ڂ<EFBFBD> <literal>SELECT</literal>
<20>Ŋ֘A<D698><41><EFBFBD><EFBFBD><EFBFBD>G<EFBFBD><47><EFBFBD>e<EFBFBD>B<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>𕜌<EFBFBD><F0959C8C><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B <literal>lazy="false"</literal>
<20>Ŗ<EFBFBD><C596><EFBFBD><EFBFBD>I<EFBFBD>ɒx<C992><78><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>𖳌<EFBFBD><F096B38C>ɂ<EFBFBD><C982>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΁A<CE81><41><EFBFBD><EFBFBD>2<EFBFBD><32><EFBFBD>ڂ<EFBFBD>select<63>͎<EFBFBD><CD8E>ۂ<EFBFBD>
<20>֘A<D698>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>̂ݎ<CC82><DD8E>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD>B
</para>
</listitem>
<listitem>
<para>
<emphasis><EFBFBD>T<EFBFBD>u<EFBFBD>Z<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>g<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - 2<><32><EFBFBD>ڂ<EFBFBD> <literal>SELECT</literal>
<20>ŁA<C581><41><EFBFBD>O<EFBFBD>̃N<CC83>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>ŕ<EFBFBD><C595><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ׂĂ̗v<CC97>f<EFBFBD>Ɋ֘A<D698><41><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B <literal>lazy="false"</literal>
<20>Ŗ<EFBFBD><C596><EFBFBD><EFBFBD>I<EFBFBD>ɒx<C992><78><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>𖳌<EFBFBD><F096B38C>ɂ<EFBFBD><C982>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΁A<CE81><41><EFBFBD><EFBFBD>2<EFBFBD><32><EFBFBD>ڂ<EFBFBD>select<63>͎<EFBFBD><CD8E>ۂ<EFBFBD>
<20>֘A<D698>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>̂ݎ<CC82><DD8E>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD>B
</para>
</listitem>
<listitem>
<para>
<emphasis><EFBFBD>o<EFBFBD>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - <20>Z<EFBFBD><5A><EFBFBD>N<EFBFBD>g<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>̂<EFBFBD><CC82>߂̍œK<C593><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
- Hibernate<74>̓G<CD83><47><EFBFBD>e<EFBFBD>B<EFBFBD>e<EFBFBD>B<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̈<EFBFBD><CC88>Q<EFBFBD><51>1<EFBFBD><31><EFBFBD><EFBFBD>
<literal>SELECT</literal> <20>ŕ<EFBFBD><C595><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>͎<EFBFBD><CD8E>L<EFBFBD>[<5B><><EFBFBD>O<EFBFBD><4F><EFBFBD>L<EFBFBD>[<5B>̃<EFBFBD><CC83>X<EFBFBD>g<EFBFBD><67><EFBFBD>w<EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD>
<20>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B
</para>
</listitem>
</itemizedlist>
<para>
Hibernate<74>͎<EFBFBD><CD8E>Ɏ<EFBFBD><C98E><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>ʂ<EFBFBD><CA82><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para>
<emphasis><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - <20><><EFBFBD>L<EFBFBD>҂̃I<CC83>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɁA
<20>֘A<D698>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>͑<EFBFBD><CD91><EFBFBD><EFBFBD>Ƀt<C983>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
</listitem>
<listitem>
<para>
<emphasis><EFBFBD>x<EFBFBD><EFBFBD><EFBFBD>R<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - <20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>΂<EFBFBD><CE82>đ<EFBFBD><C491><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɃR<C983><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>܂<EFBFBD><DC82>B
(<28><><EFBFBD><EFBFBD><EFBFBD>̓R<CD83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɑ΂<C991><CE82><EFBFBD><EFBFBD>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>̓<EFBFBD><CC93><EFBFBD><EFBFBD>ł<EFBFBD>)
</para>
</listitem>
<listitem>
<para>
<emphasis>"<22><><EFBFBD>ʂȒx<C892><78>"<22>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - <20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̗v<CC97>f
<20>P<EFBFBD>‚P<C282>‚<EFBFBD><C282>Ɨ<EFBFBD><C697><EFBFBD><EFBFBD>āA<C481>K<EFBFBD>v<EFBFBD>ȂƂ<C882><C682>Ƀf<C983>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E693BE><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
Hibernate<74>͕K<CD95>v<EFBFBD>Ȃ<EFBFBD><C882>Ȃ<EFBFBD><C882>΁A<CE81>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>S<EFBFBD>̂<EFBFBD><CC82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƀt<C983>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD>Ƃ<EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>i<EFBFBD>ƂĂ<C682><C482><EFBFBD>ȃR<C883><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɓK<C993><4B><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>j<EFBFBD>B
</para>
</listitem>
<listitem>
<para>
<emphasis><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>L<EFBFBD>V<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - <20>P<EFBFBD><50><EFBFBD>l<EFBFBD>֘A<D698>́A<CD81><41><EFBFBD>ʎq<CA8E><71>getter<65>ȊO<C88A><4F>
<20><><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68><EFBFBD>֘A<D698>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>ŌĂяo<D18F><6F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>Ƀt<C983>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
</listitem>
<listitem>
<para>
<emphasis>"<22>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD>Ȃ<EFBFBD>"<22>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - <20>P<EFBFBD><50><EFBFBD>l<EFBFBD>֘A<D698>́A<CD81>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD>ϐ<EFBFBD><CF90><EFBFBD>
<20>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>Ƀt<C983>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>Ɣ<EFBFBD><C694>r<EFBFBD><72><EFBFBD><EFBFBD><EFBFBD>ƁA<C681><41><EFBFBD>̕<EFBFBD><CC95>@<40><>
<20>x<EFBFBD><78><EFBFBD>̓x<CC93><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>i<EFBFBD>֘A<D698>͎<EFBFBD><CD8E>ʎq<CA8E>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>j
<20>ł<EFBFBD><C582><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD>ߓI<DF93>ŁA<C581>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>Ƀv<C983><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>݂<EFBFBD><DD82>Ȃ<EFBFBD><C882><EFBFBD>Ɍ<EFBFBD><C98C><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD>̕<EFBFBD><CC95>@<40>̓r<CD83><72><EFBFBD>h<EFBFBD><68><EFBFBD>̃o<CC83>C<EFBFBD>g<EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>g<EFBFBD>ݍ<EFBFBD><DD8D>݂<EFBFBD><DD82>K<EFBFBD>v<EFBFBD>ɂȂ<C982><C882>A<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>ʂ͂܂<CD82><DC82>ł<EFBFBD><C582>B
</para>
</listitem>
<listitem>
<para>
<emphasis><EFBFBD>x<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</emphasis> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P<EFBFBD><50><EFBFBD>l<EFBFBD>֘A<D698>́A<CD81>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD>ϐ<EFBFBD><CF90>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>
<20>Ƃ<EFBFBD><C682>Ƀt<C983>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>̕<EFBFBD><CC95>@<40>̓r<CD83><72><EFBFBD>h<EFBFBD><68><EFBFBD>̃o<CC83>C<EFBFBD>g<EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>g<EFBFBD>ݍ<EFBFBD><DD8D>݂<EFBFBD><DD82>K<EFBFBD>v<EFBFBD>ɂȂ<C982><C882>A
<20>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>ʂ͂܂<CD82><DC82>ł<EFBFBD><C582>B
</para>
</listitem>
</itemizedlist>
<para>
<20><><EFBFBD>‚̒<C282><CC92>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>T<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD>: <emphasis><EFBFBD><EFBFBD><EFBFBD><EFBFBD></emphasis> <20>֘A<D698><41><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD>A
<20><><EFBFBD><EFBFBD><EFBFBD>āA <emphasis><EFBFBD>ǂ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></emphasis> <20>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD>i<EFBFBD>ǂ<EFBFBD><C782><EFBFBD>SQL<51><4C><EFBFBD>g<EFBFBD><67><EFBFBD>āj<C481>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>ł<EFBFBD><C582><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I <literal>fetch</literal> <20>̓p<CD83>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD>`<60><><EFBFBD>[<5B>j<EFBFBD><6A><EFBFBD>O<EFBFBD>Ɏg<C98E><67><EFBFBD>܂<EFBFBD><DC82>B
<literal>lazy</literal> <20>͂<EFBFBD><CD82><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̕<EFBFBD><CC95><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD>̂<EFBFBD><CC82><EFBFBD><EFBFBD>A<EFBFBD>ǂ̃f<CC83>[<5B>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>g<EFBFBD>p<EFBFBD>”\<5C>ɂ<EFBFBD><C982><EFBFBD>̎<EFBFBD><CC8E><EFBFBD>߂<EFBFBD><DF82><EFBFBD><EFBFBD>`<60><><EFBFBD>܂<EFBFBD><DC82>B
</para>
<sect2 id="performance-fetching-lazy">
<title><EFBFBD>x<EFBFBD><EFBFBD><EFBFBD>֘A<EFBFBD>̓<EFBFBD><EFBFBD><EFBFBD></title>
<para>
<20>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>ł́AHibernate3<65>̓R<CD83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɑ΂<C991><CE82>Ă͒x<CD92><78><EFBFBD>Z<EFBFBD><5A><EFBFBD>N<EFBFBD>g<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>g<EFBFBD><67><EFBFBD>A
<20>P<EFBFBD><50><EFBFBD>l<EFBFBD>֘A<D698>ɂ͒x<CD92><78><EFBFBD>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>g<EFBFBD><67><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃f<CC83>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>͂قڂ<D982><DA82>ׂĂ<D782>
<20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̂قڂ<D982><DA82>ׂĂ̊֘A<D698>ňӖ<C588><D396><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<emphasis><EFBFBD><EFBFBD>:</emphasis>
<literal>hibernate.default_batch_fetch_size</literal> <20><><EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>́AHibernate<74><65>
<20>x<EFBFBD><78><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>̂<EFBFBD><CC82>߂̃o<CC83>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>œK<C593><4B><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>ł<EFBFBD><C582>
<20>i<EFBFBD><69><EFBFBD>̍œK<C593><4B><EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD>ׂ<EFBFBD><D782><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD>ŗL<C597><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>j<EFBFBD>B
</para>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>x<EFBFBD><78><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>͒m<CD92><6D><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>‚̖<C282><CC96><EFBFBD><E882AA><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
Hibernate<74><65>session<6F><6E><EFBFBD>I<EFBFBD>[<5B>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>R<EFBFBD><52><EFBFBD>e<EFBFBD>L<EFBFBD>X<EFBFBD>g<EFBFBD>̊O<CC8A><4F><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD>֘A<D698>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>ƁA
<20><><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>F
</para>
<programlisting><![CDATA[s = sessions.openSession();
Transaction tx = s.beginTransaction();
User u = (User) s.createQuery("from User u where u.name=:userName")
.setString("userName", userName).uniqueResult();
Map permissions = u.getPermissions();
tx.commit();
s.close();
Integer accessLevel = (Integer) permissions.get("accounts"); // Error!]]></programlisting>
<para>
<literal>Session</literal> <20><><EFBFBD>N<EFBFBD><4E><EFBFBD>[<5B>Y<EFBFBD><59><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>Apermissions<6E>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>߁A<DF81><41><EFBFBD>̃R<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>͎<EFBFBD><CD8E>g<EFBFBD>̏<EFBFBD><CC8F>Ԃ<EFBFBD><D482><EFBFBD><EFBFBD>[<5B>h<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<emphasis>Hibernate<EFBFBD>͐؂藣<EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>̒x<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̓T<EFBFBD>|<7C>[<5B>g
<20><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82><EFBFBD></emphasis> <20>B<EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>@<40>Ƃ<EFBFBD><C682>āA<C481>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǂݍ<C782><DD8D>݂<EFBFBD><DD82>s<EFBFBD><73><EFBFBD>R<EFBFBD>[<5B>h<EFBFBD><68>
<20>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>~<7E>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>O<EFBFBD>Ɉړ<C988><DA93><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD>ŁA <literal>lazy="false"</literal> <20><><EFBFBD>֘A<D698>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>Ɏw<C98E><EFBFBD><EFBFBD>ƂŁA
<20>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֘A<D698><41><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>A<EFBFBD>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͂قڂ<D982><DA82>ׂẴR<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֘A<D698>Ŏg<C58E><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD>
<20>Ӑ}<7D><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>̃I<CC83>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>f<EFBFBD><66><EFBFBD>̒<EFBFBD><CC92>ɒx<C992><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>֘A<D698><41>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>`<60><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>ƁAHibernate<74>͍ŏI<C58F>I<EFBFBD>ɂ̓g<CD83><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>قڊ<D982><DA8A>S<EFBFBD>ȃf<C883>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̒<EFBFBD><CC92>Ƀt<C983>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD>ƂɂȂ<C982><C882>ł<EFBFBD><C582><EFBFBD>I
</para>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD>ł́A<CD81><41><EFBFBD><EFBFBD><EFBFBD>̃g<CC83><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ăZ<C483><5A><EFBFBD>N<EFBFBD>g<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>̑<EFBFBD><CC91><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>i<EFBFBD><69><EFBFBD>R<EFBFBD><52><EFBFBD><EFBFBD><EFBFBD>͒x<CD92><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł͂Ȃ<CD82><C882>Ȃ<EFBFBD><C882>܂<EFBFBD><DC82>j<EFBFBD><6A><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD>
<20><><EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EA82A9><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><EFBFBD><ED97AA><EFBFBD>J<EFBFBD>X<EFBFBD>^<5E>}<7D>C<EFBFBD>Y<EFBFBD><59><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
Hibernate3<65>ł́A<CD81>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><EFBFBD><ED97AA><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>d<EFBFBD>g<EFBFBD>݂͒P<CD92><50><EFBFBD>l<EFBFBD>֘A<D698>ƃR<C683><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>ς<EFBFBD><CF82><EFBFBD><EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
</sect2>
<sect2 id="performance-fetching-custom" revision="4">
<title><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><EFBFBD>̃`<60><><EFBFBD>[<5B>j<EFBFBD><6A><EFBFBD>O</title>
<para>
<20>Z<EFBFBD><5A><EFBFBD>N<EFBFBD>g<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>i<EFBFBD>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>j<EFBFBD><6A>N+1<>Z<EFBFBD><5A><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD>Ȏ<EFBFBD><C88E>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߁A
<20>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F><EFBFBD>`<60>Ō<EFBFBD><C58C><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[<set name="permissions"
fetch="join">
<key column="userId"/>
<one-to-many class="Permission"/>
</set]]></programlisting>
<programlisting><![CDATA[<many-to-one name="mother" class="Cat" fetch="join"/>]]></programlisting>
<para>
<20>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F><EFBFBD>`<60>Œ<EFBFBD><C592>`<60><><EFBFBD><EFBFBD> <literal><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`</literal> <20><EFBFBD>͎<EFBFBD><CD8E>̂<EFBFBD><CC82>̂ɉe<C989><65><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para>
<literal>get()</literal> <20><> <literal>load()</literal> <20>ɂ<EFBFBD><C982><EFBFBD><E9959C>
</para>
</listitem>
<listitem>
<para>
<20>֘A<D698>Ƀi<C983>r<EFBFBD>Q<EFBFBD>[<5B>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɔ<EFBFBD><C994><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ÖٓI<D993>ȕ<EFBFBD><C895><EFBFBD>
</para>
</listitem>
<listitem>
<para>
<literal>Criteria</literal> <20>N<EFBFBD>G<EFBFBD><47>
</para>
</listitem>
<listitem>
<para>
<literal><EFBFBD>T<EFBFBD>u<EFBFBD>Z<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>g</literal> <20>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>g<EFBFBD><67>HQL<51>N<EFBFBD>G<EFBFBD><47>
</para>
</listitem>
</itemizedlist>
<para>
<20><><EFBFBD>Ƃ<EFBFBD><C682>ǂ<EFBFBD><C782>ȃt<C883>F<EFBFBD>b<EFBFBD>`<60><EFBFBD><ED97AA><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>Ă<EFBFBD><C482>A<EFBFBD>x<EFBFBD><78><EFBFBD>ł͂Ȃ<CD82><C882>O<EFBFBD><4F><EFBFBD>t<EFBFBD>̓<EFBFBD><CD83><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɓǂݍ<C782><DD8D>܂<EFBFBD><DC82><EFBFBD>Ƃ<EFBFBD>
<20>ۏ؂<DB8F><D882><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>‚܂<C282><DC82>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD>HQL<51>N<EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD>߂ɂ<DF82><C982><EFBFBD><EFBFBD>‚<EFBFBD><C282><EFBFBD>SELECT<43><54><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂Œ<CC82><C592>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
</para>
<para>
<20>ʏ<EFBFBD><CA8F>́A<CD81>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F><EFBFBD>`<60>Ńt<C583>F<EFBFBD>b<EFBFBD>`<60>̃J<CC83>X<EFBFBD>^<5E>}<7D>C<EFBFBD>Y<EFBFBD>͍s<CD8D><73><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɁA<C981>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>̓<EFBFBD><CC93><EFBFBD><EFBFBD>̂܂܂ɂ<DC82><C982>Ă<EFBFBD><C482><EFBFBD><EFBFBD>āAHQL<51><4C> <literal>left join fetch</literal> <20><>
<20>w<EFBFBD><EFBFBD><EFBFBD>Ƃœ<C682><C593><EFBFBD><EFBFBD>̃g<CC83><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>œ<EFBFBD><C593><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>[<5B>o<EFBFBD>[<5B><><EFBFBD>C<EFBFBD>h<EFBFBD><68><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Hibernate<74>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD>̃Z<CC83><5A><EFBFBD>N<EFBFBD>g<EFBFBD>ŊO<C58A><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>Ċ֘A<D698><41><EFBFBD><EFBFBD><EFBFBD>Ƀt<C983>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ɏw<C98E><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
<literal>Criteria</literal> <20>N<EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD>API<50>ł́A
<literal>setFetchMode(FetchMode.JOIN)</literal> <20><><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<20><><EFBFBD><EFBFBD> <literal>get()</literal> <20><> <literal>load()</literal> <20>Ŏg<C58E><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><EFBFBD><ED97AA><EFBFBD>ς<EFBFBD><CF82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ɗ<EFBFBD><C68A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɂ́A<CD81>P<EFBFBD><50><EFBFBD><EFBFBD>
<literal>Criteria</literal> <20>N<EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>F
</para>
<programlisting><![CDATA[User user = (User) session.createCriteria(User.class)
.setFetchMode("permissions", FetchMode.JOIN)
.add( Restrictions.idEq(userId) )
.uniqueResult();]]></programlisting>
<para>
<20>i<EFBFBD><69><EFBFBD><EFBFBD><EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD>‚<EFBFBD><C282><EFBFBD>ORM<52>\<5C><><EFBFBD><EFBFBD><EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"fetch plan"<22>ƌĂ<C68C><C482>ł<EFBFBD><C582><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂Ɠ<CC82><C693><EFBFBD><EFBFBD>ł<EFBFBD><C582>B<EFBFBD>j
</para>
<para>
N+1<>Z<EFBFBD><5A><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߂̂܂<CC82><DC82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E182A4><EFBFBD>@<40>́A<CD81><41>2<EFBFBD><32><EFBFBD>x<EFBFBD><78><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃł<C682><C582>B
</para>
</sect2>
<sect2 id="performance-fetching-proxies" revision="2">
<title><EFBFBD>P<EFBFBD><EFBFBD><EFBFBD>[<5B>֘A<D698>v<EFBFBD><76><EFBFBD>L<EFBFBD>V</title>
<para>
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̒x<CC92><78><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>́AHibernate<74><65><EFBFBD>g<EFBFBD>̎<EFBFBD><CC8E><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>i<EFBFBD><69><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>P<EFBFBD><50><EFBFBD>[<5B>֘A<D698>ɂ<EFBFBD><C982><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł́A<CD81><EFBFBD>d<EFBFBD>g<EFBFBD>݂<EFBFBD>
<20>K<EFBFBD>v<EFBFBD>ł<EFBFBD><C582>B<EFBFBD>Ώۂ̊֘A<D698>G<EFBFBD><47><EFBFBD>e<EFBFBD>B<EFBFBD>e<EFBFBD>B<EFBFBD>̓v<CD83><76><EFBFBD>L<EFBFBD>V<EFBFBD>łȂ<C582><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>BHibernate<74><65>
<20>i<EFBFBD><69><EFBFBD>΂炵<CE82><E782B5>CGLIB<49><42><EFBFBD>C<EFBFBD>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>j<EFBFBD><6A><EFBFBD>s<EFBFBD><73><EFBFBD>̃o<CC83>C<EFBFBD>g<EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>
<20>g<EFBFBD><67><EFBFBD>ĉi<C489><69><EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>̒x<CC92><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
</para>
<para>
<20>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>ł́AHibernate3<65>́i<CD81>J<EFBFBD>n<EFBFBD><6E><EFBFBD>Ɂj<C981><6A><EFBFBD>ׂẲi<CC89><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̃v<CC83><76><EFBFBD>L<EFBFBD>V<EFBFBD>𐶐<EFBFBD><F090B690><EFBFBD><EFBFBD>A
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>āA <literal>many-to-one</literal> <20><> <literal>one-to-one</literal> <20>֘A<D698><41>
<20>x<EFBFBD><78><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>”\<5C>ɂ<EFBFBD><C982>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
</para>
<para>
<20>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD> <literal>proxy</literal> <20><><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>āA<C481>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̃v<CC83><76><EFBFBD>L<EFBFBD>V<EFBFBD>C<EFBFBD><43><EFBFBD>^<5E>[<5B>t<EFBFBD>F<EFBFBD>C<EFBFBD>X<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD>
<20>g<EFBFBD><67><EFBFBD>C<EFBFBD><43><EFBFBD>^<5E>[<5B>t<EFBFBD>F<EFBFBD>C<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>ł́AHibernate<74>͂<EFBFBD><CD82>̃N<CC83><4E><EFBFBD>X<EFBFBD>̃T<CC83>u<EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58><EFBFBD>g<EFBFBD><67><EFBFBD>܂<EFBFBD><DC82>B
<emphasis><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>L<EFBFBD>V<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>͏<EFBFBD><EFBFBD>Ȃ<EFBFBD><EFBFBD>Ƃ<EFBFBD><EFBFBD>p<EFBFBD>b<EFBFBD>P<EFBFBD>[<5B>W<EFBFBD>Ž<EFBFBD><C28E>Ńf<C583>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>R<EFBFBD><52><EFBFBD>X<EFBFBD>g<EFBFBD><67><EFBFBD>N<EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD><EFBFBD>
<20>Ȃ<EFBFBD><C882>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ƃɒ<C682><C992>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>ׂẲi<CC89><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>ɂ<EFBFBD><C982>̃R<CC83><52><EFBFBD>X<EFBFBD>g<EFBFBD><67><EFBFBD>N<EFBFBD>^<5E>𐄏<EFBFBD><F090848F><EFBFBD><EFBFBD>܂<EFBFBD><DC82>I</emphasis>
</para>
<para>
<20>|<7C><><EFBFBD><EFBFBD><EFBFBD>[<5B>t<EFBFBD>B<EFBFBD>Y<EFBFBD><59><EFBFBD>̃N<CC83><4E><EFBFBD>X<EFBFBD>ɑ΂<C991><CE82>Ă<EFBFBD><C482>̕<EFBFBD><CC95>@<40><><EFBFBD>K<EFBFBD>p<EFBFBD><70><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>‚<EFBFBD><C282>l<EFBFBD><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD>F
</para>
<programlisting><![CDATA[<class name="Cat" proxy="Cat">
......
<subclass name="DomesticCat">
.....
</subclass>
</class>]]></programlisting>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD>ɁA <literal>Cat</literal> <20>̃C<CC83><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58> <literal>DomesticCat</literal>
<20>ɃL<C983><4C><EFBFBD>X<EFBFBD>g<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>ƂȂ<C682><C882>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58> <literal>DomesticCat</literal>
<20>ł<EFBFBD><C582><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>Ă<EFBFBD><C482>ł<EFBFBD><C582>B
</para>
<programlisting><![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a proxy (does not hit the db)
if ( cat.isDomesticCat() ) { // hit the db to initialize the proxy
DomesticCat dc = (DomesticCat) cat; // Error!
....
}]]></programlisting>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD>ɁA<C981>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD><56> <literal>==</literal> <20>͐<EFBFBD><CD90><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a Cat proxy
DomesticCat dc =
(DomesticCat) session.load(DomesticCat.class, id); // acquire new DomesticCat proxy!
System.out.println(cat==dc); // false]]></programlisting>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>͌<EFBFBD><CD8C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>قLj<D982><C788><EFBFBD><EFBFBD>󋵂Ƃ<F38BB582><C682><EFBFBD><EFBFBD><EFBFBD>ł͂<C582><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>Ƃ<EFBFBD><C682>قȂ<D982><C882><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>ւ<EFBFBD>
<20><><EFBFBD>‚̎Q<CC8E>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>Ă<EFBFBD><C482>A<EFBFBD><41><EFBFBD>ƂȂ<C682><C882>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD>͓<EFBFBD><CD93><EFBFBD><EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>ł<EFBFBD><C582>B
</para>
<programlisting><![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy
System.out.println( dc.getWeight() ); // 11.0]]></programlisting>
<para>
<20><><EFBFBD>O<EFBFBD>ɁA <literal>final</literal> <20>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58> <literal>final</literal> <20><><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD>ƒN<C283><4E><EFBFBD>X<EFBFBD><58>
CGLIB<49>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD>g<EFBFBD><67><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
<para>
<20>Ō<EFBFBD><C58C>ɁA<C981><41><EFBFBD><EFBFBD><EFBFBD>i<EFBFBD><69><EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>(<28><EFBFBD>΁A<CE81><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>R<EFBFBD><52><EFBFBD>X<EFBFBD>g<EFBFBD><67><EFBFBD>N<EFBFBD>^<5E>̒<EFBFBD><CC92><EFBFBD>)
<20>ɂȂ<C982><C882><EFBFBD>̃<EFBFBD><CC83>\<5C>[<5B>X<EFBFBD><58><EFBFBD>K<EFBFBD>v<EFBFBD>ƂȂ<C682><C882>Ȃ<EFBFBD><C882>A<EFBFBD><41><EFBFBD>̃<EFBFBD><CC83>\<5C>[<5B>X<EFBFBD><58><EFBFBD>܂<EFBFBD><DC82>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD>ʂ<EFBFBD><CA82>Ď擾<C48E><E693BE><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD>ۂɂ́A<CD81>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>͉i<CD89><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̃T<CC83>u<EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>ł<EFBFBD><C582>B
</para>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̖<EFBFBD><CC96><EFBFBD><EFBFBD><EFBFBD>Java<76>̒P<CC92><50><EFBFBD>p<EFBFBD><70><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD><66><EFBFBD>̌<EFBFBD><CC8C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̐<EFBFBD><CC90><EFBFBD><EFBFBD>̂<EFBFBD><CC82>߂ł<DF82><C582>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̖<EFBFBD><CC96><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂Ȃ<CC82><C882>A
<20>r<EFBFBD>W<EFBFBD>l<EFBFBD>X<EFBFBD><58><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68><EFBFBD><EFBFBD><E98CBE><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD><43><EFBFBD>^<5E>[<5B>t<EFBFBD>F<EFBFBD>C<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EA82BC><EFBFBD>i<EFBFBD><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>Ŏ<EFBFBD><C58E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<20>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃C<CC83><43><EFBFBD>^<5E>[<5B>t<EFBFBD>F<EFBFBD>C<EFBFBD>X<EFBFBD><58><EFBFBD>w<EFBFBD><EFBFBD><E882B7><EFBFBD>K<EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>F
</para>
<programlisting><![CDATA[<class name="CatImpl" proxy="Cat">
......
<subclass name="DomesticCatImpl" proxy="DomesticCat">
.....
</subclass>
</class>]]></programlisting>
<para>
<literal>CatImpl</literal> <20><> <literal>Cat</literal> <20>C<EFBFBD><43><EFBFBD>^<5E>[<5B>t<EFBFBD>F<EFBFBD>C<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂ɑ΂<C991><CE82>A
<literal>DomesticCatImpl</literal> <20><> <literal>DomesticCat</literal> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD>ƁA <literal>load()</literal> <20><> <literal>iterate()</literal> <20>́A
<literal>Cat</literal> <20><> <literal>DomesticCat</literal> <20>̃C<CC83><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD>̃v<CC83><76><EFBFBD>L<EFBFBD>V<EFBFBD><56>
<20>Ԃ<EFBFBD><D482>܂<EFBFBD><DC82>B<EFBFBD>i <literal>list()</literal> <20>͒ʏ<CD92><CA8F>̓v<CD83><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD>Ԃ<EFBFBD><D482>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ƃɒ<C682><C992>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD>j
</para>
<programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);
Iterator iter = session.iterate("from CatImpl as cat where cat.name='fritz'");
Cat fritz = (Cat) iter.next();]]></programlisting>
<para>
<20>֘A<D698><41><EFBFBD>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>̓v<CD83><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42> <literal>Cat</literal> <20>^<5E>Ő錾<C590><E98CBE><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD><EFBFBD>
<20>Ȃ<EFBFBD><C882>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>Ӗ<EFBFBD><D396><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B <literal>CatImpl</literal> <20>ł͂<C582><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
<para>
<20>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD>̏<EFBFBD><CC8F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <emphasis><EFBFBD>K<EFBFBD>v<EFBFBD>Ƃ<EFBFBD><EFBFBD>Ȃ<EFBFBD></emphasis> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂<EFBFBD><DD82>܂<EFBFBD><DC82>B
</para>
<itemizedlist spacing="compact">
<listitem>
<para>
<literal>equals()</literal> <20>i<EFBFBD>i<EFBFBD><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58> <literal>equals()</literal> <20><>
<20>I<EFBFBD>[<5B>o<EFBFBD>[<5B><><EFBFBD>C<EFBFBD>h<EFBFBD><68><EFBFBD>Ȃ<EFBFBD><C882>Ƃ<EFBFBD><C682>j
</para>
</listitem>
<listitem>
<para>
<literal>hashCode()</literal> <20>i<EFBFBD>i<EFBFBD><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58> <literal>hashCode()</literal> <20><>
<20>I<EFBFBD>[<5B>o<EFBFBD>[<5B><><EFBFBD>C<EFBFBD>h<EFBFBD><68><EFBFBD>Ȃ<EFBFBD><C882>Ƃ<EFBFBD><C682>j
</para>
</listitem>
<listitem>
<para>
<20><><EFBFBD>ʎq<CA8E><71>getter<65><72><EFBFBD>\<5C>b<EFBFBD>h
</para>
</listitem>
</itemizedlist>
<para>
Hibernate<74><65> <literal>equals()</literal> <20><> <literal>hashCode()</literal> <20><><EFBFBD>I<EFBFBD>[<5B>o<EFBFBD>[<5B><><EFBFBD>C<EFBFBD>h<EFBFBD><68><EFBFBD><EFBFBD>
<20>i<EFBFBD><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<20>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD><67> <literal>lazy="proxy"</literal> <20>̑<EFBFBD><CC91><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɁA <literal>lazy="no-proxy"</literal> <20><>
<20>I<EFBFBD>񂾂<EFBFBD><F182BE82>ƂŁA<C581>^<5E>ϊ<EFBFBD><CF8A>Ɋ֘A<D698><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>r<EFBFBD><72><EFBFBD>h<EFBFBD><68><EFBFBD>̃o<CC83>C<EFBFBD>g<EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>g<EFBFBD>ݍ<EFBFBD><DD8D>݂<EFBFBD><DD82>K<EFBFBD>v<EFBFBD>ɂȂ<C982><C882>A<EFBFBD>ǂ̂悤<CC82>ȑ<EFBFBD><C891><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD>Ă<EFBFBD><C482>A
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƀv<C983><76><EFBFBD>L<EFBFBD>V<EFBFBD>̏<EFBFBD><CC8F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>ƂɂȂ<C982><C882>ł<EFBFBD><C582><EFBFBD>B
</para>
</sect2>
<sect2 id="performance-fetching-initialization" revision="1">
<title><EFBFBD>R<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƃv<EFBFBD><EFBFBD><EFBFBD>L<EFBFBD>V<EFBFBD>̏<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title>
<para>
<literal>LazyInitializationException</literal> <20>́A <literal>Session</literal> <20>̃X<CC83>R<EFBFBD>[<5B>v<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɁAHibernate<74>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ăX<C483><58><EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD>Ȃ킿<C882>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD>ւ̎Q<CC8E>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>ƒG<C283><47><EFBFBD>e<EFBFBD>B<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EA82BD><EFBFBD>Ԃ̎<D482><CC8E>ł<EFBFBD><C582>B
</para>
<para>
<literal>Session</literal> <20><><EFBFBD>N<EFBFBD><4E><EFBFBD>[<5B>Y<EFBFBD><59><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>Ƀv<C983><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̏<EFBFBD><CC8F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>m<EFBFBD><6D><EFBFBD><EFBFBD>
<20>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A <literal>cat.getSex()</literal>
<20><> <literal>cat.getKittens().size()</literal> <20>Ȃǂ<C882><C782><EFBFBD><EFBFBD>ɌĂяo<D18F><6F><EFBFBD><EFBFBD><EFBFBD>Ƃŏ<C682><C58F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ͂ł<CD82><C582>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̓R<CD83>[<5B>h<EFBFBD><68><EFBFBD>ǂސl<DE90><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>ėp<C497>I<EFBFBD>ȃR<C883>[<5B>h<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD>ւł<D682><C582>B
</para>
<para>
static<69><63><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68> <literal>Hibernate.initialize()</literal> <20><> <literal>Hibernate.isInitialized()</literal>
<20>͒x<CD92><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃R<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɕ֗<C995><D697>ȕ<EFBFBD><C895>@<40><><EFBFBD>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɒ񋟂<C992><F18B9F82>܂<EFBFBD><DC82>B
<literal>Hibernate.initialize(cat)</literal> <20>́A <literal>Session</literal> <20><><EFBFBD>I<EFBFBD>[<5B>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<literal>cat</literal> <20>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<literal>Hibernate.initialize( cat.getKittens() )</literal> <20><>kittens<6E>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɑ΂<C991><CE82>ē<EFBFBD><C493>l<EFBFBD><6C>
<20><><EFBFBD>ʂ<EFBFBD><CA82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<20>ʂ̑I<CC91><49><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>āA<C481>K<EFBFBD>v<EFBFBD>Ȃ<EFBFBD><C882>ׂẴR<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD>
<literal>Session</literal> <20><><EFBFBD>I<EFBFBD>[<5B>v<EFBFBD><76><EFBFBD>ɂ<EFBFBD><C982>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>‚<EFBFBD><C282>̃A<CC83>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>A<EFBFBD>[<5B>L<EFBFBD>e<EFBFBD>N<EFBFBD>`<60><><EFBFBD>ł́A<CD81><41><EFBFBD><EFBFBD>Hibernate<74>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>f<EFBFBD>[<5B>^<5E>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD>s<EFBFBD><73><EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>ƁA<C681><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67>
<20>R<EFBFBD>[<5B>h<EFBFBD><68><EFBFBD>قȂ<D982><C882>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃<EFBFBD><CC83>C<EFBFBD><43><EFBFBD>[<5B><><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>ɈقȂ<D982><C882>v<EFBFBD><76><EFBFBD>Z<EFBFBD>b<EFBFBD>T<EFBFBD>̂Ƃ<CC82><C682>ɂ́A
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD> <literal>Session</literal> <20><><EFBFBD>I<EFBFBD>[<5B>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD>Ƃ<EFBFBD>
<20>ۏ؂<DB8F><D882><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E882AA><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>̖<EFBFBD><CC96><EFBFBD><EFBFBD>ɑ΂<C991><CE82>Ă<EFBFBD>2<EFBFBD>‚̊<C282><CC8A>{<7B>I<EFBFBD>ȕ<EFBFBD><C895>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para>
Web<65>x<EFBFBD>[<5B>X<EFBFBD>̃A<CC83>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ł́A
<20>r<EFBFBD><72><EFBFBD>[<5B>̃<EFBFBD><CC83><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD>N<EFBFBD>G<EFBFBD>X<EFBFBD>g<EFBFBD><67><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԍŌ<D48D><C58C><EFBFBD> <literal>Session</literal>
<20><><EFBFBD>N<EFBFBD><4E><EFBFBD>[<5B>Y<EFBFBD><59><EFBFBD><EFBFBD>߂ɁA<C981>T<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD>b<EFBFBD>g<EFBFBD>t<EFBFBD>B<EFBFBD><42><EFBFBD>^<5E><><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>i <emphasis>Open Session in View</emphasis>
<20>p<EFBFBD>^<5E>[<5B><><EFBFBD>ł<EFBFBD><C582>j<EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ղ̗<D582><CC97>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>̐<EFBFBD><CC90>m<EFBFBD><6D><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɏd<C98F>v<EFBFBD>ɂȂ<C982><C882>܂<EFBFBD><DC82>B
<20>r<EFBFBD><72><EFBFBD>[<5B>̃<EFBFBD><CC83><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD>ɗ<EFBFBD><C997>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD>[<5B>U<EFBFBD>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߂<EFBFBD><DF82>O<EFBFBD><4F>
<literal>Session</literal> <20>̃N<CC83><4E><EFBFBD>[<5B>Y<EFBFBD>ƃg<C683><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̏I<CC8F><49><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73>
<20><><EFBFBD>Ƃ<EFBFBD><C682>s<EFBFBD>Œ<EFBFBD><C28C>ɂȂ<C982><C882>܂<EFBFBD><DC82>B
Hibernate<74><65>Wiki<6B>ɍڂ<C98D><DA82>Ă<EFBFBD><C482><EFBFBD>"Open Session in View"<22>p<EFBFBD>^<5E>[<5B><><EFBFBD>̗<EFBFBD><CC97><EFBFBD><EFBFBD>Q<EFBFBD>Ƃ<EFBFBD><C682>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
</para>
</listitem>
<listitem>
<para>
<20>r<EFBFBD>W<EFBFBD>l<EFBFBD>X<EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ł́A<CD81>r<EFBFBD>W<EFBFBD>l<EFBFBD>X<EFBFBD><58><EFBFBD>W<EFBFBD>b<EFBFBD>N<EFBFBD><4E>
Web<65>w<EFBFBD>ŕK<C595>v<EFBFBD>ɂȂ邷<C882>ׂẴR<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F>"<22><><EFBFBD><EFBFBD>"<22><><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD>͓<EFBFBD><CD93><EFBFBD><EFBFBD>̃<EFBFBD><CC83>[<5B>X<EFBFBD>P<EFBFBD>[<5B>X<EFBFBD>ŕK<C595>v<EFBFBD>ƂȂ<C682><C882>v<EFBFBD><76><EFBFBD>[<5B><><EFBFBD>e<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD>/Web<65>w<EFBFBD>ɑ΂<C991><CE82>A
<20>r<EFBFBD>W<EFBFBD>l<EFBFBD>X<EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>ׂẴf<CC83>[<5B>^<5E><><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD>A<EFBFBD><41><EFBFBD>ׂẴf<CC83>[<5B>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĕԂ<C495><D482>ׂ<EFBFBD><D782><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>Ӗ<EFBFBD><D396><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD>ʏ<EFBFBD><CA8F>́A<CD81>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Web<65>w<EFBFBD>ŕK<C595>v<EFBFBD>ȃR<C883><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EA82BC><EFBFBD>ɑ΂<C991><CE82><EFBFBD> <literal>Hibernate.initialize()</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD><EFBFBD>
<20>i<EFBFBD><69><EFBFBD>̌Ăяo<D18F><6F><EFBFBD>̓Z<CD83>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>[<5B>Y<EFBFBD><59><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>ɍs<C98D><73><EFBFBD>K<EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>j<EFBFBD>A
Hibernate<74>N<EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD> <literal>FETCH</literal> <20>߂<EFBFBD> <literal>Criteria</literal>
<20><> <literal>FetchMode.JOIN</literal> <20><><EFBFBD>g<EFBFBD><67><EFBFBD>ăR<C483><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɕ<EFBFBD><C995><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD>ʂ<EFBFBD> <emphasis>Session Facade</emphasis> <20>p<EFBFBD>^<5E>[<5B><><EFBFBD>̑<EFBFBD><CC91><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<emphasis>Command</emphasis> <20>p<EFBFBD>^<5E>[<5B><><EFBFBD><EFBFBD><EFBFBD>̗p<CC97><70><EFBFBD><EFBFBD><EFBFBD>ق<EFBFBD><D982><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȒP<C892>ł<EFBFBD><C582>B
</para>
</listitem>
<listitem>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>i<EFBFBD><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͑<EFBFBD><CD91>̃v<CC83><76><EFBFBD>L<EFBFBD>V<EFBFBD>j<EFBFBD>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>ɁA
<literal>merge()</literal> <20><> <literal>lock()</literal> <20><><EFBFBD>g<EFBFBD><67><EFBFBD>ĐV<C490><56><EFBFBD><EFBFBD>
<literal>Session</literal> <20>ɈȑO<C891>Ƀ<EFBFBD><C983>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>lj<EFBFBD><C789><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
<20>A<EFBFBD>h<EFBFBD>z<EFBFBD>b<EFBFBD>N<EFBFBD>ȃg<C883><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃Z<CC83>}<7D><><EFBFBD>e<EFBFBD>B<EFBFBD>N<EFBFBD>X<EFBFBD>𓱓<EFBFBD><F093B193><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂ŁAHibernate<74><65>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>ɍs<C98D><EFBFBD>A <emphasis><EFBFBD>s<EFBFBD><EFBFBD><EFBFBD>ׂ<EFBFBD><EFBFBD>ł<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD><EFBFBD></emphasis> <20>I
</para>
</listitem>
</itemizedlist>
<para>
<20><EFBFBD>ȃR<C883><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͂Ȃ<CD82><C882><EFBFBD><EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɂ‚<C982><C282>Ă̂Ȃ<CC82><C882><EFBFBD>̏<EFBFBD><CC8F><EFBFBD><EFBFBD>i<EFBFBD>T<EFBFBD>C<EFBFBD>Y<EFBFBD>̂悤<CC82>ȁj
<20><><EFBFBD>f<EFBFBD>[<5B>^<5E>̃T<CC83>u<EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD>K<EFBFBD>v<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>B<EFBFBD><42><EFBFBD>^<5E><><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>ƂŁA<C581><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɃR<C983><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃T<CC83>C<EFBFBD>Y<EFBFBD><59><EFBFBD><EFBFBD><E693BE><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[( (Integer) s.createFilter( collection, "select count(*)" ).list().get(0) ).intValue()]]></programlisting>
<para>
<literal>createFilter()</literal> <20><><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD>́A<CD81>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>S<EFBFBD>̂<EFBFBD><CC82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD>Ȃ<EFBFBD><C882>ɁA<C981>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>T<EFBFBD>u<EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD>𕜌<EFBFBD><F0959C8C><EFBFBD><EFBFBD><EFBFBD>߂Ɍ<DF82><C98C>ʓI<CA93>Ɏg<C98E><67><EFBFBD>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[s.createFilter( lazyCollection, "").setFirstResult(0).setMaxResults(10).list();]]></programlisting>
</sect2>
<sect2 id="performance-fetching-batch">
<title><EFBFBD>o<EFBFBD>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>̎g<CC8E>p</title>
<para>
Hibernate<74>̓o<CD83>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>Ɏg<C98E>p<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>‚̃v<CC83><76><EFBFBD>L<EFBFBD>V<EFBFBD>i<EFBFBD><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̓R<CD83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD><6A><EFBFBD>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƁAHibernate<74>͂<EFBFBD><CD82><EFBFBD><EFBFBD>‚<EFBFBD><C282>̏<EFBFBD><CC8F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD>o<EFBFBD>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><>
<20>x<EFBFBD><78><EFBFBD>Z<EFBFBD><5A><EFBFBD>N<EFBFBD>g<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><EFBFBD>ɑ΂<C991><CE82><EFBFBD><EFBFBD>œK<C593><4B><EFBFBD>ł<EFBFBD><C582>B<EFBFBD>o<EFBFBD>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>̒<EFBFBD><CC92><EFBFBD><EFBFBD>ɂ͂Q<CD82>‚̕<C282><CC95>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58><EFBFBD>x<EFBFBD><78><EFBFBD>ƃR<C683><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD>ł<EFBFBD><C582>B
</para>
<para>
<20>N<EFBFBD><4E><EFBFBD>X<EFBFBD>A<EFBFBD>v<EFBFBD>f<EFBFBD>̃o<CC83>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>͗<EFBFBD><CD97><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȒP<C892>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD>s<EFBFBD><73><EFBFBD>̎<EFBFBD><CC8E>̏<EFBFBD><CC8F>ʂ<EFBFBD><CA82>z<EFBFBD><7A><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
<literal>Session</literal> <20>Ƀ<EFBFBD><C983>[<5B>h<EFBFBD><68><EFBFBD>ꂽ25<32>‚<EFBFBD> <literal>Cat</literal> <20>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>݂<EFBFBD><DD82>A
<20><><EFBFBD><EFBFBD><EA82BC><EFBFBD><EFBFBD> <literal>Cat</literal> <20><> <literal>owner</literal> <20>ł<EFBFBD><C582><EFBFBD> <literal>Person</literal> <20>ւ̊֘A<D698><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<literal>Person</literal> <20>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58> <literal>lazy="true"</literal> <20>̃v<CC83><76><EFBFBD>L<EFBFBD>V<EFBFBD>Ń}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ׂĂ<D782>Cat<61>ɑ΂<C991><CE82>ČJ<C48C><4A><EFBFBD>Ԃ<EFBFBD> <literal>getOwner()</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD>ƁAHibernate<74><65>
<20>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>ł<EFBFBD>25<32><35><EFBFBD><EFBFBD> <literal>SELECT</literal> <20><><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>Aowner<65>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD>̕<EFBFBD><CC95><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD>̐U<CC90><EFBFBD><E99591><EFBFBD><EFBFBD> <literal>Person</literal> <20>̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F> <literal>batch-size</literal>
<20>̎w<CC8E><77><EFBFBD>Œ<EFBFBD><C592><EFBFBD><EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[<class name="Person" batch-size="10">...</class>]]></programlisting>
<para>
Hibernate<74>̓N<CD83>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>񂾂<EFBFBD><F182BE82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<EFBFBD>p<EFBFBD>^<5E>[<5B><><EFBFBD><EFBFBD>10, 10, 5<>ł<EFBFBD><C582>B
</para>
<para>
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃o<CC83>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>Ƃ<EFBFBD><C682>āA<C481><41><EFBFBD><EFBFBD><EA82BC><EFBFBD><EFBFBD>
<literal>Person</literal> <20><> <literal>Cat</literal> <20>̒x<CC92><78><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>A
10<31>‚<EFBFBD>Person<6F><6E> <literal>Sesssion</literal> <20>Ƀ<EFBFBD><C983>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>ƁA<C681><41><EFBFBD>ׂĂ<D782>Person<6F><6E>
<20>΂<EFBFBD><CE82>ČJ<C48C><4A><EFBFBD>Ԃ<EFBFBD> <literal>getCats()</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD><EFBFBD><EFBFBD>ƂŁA<C581>v10<31><30><EFBFBD><EFBFBD> <literal>SELECT</literal>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD> <literal>Person</literal> <20>̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F> <literal>cats</literal>
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃o<CC83>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>΁AHibernate<74>̓R<CD83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̎<EFBFBD><CC8E>O<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[<class name="Person">
<set name="cats" batch-size="3">
...
</set>
</class>]]></programlisting>
<para>
<literal>batch-size</literal> <20><>3<EFBFBD>Ȃ̂ŁAHibernate<74><65>4<EFBFBD><34><EFBFBD><EFBFBD> <literal>SELECT</literal>
<20><>3<EFBFBD>A3<41>A3<41>A1<41>‚<EFBFBD><C282><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>J<EFBFBD><4A><EFBFBD>Ԃ<EFBFBD><D482>ƁA<C681><41><EFBFBD><EFBFBD><EFBFBD>̒l<CC92>͓<EFBFBD><CD93><EFBFBD><EFBFBD><EFBFBD> <literal>Session</literal>
<20>̒<EFBFBD><CC92>̏<EFBFBD><CC8F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̊<EFBFBD><CC8A>Ґ<EFBFBD><D290>Ɉˑ<C988><CB91><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃o<CC83>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>̓A<CD83>C<EFBFBD>e<EFBFBD><65><EFBFBD>̃l<CC83>X<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>c<EFBFBD><63><EFBFBD>[<5B>A <20><><EFBFBD>Ȃ킿<C882>A<EFBFBD><41><EFBFBD>\<5C>I<EFBFBD>ȕ<EFBFBD><C895>i<EFBFBD>\<5C>̃p<CC83>^<5E>[<5B><><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɓ<EFBFBD><C993>ɗL<C997>p<EFBFBD>ł<EFBFBD><C582>B<EFBFBD>i<EFBFBD><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>ǂݍ<C782><DD8D>݂<EFBFBD><DD82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>c<EFBFBD><63><EFBFBD>[<5B>ł<EFBFBD> <emphasis><EFBFBD>l<EFBFBD>X<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD><EFBFBD>set</emphasis>
<20><> <emphasis><EFBFBD><EFBFBD><EFBFBD>̉<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>X</emphasis> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD><49><EFBFBD>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<EFBFBD>j
</para>
</sect2>
<sect2 id="performance-fetching-subselect">
<title><EFBFBD>T<EFBFBD>u<EFBFBD>Z<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>g<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>̎g<CC8E>p</title>
<para>
<20><><EFBFBD>‚̒x<CC92><78><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P<EFBFBD><50><EFBFBD>l<EFBFBD>v<EFBFBD><76><EFBFBD>L<EFBFBD>V<EFBFBD><56><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂<EFBFBD><CE82><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>Ƃ<EFBFBD><C682>AHibernate<74><65>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ׂĂ<D782><C482><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD>A<EFBFBD>T<EFBFBD>u<EFBFBD>Z<EFBFBD><5A><EFBFBD>N<EFBFBD>g<EFBFBD>̃I<CC83><49><EFBFBD>W<EFBFBD>i<EFBFBD><69><EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD>ēx<C493><78><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>o<EFBFBD>b<EFBFBD>`<60>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>Ɠ<EFBFBD><C693><EFBFBD><EFBFBD><EFBFBD><EFBFBD>@<40>œ<EFBFBD><C593><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>‚̃<C282><CC83>[<5B>h<EFBFBD>͍s<CD8D><73><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
<!-- TODO: Write more about this -->
<!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
</sect2>
<sect2 id="performance-fetching-lazyproperties">
<title><EFBFBD>x<EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>̎g<CC8E>p</title>
<para>
Hibernate3<65>̓v<CD83><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD>Ƃ̒x<CC92><78><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>T<EFBFBD>|<7C>[<5B>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>̍œK<C593><4B><EFBFBD><EFBFBD><EFBFBD>@<40><>
<emphasis><EFBFBD>O<EFBFBD><EFBFBD><EFBFBD>[<5B>v<EFBFBD>̃t<CC83>F<EFBFBD>b<EFBFBD>`</emphasis> <20>Ƃ<EFBFBD><C682>Ă<EFBFBD><C482>m<EFBFBD><6D><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>͂قƂ<D982><C682><EFBFBD>
<20>v<EFBFBD>]<5D><><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD><6F><EFBFBD>@<40>\<5C>ł<EFBFBD><C582><EFBFBD>Ƃɒ<C682><C992>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>ۂɂ͗<C982><CD97>ǂݍ<C782><DD8D>݂̍œK<C593><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A
<20>s<EFBFBD>ǂݍ<C782><DD8D>݂̍œK<C593><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɏd<C98F>v<EFBFBD>ł<EFBFBD><C582>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̂<EFBFBD><CC82><EFBFBD><EFBFBD>‚<EFBFBD><C282>̃v<CC83><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǂݍ<C782><DD8D>ނ<EFBFBD><DE82>Ƃ́A<CD81><41><EFBFBD><EFBFBD><EFBFBD>̃e<CC83>[<5B>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>S<EFBFBD><53><EFBFBD>̗<EFBFBD><CC97><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A
<20>f<EFBFBD>[<5B>^<5E><><EFBFBD>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P<EFBFBD>ł<EFBFBD><C582>Ȃ<EFBFBD><C882>Ȃǂ̋ɒ[<5B>ȏꍇ<C88F>ɂ͗L<CD97>p<EFBFBD>ł<EFBFBD><C582>B
</para>
<para>
<20>x<EFBFBD><78><EFBFBD>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>ǂݍ<C782><DD8D>݂<EFBFBD><DD82>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ɂ́A<CD81>Ώۂ̃v<CC83><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F> <literal>lazy</literal>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
</para>
<programlisting><![CDATA[<class name="Document">
<id name="id">
<generator class="native"/>
</id>
<property name="name" not-null="true" length="50"/>
<property name="summary" not-null="true" length="200" lazy="true"/>
<property name="text" not-null="true" length="2000" lazy="true"/>
</class>]]></programlisting>
<para>
<20>x<EFBFBD><78><EFBFBD>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>ǂݍ<C782><DD8D>݂̓r<CD83><72><EFBFBD>h<EFBFBD><68><EFBFBD>̃o<CC83>C<EFBFBD>g<EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>g<EFBFBD>ݍ<EFBFBD><DD8D>݂<EFBFBD><DD82>K<EFBFBD>v<EFBFBD>Ƃ<EFBFBD><C682>܂<EFBFBD><DC82>I<EFBFBD><49><EFBFBD><EFBFBD>
<20>i<EFBFBD><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>ɑg<C991>ݍ<EFBFBD><DD8D>݂<EFBFBD><DD82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882>Ȃ<EFBFBD><C882>AHibernate<74>͖ق<CD96><D982>Ēx<C492><78><EFBFBD>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>̐ݒ<CC90><DD92>𖳎<EFBFBD><F096B38E><EFBFBD><EFBFBD>āA
<20><><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>ɖ߂<C996><DF82>܂<EFBFBD><DC82>B
</para>
<para>
<20>o<EFBFBD>C<EFBFBD>g<EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>g<EFBFBD>ݍ<EFBFBD><DD8D>݂͈ȉ<CD88><C889><EFBFBD>Ant<6E>^<5E>X<EFBFBD>N<EFBFBD><4E><EFBFBD>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
</para>
<programlisting><![CDATA[<target name="instrument" depends="compile">
<taskdef name="instrument" classname="org.hibernate.tool.instrument.InstrumentTask">
<classpath path="${jar.path}"/>
<classpath path="${classes.dir}"/>
<classpath refid="lib.class.path"/>
</taskdef>
<instrument verbose="true">
<fileset dir="${testclasses.dir}/org/hibernate/auction/model">
<include name="*.class"/>
</fileset>
</instrument>
</target>]]></programlisting>
<para>
<20>s<EFBFBD>v<EFBFBD>ȗ<EFBFBD><C897><EFBFBD><EFBFBD>ǂݍ<C782><DD8D>܂Ȃ<DC82><C882><EFBFBD><EFBFBD>߂́A<CC81>ʂ́i<CC81><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD>H<EFBFBD>j<EFBFBD><6A><EFBFBD>@<40>́A<CD81><41><EFBFBD>Ȃ<EFBFBD><C882>Ƃ<EFBFBD>
<20>ǂݍ<C782><DD8D>݂݂̂̃g<CC83><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ẮAHQL<51><4C>Criteria<69>N<EFBFBD>G<EFBFBD><47><EFBFBD>̎ˉe
<20>@<40>\<5C><><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃł<C682><C582>B<EFBFBD><42><EFBFBD>̕<EFBFBD><CC95>@<40>̓r<CD83><72><EFBFBD>h<EFBFBD><68><EFBFBD>̃o<CC83>C<EFBFBD>g<EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>g<EFBFBD>ݍ<EFBFBD><DD8D>݂<EFBFBD><DD82>s<EFBFBD>v<EFBFBD>ɂȂ<C982><C882>A
<20><><EFBFBD><EFBFBD><EFBFBD>ǂ<EFBFBD><C782><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>@<40>ł<EFBFBD><C582>B
</para>
<para>
HQL<51><4C> <literal>fetch all properties</literal> <20><><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>ƂŁA<C581><41><EFBFBD>ʂǂ<CA82><C782><EFBFBD><EFBFBD><EFBFBD>
<20>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>̑<EFBFBD><CC91><EFBFBD><EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60><><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
</sect2>
</sect1>
<sect1 id="performance-cache" revision="1">
<title><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD></title>
<para>
Hibernate<74><65> <literal>Session</literal> <20>͉i<CD89><69><EFBFBD>f<EFBFBD>[<5B>^<5E>̃g<CC83><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD>̃L<CC83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ł<EFBFBD><C582>B
class-by-class<73><73>collection-by-collection<6F><6E><EFBFBD>Ƃ́A<CC81>N<EFBFBD><4E><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>x<EFBFBD><78><EFBFBD><EFBFBD>JVM<56><4D><EFBFBD>x<EFBFBD><78>
<20>i <literal>SessionFactory</literal> <20><><EFBFBD>x<EFBFBD><78><EFBFBD>j<EFBFBD>̃L<CC83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ݒ肷<DD92><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
<20>N<EFBFBD><4E><EFBFBD>X<EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ɂ‚Ȃ<C282><C882><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
<20>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>͑<EFBFBD><CD91>̃A<CC83>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>i<EFBFBD><69><EFBFBD>w<EFBFBD>̕ύX<CF8D><58>
<20>l<EFBFBD><6C><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>i<EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>f<EFBFBD>[<5B>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>Ɋ<EFBFBD><C98A><EFBFBD><EFBFBD>؂<EFBFBD><D882>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ݒ<EFBFBD><DD92>͏o<CD8F><6F><EFBFBD>܂<EFBFBD><DC82>j<EFBFBD>B
</para>
<para revision="1">
Hibernate<74><65><EFBFBD>g<EFBFBD>p<EFBFBD><70><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>́A<literal>hibernate.cache.provider_class</literal> <20>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42>
<literal>org.hibernate.cache.CacheProvider</literal> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD><EFBFBD><EFBFBD>ƂŕύX<CF8D>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
Hibernate<74>͑<EFBFBD><CD91><EFBFBD><EFBFBD>̃I<CC83>[<5B>v<EFBFBD><76><EFBFBD>\<5C>[<5B>X<EFBFBD>̃L<CC83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>v<EFBFBD><76><EFBFBD>o<EFBFBD>C<EFBFBD>_<EFBFBD><5F><EFBFBD>r<EFBFBD><72><EFBFBD>g<EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŏ<EFBFBD><C58E><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>i<EFBFBD><69><EFBFBD>Ƀ<EFBFBD><C983>X<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>j<EFBFBD>B
<20><><EFBFBD><EFBFBD><EFBFBD>āA<C481>O<EFBFBD>ɐ<EFBFBD><C990><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɁA<C981><41><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>Ǝ<EFBFBD><C68E>̎<EFBFBD><CC8E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>āA<C481><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD>ݍ<EFBFBD><DD8D>ނ<EFBFBD><DE82>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
<20>o<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD><EFBFBD>3.2<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>ł<EFBFBD>EhCache<EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>t<EFBFBD>H<EFBFBD><EFBFBD><EFBFBD>g<EFBFBD>̃L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>C<EFBFBD>_<EFBFBD>ł<EFBFBD><EFBFBD><EFBFBD>Ƃɒ<EFBFBD><EFBFBD>ӂ<EFBFBD><EFBFBD>Ă<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
<20>o<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD><EFBFBD>3.2<EFBFBD>ł͂<EFBFBD><EFBFBD><EFBFBD><EFBFBD>͓<EFBFBD><EFBFBD>Ă͂܂<EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
</para>
<table frame="topbot" id="cacheproviders" revision="1">
<title><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>C<EFBFBD>_</title>
<tgroup cols='5' align='left' colsep='1' rowsep='1'>
<colspec colname='c1' colwidth="1*"/>
<colspec colname='c2' colwidth="3*"/>
<colspec colname='c3' colwidth="1*"/>
<colspec colname='c4' colwidth="1*"/>
<colspec colname='c5' colwidth="1*"/>
<thead>
<row>
<entry><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD></entry>
<entry><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>C<EFBFBD>_<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>X</entry>
<entry><EFBFBD>^<5E>C<EFBFBD>v</entry>
<entry><EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>^<5E>Z<EFBFBD>[<5B>t</entry>
<entry><EFBFBD>N<EFBFBD>G<EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD>̃T<EFBFBD>|<7C>[<5B>g</entry>
</row>
</thead>
<tbody>
<row>
<entry>Hashtable<EFBFBD>i<EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>p<EFBFBD>Ƃ<EFBFBD><EFBFBD>ĈӐ}<7D><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82><EFBFBD><EFBFBD>j</entry>
<entry><literal>org.hibernate.cache.HashtableCacheProvider</literal></entry>
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></entry>
<entry></entry>
<entry>yes</entry>
</row>
<row>
<entry>EHCache</entry>
<entry><literal>org.hibernate.cache.EhCacheProvider</literal></entry>
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>f<EFBFBD>B<EFBFBD>X<EFBFBD>N</entry>
<entry></entry>
<entry>yes</entry>
</row>
<row>
<entry>OSCache</entry>
<entry><literal>org.hibernate.cache.OSCacheProvider</literal></entry>
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>f<EFBFBD>B<EFBFBD>X<EFBFBD>N</entry>
<entry></entry>
<entry>yes</entry>
</row>
<row>
<entry>SwarmCache</entry>
<entry><literal>org.hibernate.cache.SwarmCacheProvider</literal></entry>
<entry><EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>^<5E>iip<69>}<7D><><EFBFBD>`<60>L<EFBFBD><4C><EFBFBD>X<EFBFBD>g<EFBFBD>j</entry>
<entry>yes<EFBFBD>i<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>j</entry>
<entry></entry>
</row>
<row>
<entry>JBoss TreeCache</entry>
<entry><literal>org.hibernate.cache.TreeCacheProvider</literal></entry>
<entry><EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>^<5E>iip<69>}<7D><><EFBFBD>`<60>L<EFBFBD><4C><EFBFBD>X<EFBFBD>g<EFBFBD>j<EFBFBD>A<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD>i<EFBFBD><69></entry>
<entry>yes<EFBFBD>i<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>j</entry>
<entry>yes<EFBFBD>i<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD>j</entry>
</row>
</tbody>
</tgroup>
</table>
<sect2 id="performance-cache-mapping" revision="2">
<title><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD>̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O</title>
<para>
<20>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F> <literal>&lt;cache&gt;</literal> <20>v<EFBFBD>f<EFBFBD>͈ȉ<CD88><C889>̌`<60><><EFBFBD>ł<EFBFBD><C582>B
</para>
<programlistingco>
<areaspec>
<area id="cache1" coords="2 70"/>
<area id="cache2" coords="3 70"/>
<area id="cache3" coords="4 70"/>
</areaspec>
<programlisting><![CDATA[<cache
usage="transactional|read-write|nonstrict-read-write|read-only"
region="RegionName"
include="all|non-lazy"
/>]]></programlisting>
<calloutlist>
<callout arearefs="cache1">
<para>
<literal>usage</literal> (required) specifies the caching strategy:
<literal>transactional</literal>,
<literal>read-write</literal>,
<literal>nonstrict-read-write</literal> or
<literal>read-only</literal>
</para>
</callout>
<callout arearefs="cache2">
<para>
<literal>region</literal> (optional, defaults to the class or
collection role name) specifies the name of the second level cache
region
</para>
</callout>
<callout arearefs="cache3">
<para>
<literal>include</literal> (optional, defaults to <literal>all</literal>)
<literal>non-lazy</literal> specifies that properties of the entity mapped
with <literal>lazy="true"</literal> may not be cached when attribute-level
lazy fetching is enabled
</para>
</callout>
</calloutlist>
</programlistingco>
<para>
<20>܂<EFBFBD><DC82>́i<CD81><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E682A2><EFBFBD>@<40>Ƃ<EFBFBD><C682>āH<C481>j<EFBFBD>A <literal>hibernate.cfg.xml</literal> <20><> <literal>&lt;class-cache&gt;</literal>
<20><> <literal>&lt;collection-cache&gt;</literal> <20>v<EFBFBD>f<EFBFBD><66><EFBFBD>w<EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<literal>usage</literal> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <emphasis><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD>̕<EFBFBD><EFBFBD>񐫐헪</emphasis> <20><><EFBFBD>w<EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
</sect2>
<sect2 id="performance-cache-readonly">
<title>read only<6C></title>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǂݍ<C782><DD8D>݂̂ݕK<DD95>v<EFBFBD>ŁA<C581>i<EFBFBD><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58><EFBFBD>ύX<CF8D><58><EFBFBD>Ȃ<EFBFBD><C882>Ȃ<EFBFBD><C882>A
<literal>read-only</literal> <20>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>P<EFBFBD><50><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>p<EFBFBD>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD>̗ǂ<CC97><C782><EFBFBD>ł<EFBFBD><C582>B<EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>^<5E>ł̎g<CC8E>p<EFBFBD><70><EFBFBD><EFBFBD><EFBFBD>S<EFBFBD>Ɉ<EFBFBD><C988>S<EFBFBD>ł<EFBFBD><C582>B
</para>
<programlisting><![CDATA[<class name="eg.Immutable" mutable="false">
<cache usage="read-only"/>
....
</class>]]></programlisting>
</sect2>
<sect2 id="performance-cache-readwrite">
<title>read/write<74></title>
<para>
<20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>[<5B>^<5E><><EFBFBD>X<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>A <literal>read-write</literal> <20>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>̃L<CC83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD>́A<CD81>V<EFBFBD><56><EFBFBD>A<EFBFBD><41><EFBFBD>C<EFBFBD>U<EFBFBD>u<EFBFBD><75><EFBFBD>ȃg<C883><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>A
<20><><EFBFBD><EFBFBD><EFBFBD>Ďg<C48E><67><EFBFBD>ׂ<EFBFBD><D782>ł͂<C582><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD>JTA<54>‹<EFBFBD><C28B>Ŏg<C58E><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>AJTA <literal>TransactionManager</literal>
<20><><EFBFBD><EFBFBD><E693BE><EFBFBD><EFBFBD>߂̕<DF82><CC95>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>hibernate.transaction.manager_lookup_class</literal>
<20>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD>w<EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>̊‹<CC8A><C28B>ł́A <literal>Session.close()</literal>
<20><> <literal>Session.disconnect()</literal> <20><><EFBFBD>Ă΂ꂽ<CE82>Ƃ<EFBFBD><C682>ɁA<C981>m<EFBFBD><6D><EFBFBD>Ƀg<C983><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<20><><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>^<5E>ł<EFBFBD><C582>̐헪<CC90><ED97AA><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>A<EFBFBD><41><EFBFBD>ƂȂ<C682><C882>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̎<EFBFBD><CC8E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>N<EFBFBD><4E><EFBFBD>T<EFBFBD>|<7C>[<5B>g
<20><><EFBFBD>Ă<EFBFBD><C482><EFBFBD>Ƃ<EFBFBD><C682>ۏ؂<DB8F><D882>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<20>g<EFBFBD>ݍ<EFBFBD><DD8D>݂̃L<CC83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>v<EFBFBD><76><EFBFBD>o<EFBFBD>C<EFBFBD>_<EFBFBD><5F> <emphasis><EFBFBD>T<EFBFBD>|<7C>[<5B>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82><EFBFBD></emphasis> <20>B
</para>
<programlisting><![CDATA[<class name="eg.Cat" .... >
<cache usage="read-write"/>
....
<set name="kittens" ... >
<cache usage="read-write"/>
....
</set>
</class>]]></programlisting>
</sect2>
<sect2 id="performance-cache-nonstrict">
<title><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł͂Ȃ<EFBFBD>read/write<74></title>
<para>
<20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂ɂ<DC82><C982><EFBFBD><EFBFBD>f<EFBFBD>[<5B>^<5E><><EFBFBD>X<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD>͂Ȃ<CD82><C882>i<EFBFBD><69><EFBFBD>Ȃ킿<C882><ED82BF><EFBFBD>‚̃g<CC83><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD>ɓ<EFBFBD><C993><EFBFBD><EFBFBD>A<EFBFBD>C<EFBFBD>e<EFBFBD><65><EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD>Ƃ͂قƂ<D982><C682>NjN<C78B><4E><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>j<EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>ȃg<C883><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>Ȃ<EFBFBD><C882>A <literal>nonstrict-read-write</literal> <20>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<20><><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD>JTA<54>‹<EFBFBD><C28B>Ŏg<C58E><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>A <literal>hibernate.transaction.manager_lookup_class</literal>
<20><><EFBFBD>w<EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>̊‹<CC8A><C28B>ł́A <literal>Session.close()</literal>
<20><> <literal>Session.disconnect()</literal> <20><><EFBFBD>Ă΂ꂽ<CE82>Ƃ<EFBFBD><C682>ɁA<C981>m<EFBFBD><6D><EFBFBD>Ƀg<C983><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
</sect2>
<sect2 id="performance-cache-transactional">
<title>transactional<EFBFBD></title>
<para>
<literal>transactional</literal> <20>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><ED97AA>JBoss TreeCache<68>̂悤<CC82>Ȋ<EFBFBD><C88A>S<EFBFBD>ȃg<C883><67><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD>i<EFBFBD><69>
<20>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>v<EFBFBD><76><EFBFBD>o<EFBFBD>C<EFBFBD>_<EFBFBD>̃T<CC83>|<7C>[<5B>g<EFBFBD><67><EFBFBD>񋟂<EFBFBD><F18B9F82>܂<EFBFBD><DC82>B
<20><><EFBFBD>̂悤<CC82>ȃL<C883><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD>JTA<54>‹<EFBFBD><C28B>ł̂ݎg<DD8E>p<EFBFBD>”\<5C>ŁA <literal>hibernate.transaction.manager_lookup_class</literal>
<20><><EFBFBD>w<EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
</sect2>
<para>
<20><><EFBFBD>ׂĂ̓<C482><CC93><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><ED97AA><EFBFBD>T<EFBFBD>|<7C>[<5B>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>v<EFBFBD><76><EFBFBD>o<EFBFBD>C<EFBFBD>_<EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<20>ȉ<EFBFBD><C889>̕\<5C>͂ǂ̃v<CC83><76><EFBFBD>o<EFBFBD>C<EFBFBD>_<EFBFBD><5F><EFBFBD>ǂ̓<C782><CC93><EFBFBD><EFBFBD><EFBFBD><EFBFBD>񐫐헪<F190AB90>ɑΉ<C991><CE89><EFBFBD><EFBFBD><EFBFBD><E982A9><EFBFBD>\<5C><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
</para>
<table frame="topbot">
<title><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃T<EFBFBD>|<7C>[<5B>g</title>
<tgroup cols='5' align='left' colsep='1' rowsep='1'>
<colspec colname='c1' colwidth="1*"/>
<colspec colname='c2' colwidth="1*"/>
<colspec colname='c3' colwidth="1*"/>
<colspec colname='c4' colwidth="1*"/>
<colspec colname='c5' colwidth="1*"/>
<thead>
<row>
<entry><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD></entry>
<entry>read-only</entry>
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł͂Ȃ<EFBFBD>read-write</entry>
<entry>read-write</entry>
<entry>transactional</entry>
</row>
</thead>
<tbody>
<row>
<entry>Hashtable<EFBFBD>i<EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>p<EFBFBD>Ƃ<EFBFBD><EFBFBD>ĈӐ}<7D><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82><EFBFBD><EFBFBD>j</entry>
<entry>yes</entry>
<entry>yes</entry>
<entry>yes</entry>
<entry></entry>
</row>
<row>
<entry>EHCache</entry>
<entry>yes</entry>
<entry>yes</entry>
<entry>yes</entry>
<entry></entry>
</row>
<row>
<entry>OSCache</entry>
<entry>yes</entry>
<entry>yes</entry>
<entry>yes</entry>
<entry></entry>
</row>
<row>
<entry>SwarmCache</entry>
<entry>yes</entry>
<entry>yes</entry>
<entry></entry>
<entry></entry>
</row>
<row>
<entry>JBoss TreeCache</entry>
<entry>yes</entry>
<entry></entry>
<entry></entry>
<entry>yes</entry>
</row>
</tbody>
</tgroup>
</table>
</sect1>
<sect1 id="performance-sessioncache" revision="2">
<title><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD>̊Ǘ<EFBFBD></title>
<para>
<20>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><67> <literal>save()</literal> <20>A <literal>update()</literal> <20>A <literal>saveOrUpdate()</literal>
<20>ɓn<C993><6E><EFBFBD>Ƃ<EFBFBD><C682>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>load()</literal> <20>A <literal>get()</literal> <20>A <literal>list()</literal> <20>A
<literal>iterate()</literal> <20>A <literal>scroll()</literal> <20><><EFBFBD>g<EFBFBD><67><EFBFBD>ăI<C483>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>𕜌<EFBFBD><F0959C8C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɂ͏<C982><CD8F>ɁA
<20><><EFBFBD>̃I<CC83>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><67> <literal>Session</literal> <20>̓<EFBFBD><CC93><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ɒlj<C992><C789><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<20><><EFBFBD><EFBFBD> <literal>flush()</literal> <20><><EFBFBD>Ă΂<C482><CE82><EFBFBD><EFBFBD>ƁA<C681>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>̏<EFBFBD><CC8F>Ԃ̓f<CD83>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>Ɠ<EFBFBD><C693><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̓<EFBFBD><CC93><EFBFBD><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>]<5D>܂Ȃ<DC82><C882>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>A<EFBFBD>c<EFBFBD><63><EFBFBD>Ȑ<EFBFBD><C890>̃I<CC83>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>ă<EFBFBD><C483><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD><49>
<20><><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>́A <literal>evict()</literal> <20><><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68><EFBFBD>g<EFBFBD><67><EFBFBD>Ĉꎟ<C488>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><ED8F9C><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[ScrollableResult cats = sess.createQuery("from Cat as cat").scroll(); //a huge result set
while ( cats.next() ) {
Cat cat = (Cat) cats.get(0);
doSomethingWithACat(cat);
sess.evict(cat);
}]]></programlisting>
<para>
<literal>Session</literal> <20>̓C<CD83><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58><EFBFBD>Z<EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>Ɋ܂܂<DC82><DC82><EFBFBD>ǂ<EFBFBD><C782><EFBFBD><EFBFBD>𔻒f<F094BB92><66><EFBFBD><EFBFBD>߂<EFBFBD>
<literal>contains()</literal> <20><><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68><EFBFBD>񋟂<EFBFBD><F18B9F82>܂<EFBFBD><DC82>B
</para>
<para>
<20><><EFBFBD>ׂẴI<CC83>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>Z<EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>S<EFBFBD>Ɏ<EFBFBD><C98E><EFBFBD><E88F9C><EFBFBD>ɂ́A<literal>Session.clear()</literal>
<20><><EFBFBD>Ăяo<D18F><6F><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
</para>
<para>
<20>񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̂<EFBFBD><CC82>߂ɁA <literal>SessionFactory</literal> <20>ɂ<EFBFBD>
<20>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD>A<EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>S<EFBFBD>́A<CC81>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>S<EFBFBD>̂<EFBFBD><CC82>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><EFBFBD><ED8F9C><EFBFBD><EFBFBD>߂̃<DF82><CC83>\<5C>b<EFBFBD>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EA82BC><EFBFBD><EFBFBD><EFBFBD>`<60><><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular Cat
sessionFactory.evict(Cat.class); //evict all Cats
sessionFactory.evictCollection("Cat.kittens", catId); //evict a particular collection of kittens
sessionFactory.evictCollection("Cat.kittens"); //evict all kitten collections]]></programlisting>
<para>
<literal>CacheMode</literal> <20>͓<EFBFBD><CD93><EFBFBD><EFBFBD>̃Z<CC83>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>Ƃǂ̂悤<CC82>ɑ<EFBFBD><C991>ݍ<EFBFBD><DD8D>p<EFBFBD><70><EFBFBD><EFBFBD><E982A9>
<20>w<EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para>
<literal>CacheMode.NORMAL</literal> - <20>A<EFBFBD>C<EFBFBD>e<EFBFBD><65><EFBFBD>̓ǂݍ<C782><DD8D>݂Ə<DD82><C68F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂œ񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>܂<EFBFBD>
</para>
</listitem>
<listitem>
<para>
<literal>CacheMode.GET</literal> - <20>ǂݍ<C782><DD8D>݂͓񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>A<EFBFBD>f<EFBFBD>[<5B>^<5E><>
<20>X<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EA8D87><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ē񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂<EFBFBD><DD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
</listitem>
<listitem>
<para>
<literal>CacheMode.PUT</literal> - <20>񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ɃA<C983>C<EFBFBD>e<EFBFBD><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂܂<DD82><DC82><EFBFBD><EFBFBD>A<EFBFBD>ǂݍ<C782><DD8D>݂ɂ<DD82>
<20>񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
</listitem>
<listitem>
<para>
<literal>CacheMode.REFRESH</literal> - <20>񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ɃA<C983>C<EFBFBD>e<EFBFBD><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂܂<DD82><DC82><EFBFBD><EFBFBD>A<EFBFBD>ǂݍ<C782><DD8D>݂ɂ<DD82>
<20>񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><EFBFBD>A <literal>hibernate.cache.use_minimal_puts</literal>
<20>̉e<CC89><65><EFBFBD><EFBFBD><EFBFBD>󂯂<EFBFBD><F382AF82>ɁA<C981>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>ǂݍ<C782><DD8D>ނ<EFBFBD><DE82>ׂẴA<CC83>C<EFBFBD>e<EFBFBD><65><EFBFBD>̓񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>Ƀ<EFBFBD><C983>t<EFBFBD><74><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
</listitem>
</itemizedlist>
<para>
<20>񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̓<EFBFBD><CC93>e<EFBFBD><65><EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̈<EFBFBD><CC88><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߂ɁA <literal>Statistics</literal> API<50><49>
<20>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
</para>
<programlisting><![CDATA[Map cacheEntries = sessionFactory.getStatistics()
.getSecondLevelCacheStatistics(regionName)
.getEntries();]]></programlisting>
<para>
<20><><EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982>āA<C481><41><EFBFBD><EFBFBD><EFBFBD>ɃI<C983>v<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>āA<C481>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>G<EFBFBD><47><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>
<20>l<EFBFBD><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E8979D><EFBFBD>”\<5C>Ȍ`<60><><EFBFBD>ŕێ<C595><DB8E><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD>Hibernate<74>ɋ<EFBFBD><C98B><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[hibernate.generate_statistics true
hibernate.cache.use_structured_entries true]]></programlisting>
</sect1>
<sect1 id="performance-querycache" revision="1">
<title><EFBFBD>N<EFBFBD>G<EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>V<EFBFBD><EFBFBD></title>
<para>
<20>N<EFBFBD>G<EFBFBD><47><EFBFBD>̃<EFBFBD><CC83>U<EFBFBD><55><EFBFBD>g<EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>͓<EFBFBD><CD93><EFBFBD><EFBFBD>p<EFBFBD><70><EFBFBD><EFBFBD><EFBFBD>[<5B>^<5E>ʼn<EFBFBD><C589>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>N<EFBFBD>G<EFBFBD><47><EFBFBD>ɑ΂<C991><CE82>Ă̂ݗL<DD97>p<EFBFBD>ł<EFBFBD><C582>B<EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>ɂ́A<CD81>܂<EFBFBD><DC82>ݒ<EFBFBD><DD92>ŗL<C597><4C><EFBFBD>ɂ<EFBFBD><C982>Ȃ<EFBFBD><C882>Ă͂Ȃ<CD82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
<programlisting><![CDATA[hibernate.cache.use_query_cache true]]></programlisting>
<para>
<20><><EFBFBD>̐ݒ<CC90><DD92>͐V<CD90><56><EFBFBD>ɓ<EFBFBD><C993>‚̃L<CC83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̈<EFBFBD><CC88>̍쐬<CC8D><EC90AC><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>‚̓N<CD83>G<EFBFBD><47><EFBFBD>̃<EFBFBD><CC83>U<EFBFBD><55><EFBFBD>g<EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67>
<20>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>i <literal>org.hibernate.cache.StandardQueryCache</literal> <20>j<EFBFBD><6A><EFBFBD>ێ<EFBFBD><DB8E><EFBFBD><EFBFBD>A
<20><><EFBFBD><EFBFBD>1<EFBFBD>‚̓N<CD83>G<EFBFBD><47><EFBFBD>”\<5C>ȃe<C883>[<5B>u<EFBFBD><75><EFBFBD>ւ̍ŐV<C590>̍X<CC8D>V<EFBFBD>^<5E>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>v
<20>i <literal>org.hibernate.cache.UpdateTimestampsCache</literal> <20>j<EFBFBD><6A><EFBFBD>ێ<EFBFBD><DB8E><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20>N<EFBFBD>G<EFBFBD><47><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̓<EFBFBD><CD83>U<EFBFBD><55><EFBFBD>g<EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD>̎<EFBFBD><CC8E>ۂ̗v<CC97>f<EFBFBD>̏<EFBFBD><CC8F>Ԃ̓L<CD83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ƃ<EFBFBD>
<20><><EFBFBD>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͎̂<CC82><CD8E>ʎq<CA8E>̒l<CC92>ƁA<C681>l<EFBFBD>^<5E>̌<EFBFBD><CC8C>ʂ݂̂ł<DD82><C582>B
<20><><EFBFBD>̂<EFBFBD><CC82>߁A<DF81>N<EFBFBD>G<EFBFBD><47><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>͏<EFBFBD><CD8F>ɓ񎟃L<F18E9F83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ƈꏏ<C688>Ɏg<C98E><67><EFBFBD>ׂ<EFBFBD><D782>ł<EFBFBD><C582>B
</para>
<para>
<20>قƂ<D982><C682>ǂ̃N<CC83>G<EFBFBD><47><EFBFBD>̓L<CD83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̉<EFBFBD><CC89>b<EFBFBD><62><EFBFBD>󂯂Ȃ<F382AF82><C882>̂ŁA<C581>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>ł̓N<CD83>G<EFBFBD><47><EFBFBD>̓L<CD83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<20>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ɂ́A <literal>Query.setCacheable(true)</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>΃N<CE83>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃L<CC83><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ʂ<EFBFBD><CA82>T<EFBFBD><54><EFBFBD>A<EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>ɂ<EFBFBD><C982>̌<EFBFBD><CC8C>ʂ<EFBFBD><CA82>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ɒlj<C992><C789><EFBFBD><EFBFBD><EFBFBD>
<20><EFBFBD>ɂȂ<C982><C882>܂<EFBFBD><DC82>B
</para>
<para>
<20>N<EFBFBD>G<EFBFBD><47><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̔j<CC94><6A><EFBFBD>|<7C><><EFBFBD>V<EFBFBD>[<5B><><EFBFBD>ׂ<EFBFBD><D782><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E482B5><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>́A <literal>Query.setCacheRegion()</literal>
<20><><EFBFBD>Ăяo<D18F><6F><EFBFBD>ē<EFBFBD><C493><EFBFBD><EFBFBD>̃N<CC83>G<EFBFBD><47><EFBFBD>ɑ΂<C991><CE82><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̈<EFBFBD><CC88><EFBFBD><EFBFBD>w<EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[List blogs = sess.createQuery("from Blog blog where blog.blogger = :blogger")
.setEntity("blogger", blogger)
.setMaxResults(15)
.setCacheable(true)
.setCacheRegion("frontpages")
.list();]]></programlisting>
<para>
<20>N<EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD>̃N<CC83>G<EFBFBD><47><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̈<EFBFBD><CC88>̃<EFBFBD><CC83>t<EFBFBD><74><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>Ȃ<EFBFBD><C882>Ȃ<EFBFBD><C882>A
<literal>Query.setCacheMode(CacheMode.REFRESH)</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD>ׂ<EFBFBD><D782>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>ƂȂ<C682><C882>f<EFBFBD>[<5B>^<5E><><EFBFBD>ʂ̃v<CC83><76><EFBFBD>Z<EFBFBD>X<EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>čX<C48D>V<EFBFBD><56><EFBFBD><EFBFBD><EA82BD><EFBFBD>i<EFBFBD><69><EFBFBD>Ȃ킿Hibernate<74><65><EFBFBD>ʂ<EFBFBD><CA82>čX<C48D>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>j<EFBFBD>A
<20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɓ<EFBFBD><C993><EFBFBD><EFBFBD>̃N<CC83>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD><55><EFBFBD>g<EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>ă<EFBFBD><C483>t<EFBFBD><74><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɓ<EFBFBD><C993>ɗL<C997>p<EFBFBD>ł<EFBFBD><C582>B
<20><><EFBFBD><EFBFBD><EFBFBD>ɗL<C997>p<EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD>‚̕<C282><CC95>@<40>́A <literal>SessionFactory.evictQueries()</literal>
<20>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ăN<C483>G<EFBFBD><47><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̈<EFBFBD><CC88><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃł<C682><C582>B
</para>
</sect1>
<EFBFBD><EFBFBD>14.1
<sect1 id="performance-collections">
<title><EFBFBD>R<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃p<EFBFBD>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD>̗<EFBFBD><CC97><EFBFBD></title>
<para>
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̘b<CC98><62><EFBFBD>ɂ͂<C982><CD82>łɑ<C582><C991><EFBFBD><EFBFBD>̎<EFBFBD><CC8E>Ԃ<EFBFBD><D482>g<EFBFBD><67><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>̐߂ł<DF82>
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>ɂǂ̂悤<CC82>ɐU<C990><55><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ‚<C982><C282>Ă̘b<CC98><62><EFBFBD><EFBFBD>2<EFBFBD>A3<41><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<sect2 id="performance-collections-taxonomy">
<title><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title>
<para>Hibernate<EFBFBD><EFBFBD>3<EFBFBD>‚̊<EFBFBD><EFBFBD>{<7B>I<EFBFBD>ȃR<C883><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̎<EFBFBD><CC8E>ނ<EFBFBD><DE82><EFBFBD><EFBFBD>`<60><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para><EFBFBD>l<EFBFBD>̃R<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD></para>
</listitem>
<listitem>
<para><EFBFBD><EFBFBD><EFBFBD>Α<EFBFBD><EFBFBD>֘A</para>
</listitem>
<listitem>
<para><EFBFBD><EFBFBD><EFBFBD>Α<EFBFBD><EFBFBD>֘A</para>
</listitem>
</itemizedlist>
<para>
<20><><EFBFBD>̕<EFBFBD><CC95>ނ͂<DE82><CD82>܂<EFBFBD><DC82>܂ȃe<C883>[<5B>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD>L<EFBFBD>[<5B>֘A<D698><41><EFBFBD><EFBFBD><EFBFBD>ʂ<EFBFBD><CA82>܂<EFBFBD><DC82><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>m<EFBFBD><6D><EFBFBD>K<EFBFBD>v<EFBFBD>̂<EFBFBD><CC82><EFBFBD>
<20>֘A<D698><41><EFBFBD>f<EFBFBD><66><EFBFBD>ɂ‚<C982><C282>ĂقƂ<D982><C682>ǂȂɂ<C882><C982><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD>֘A<D698>\<5C><><EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD>̓<EFBFBD><CC93><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>S<EFBFBD>ɗ<EFBFBD><C997><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ́AHibernate<74><65><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̍s<CC8D><73><EFBFBD>X<EFBFBD>V<EFBFBD>A<EFBFBD><EFBFBD><ED8F9C><EFBFBD><EFBFBD>߂Ɏg<C98E><67><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD>[<5B><>
<20>\<5C><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>l<EFBFBD><6C><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>͈ȉ<CD88><C889>̕<EFBFBD><CC95>ނ<EFBFBD><DE82>񎦂<EFBFBD><F18EA682>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para><EFBFBD>C<EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD>t<EFBFBD><EFBFBD><EFBFBD>R<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD></para>
</listitem>
<listitem>
<para>set</para>
</listitem>
<listitem>
<para>bag</para>
</listitem>
</itemizedlist>
<para>
<20><><EFBFBD>ׂẴC<CC83><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD>t<EFBFBD><74><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>imap<61>Alist<73>A<EFBFBD>z<EFBFBD><7A><EFBFBD>j<EFBFBD><6A> <literal>&lt;key&gt;</literal>
<20><> <literal>&lt;index&gt;</literal> <20>J<EFBFBD><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>L<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>̏ꍇ<CC8F><EA8D87>
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̍X<CC8D>V<EFBFBD>͔<EFBFBD><CD94><EFBFBD><EFBFBD>Ɍ<EFBFBD><C98C><EFBFBD><EFBFBD>I<EFBFBD>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD>L<EFBFBD>[<5B>͗L<CD97>p<EFBFBD>ȃC<C883><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD>ɂȂ<C982><C882>AHibernate<74><65>
<20><><EFBFBD><EFBFBD><EFBFBD>̍s<CC8D><73><EFBFBD>X<EFBFBD>V<EFBFBD>܂<EFBFBD><DC82>͍폜<CD8D><ED8F9C><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɁA<C981><41><EFBFBD>̍s<CC8D><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>Ɍ<EFBFBD><C98C>‚<EFBFBD><C282><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
</para>
<para>
set<65><74> <literal>&lt;key&gt;</literal> <20><><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>L<EFBFBD>[<5B>Ɨv<C697>f<EFBFBD>̃J<CC83><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD>̓R<CD83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>f<EFBFBD>̂<EFBFBD><CC82><EFBFBD><EFBFBD>‚<EFBFBD><C282>̌^<5E>ɂ‚<C982><C282>Ă͌<C482><CD8C><EFBFBD><EFBFBD>I<EFBFBD>ł͂Ȃ<CD82><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<20><><EFBFBD>ɕ<EFBFBD><C995><EFBFBD><EFBFBD>v<EFBFBD>f<EFBFBD>A<EFBFBD><EFBFBD>ȃe<C883>L<EFBFBD>X<EFBFBD>g<EFBFBD>A<EFBFBD>o<EFBFBD>C<EFBFBD>i<EFBFBD><69><EFBFBD>t<EFBFBD>B<EFBFBD>[<5B><><EFBFBD>h<EFBFBD>ł͔<C582><CD94><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>B<EFBFBD>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD><58>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD>[<5B>Ɍ<EFBFBD><C98C><EFBFBD><EFBFBD>I<EFBFBD>ɃC<C983><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD><58><EFBFBD>t<EFBFBD><74><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>A1<41>Α<EFBFBD><CE91><EFBFBD>Α<EFBFBD><CE91>֘A<D698>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>āA
<20><><EFBFBD>ɐl<C990>H<EFBFBD><48><EFBFBD>ʎq<CA8E>̏ꍇ<CC8F>͓<EFBFBD><CD93><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E782A2><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>ł<EFBFBD><C582>B<EFBFBD>i<EFBFBD>]<5D>k<EFBFBD>F <literal>SchemaExport</literal>
<20>Ŏ<EFBFBD><C58E>ۂ<EFBFBD> <literal>&lt;set&gt;</literal> <20>̎<EFBFBD><CC8E>L<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E882BD><EFBFBD>Ȃ<EFBFBD><C882>A<EFBFBD><41><EFBFBD>ׂẴJ<CC83><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<literal>not-null="true"</literal> <20><><EFBFBD><EFBFBD><E98CBE><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD>j
</para>
<para>
<literal>&lt;idbag&gt;</literal> <20>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>͑㗝<CD91>L<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>`<60><><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>̂<EFBFBD><CC82><EFBFBD>
<20>X<EFBFBD>V<EFBFBD>͏<EFBFBD><CD8F>ɔ<EFBFBD><C994><EFBFBD><EFBFBD>Ɍ<EFBFBD><C98C><EFBFBD><EFBFBD>I<EFBFBD>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>͍őP<C591>̃P<CC83>[<5B>X<EFBFBD>ł<EFBFBD><C582>B
</para>
<para>
bag<61>͍ň<CD8D><C588>̃P<CC83>[<5B>X<EFBFBD>ł<EFBFBD><C582>Bbag<61>͗v<CD97>f<EFBFBD>̒l<CC92>̏d<CC8F><64><EFBFBD><EFBFBD><EFBFBD>”\<5C>ŁA<C581>C<EFBFBD><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD>J<EFBFBD><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>߁A
<20><><EFBFBD>L<EFBFBD>[<5B>͒<EFBFBD><CD92>`<60><><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>BHibernate<74>ɂ͏d<CD8F><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>ʂ<EFBFBD><CA82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
Hibernate<74>͂<EFBFBD><CD82>̖<EFBFBD><CC96><EFBFBD><EFBFBD>̉<EFBFBD><CC89><EFBFBD><EFBFBD>̂<EFBFBD><CC82>߂ɁA<C981>ύX<CF8D><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɂ͏<C982><CD8F>Ɋ<EFBFBD><C98A>S<EFBFBD>ȍ폜
<20>i<EFBFBD><69><EFBFBD>‚<EFBFBD> <literal>DELETE</literal> <20>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>j<EFBFBD><6A><EFBFBD>s<EFBFBD><73><EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̍č쐬<C48D><EC90AC><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD><EFBFBD><EFBFBD>͔<EFBFBD><CD94><EFBFBD><EFBFBD>ɔ<EFBFBD><C994><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
<para>
1<>Α<EFBFBD><CE91>֘A<D698>ł́A<CD81>u<EFBFBD><75><EFBFBD>L<EFBFBD>[<5B>v<EFBFBD>̓f<CD83>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>̃e<CC83>[<5B>u<EFBFBD><75><EFBFBD>̕<EFBFBD><CC95><EFBFBD><EFBFBD>I<EFBFBD><49>
<20><><EFBFBD>L<EFBFBD>[<5B>ł͂Ȃ<CD82><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ƃɒ<C682><C992>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̏ꍇ<CC8F>ł<EFBFBD><C582><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD>L<EFBFBD>̕<EFBFBD><CC95>ނ͂܂<CD82><DC82>L<EFBFBD>p<EFBFBD>ł<EFBFBD><C582>B
<20>iHibernate<74><65><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̌X<C281>̍s<CC8D><73><EFBFBD>ǂ<EFBFBD><C782><EFBFBD><EFBFBD><EFBFBD><EFBFBD>āu<C481><75><EFBFBD>‚<EFBFBD><C282><EFBFBD>v<EFBFBD><76><EFBFBD>\<5C><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD>j
</para>
</sect2>
<sect2 id="performance-collections-mostefficientupdate">
<title><EFBFBD>X<EFBFBD>V<EFBFBD>ɂ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>ȃR<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD> list<73>Amap<61>Aidbag<61>Aset</title>
<para>
<20><><EFBFBD>ł̋c<CC8B>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>C<EFBFBD><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD>t<EFBFBD><74><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>Ɓi<C681><69><EFBFBD>ʂ́jset<65>͗v<CD97>f<EFBFBD>̒lj<CC92><C789>A<EFBFBD><EFBFBD>A
<20>X<EFBFBD>V<EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>ȑ<EFBFBD><C891><EFBFBD>o<EFBFBD><6F><EFBFBD><EFBFBD>Ƃ͖<C682><CD96><EFBFBD>ł<EFBFBD><C582>B
</para>
<para>
<20>قڊԈႢ<D488>Ȃ<EFBFBD><C882>A<EFBFBD><41><EFBFBD>Α<EFBFBD><CE91>֘A<D698><41><EFBFBD>l<EFBFBD>̃R<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>āA<C481>C<EFBFBD><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD>t<EFBFBD><74><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
set<65><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>D<EFBFBD><44><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD>ˆȏ<C88F><E382A0><EFBFBD>܂<EFBFBD><DC82>B <literal>Set</literal> <20>͂<EFBFBD><CD82><EFBFBD>
<20>\<5C><><EFBFBD>̂<EFBFBD><CC82>߂ɁAHibernate<74>͗v<CD97>f<EFBFBD><66><EFBFBD>u<EFBFBD>ύX<CF8D>v<EFBFBD><76><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɍs<C98D><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>UPDATE</literal>
<20><><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B <literal>Set</literal> <20>ւ̕ύX<CF8D>͏<EFBFBD><CD8F>Ɂi<C981>X<C281>̍s<CC8D>́j<literal>INSERT</literal>
<20><> <literal>DELETE</literal> <20>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>čs<C48D><73><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>J<EFBFBD><4A><EFBFBD>Ԃ<EFBFBD><D482>܂<EFBFBD><DC82><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>͈<EFBFBD><CD88>Α<EFBFBD><CE91>֘A<D698>ɂ<EFBFBD>
<20><><EFBFBD>Ă͂܂<CD82><DC82>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
<para>
<20>z<EFBFBD><7A><EFBFBD>͒x<CD92><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>Ȃ<EFBFBD><C882>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>Ȃ̂ŁA<C581><41><EFBFBD>_<EFBFBD>Ƃ<EFBFBD><C682>āAlist<73>Amap<61>Aidbag<61><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD>
<20>p<EFBFBD>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD>̗ǂ<CC97><C782>iinverse<73>ł͂Ȃ<CD82><C882>j<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>^<5E>C<EFBFBD>v<EFBFBD>ƂȂ<C682><C882>܂<EFBFBD><DC82>Bset<65><74>
<20><><EFBFBD><EFBFBD><EFBFBD>قLjႢ<C788>͂<EFBFBD><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>BHibernate<74>̃A<CC83>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ł́Aset<65>̓R<CD83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̂<EFBFBD><CC82><EFBFBD><EFBFBD>Ƃ<EFBFBD>
<20><><EFBFBD>ʂ̎<CA82><CC8E>ނƂ<DE82><C682>Ċ<EFBFBD><C48A>҂<EFBFBD><D282><EFBFBD><EFBFBD>܂<EFBFBD><DC82>Bset<65>̕\<5C><><EFBFBD>͊֘A<D698><41><EFBFBD>f<EFBFBD><66><EFBFBD>ł͂<C582><CD82><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>R<EFBFBD><52><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>B
</para>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><EFBFBD>f<EFBFBD>U<EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>ꂽHibernate<74>̃h<CC83><68><EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD><66><EFBFBD>ł́A<CD81>ʏ<EFBFBD><CA8F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>inverse="true"</literal> <20><><EFBFBD>w<EFBFBD><EFBFBD><E882B5>1<EFBFBD>Α<EFBFBD><CE91>֘A<D698>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̊֘A<D698>ł́A
<20>X<EFBFBD>V<EFBFBD>͑<EFBFBD><CD91>Έ<EFBFBD><CE88>̊֘A<D698>[<5B>ň<EFBFBD><C588><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̍X<CC8D>V<EFBFBD>p<EFBFBD>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD>̖<EFBFBD><CC96><EFBFBD><EFBFBD>͓<EFBFBD><CD93>Ă͂܂<CD82><DC82>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
</sect2>
<sect2 id="performance-collections-mostefficentinverse">
<title>inverse<EFBFBD>R<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><EFBFBD>œK<EFBFBD><EFBFBD>bag<EFBFBD><EFBFBD>list</title>
<para>
bag<61><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>O<EFBFBD>ɁAbag<61>i<EFBFBD><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD>list<73><74><EFBFBD>j<EFBFBD><6A>set<65><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƃp<C683>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD><58><EFBFBD>ǂ<EFBFBD><C782><EFBFBD><EFBFBD>ʂȃP<C883>[<5B>X<EFBFBD><58>
<20>Љ<D089>܂<EFBFBD><DC82>B <literal>inverse="true"</literal> <20>̃R<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>i<EFBFBD><69><EFBFBD>ʓI<CA93><49>1<EFBFBD>Α<EFBFBD><CE91>֘A<D698>̎g<CC8E><67><EFBFBD><EFBFBD><EFBFBD>Ȃǁj<C781>ŁA
bag<61>̗v<CC97>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>t<EFBFBD>F<EFBFBD>b<EFBFBD>`<60>j<EFBFBD><6A><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD>Ȃ<EFBFBD>bag<61><67>list<73>ɗv<C997>f<EFBFBD><66><EFBFBD>lj<EFBFBD><C789>ł<EFBFBD><C582>܂<EFBFBD><DC82>I
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>Collection.add()</literal> <20><> <literal>Collection.addAll()</literal>
<20><>bag<61><67> <literal>List</literal> <20>ł͏<C582><CD8F><EFBFBD>true<75><65><EFBFBD>Ԃ<EFBFBD><D482>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD>
<20>i <literal>Set</literal> <20>Ƃ͈قȂ<D982><C882>܂<EFBFBD><DC82>j<EFBFBD>B
<20><><EFBFBD><EFBFBD><EFBFBD>͈ȉ<CD88><C889>̋<EFBFBD><CC8B>ʏ<EFBFBD><CA8F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E891AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
</para>
<programlisting><![CDATA[Parent p = (Parent) sess.load(Parent.class, id);
Child c = new Child();
c.setParent(p);
p.getChildren().add(c); //no need to fetch the collection!
sess.flush();]]></programlisting>
</sect2>
<sect2 id="performance-collections-oneshotdelete">
<title><EFBFBD><EFBFBD></title>
<para>
<20><><EFBFBD>X<EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̗v<CC97>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD>ˆ<EFBFBD><C288><C28D><ED8F9C><EFBFBD><EFBFBD>Ƃ͋ɂ߂Ĕ<DF82><C494><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD>ɂȂ邱<C882>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
Hibernate<74>͋<EFBFBD><CD8B><EFBFBD><EFBFBD>ł͂Ȃ<CD82><C882>̂ŁA<C581>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃R<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̏ꍇ<CC8F>i <literal>list.clear()</literal>
<20><><EFBFBD>Ăяo<D18F><6F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃǁj<C781>ł͂<C582><CD82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ׂ<EFBFBD><D782>łȂ<C582><C882><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>m<EFBFBD><6D><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>̏ꍇ<CC8F>́AHibernate<74><65>
<literal>DELETE</literal> <20><><EFBFBD><EFBFBD><EFBFBD>񔭍s<F194AD8D><73><EFBFBD>āA<C481><41><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>ׂďI<C48F><49><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>I
</para>
<para>
<20>T<EFBFBD>C<EFBFBD>Y20<32>̃R<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>Ɉ<EFBFBD><C988>‚̗v<CC97>f<EFBFBD><66><EFBFBD>lj<EFBFBD><C789><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EA82A9><EFBFBD><EFBFBD><EFBFBD>‚̗v<CC97>f<EFBFBD><66><EFBFBD><EFBFBD><ED8F9C><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>܂<EFBFBD><DC82>B
Hibernate<74>͈<EFBFBD><CD88>‚<EFBFBD> <literal>INSERT</literal> <20><><EFBFBD>Ɠ<EFBFBD><C693>‚<EFBFBD> <literal>DELETE</literal> <20><><EFBFBD>𔭍s<F094AD8D><73><EFBFBD>܂<EFBFBD>
<20>i<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>bag<61>łȂ<C582><C882><EFBFBD><EFBFBD>΁j<CE81>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>͊m<CD8A><6D><EFBFBD>ɖ]<5D>܂<EFBFBD><DC82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>B
</para>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A18<31>‚̗v<CC97>f<EFBFBD><66><EFBFBD><EFBFBD><ED8F9C><EFBFBD><EFBFBD>2<EFBFBD>‚<EFBFBD><C282>c<EFBFBD><63><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EA82A9>3<EFBFBD>V<C290><56><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>f<EFBFBD><66><EFBFBD>lj<EFBFBD><C789><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>܂<EFBFBD><DC82>B
<20><><EFBFBD>̂Ƃ<CC82><C682><EFBFBD><EFBFBD>‚̕<C282><CC95>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para>
18<31>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>ˆ<EFBFBD><C288><C28D><ED8F9C><EFBFBD>āA3<41>s<EFBFBD><73><EFBFBD>lj<EFBFBD><C789><EFBFBD><EFBFBD><EFBFBD>
</para>
</listitem>
<listitem>
<para>
<20>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>S<EFBFBD>̂<EFBFBD><CC82><EFBFBD>i <literal>DELETE</literal> <20><>SQL<51><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD><6A><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD>5<EFBFBD>‚̗v<CC97>f<EFBFBD><66><EFBFBD>ׂĂ<D782>
<20>i<EFBFBD><69><EFBFBD>‚<EFBFBD><C282>j<C281>lj<EFBFBD><C789><EFBFBD><EFBFBD><EFBFBD>
</para>
</listitem>
</itemizedlist>
<para>
Hibernate<74>͂<EFBFBD><CD82>̏ꍇ<CC8F><EA8D87>2<EFBFBD>Ԗڂ̕<DA82><CC95>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E891AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ킩<C682><ED82A9><EFBFBD>قnj<D982><C78C><EFBFBD><EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<20>i<EFBFBD><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Hibernate<74><65><EFBFBD><EFBFBD><EFBFBD>̂悤<CC82>Ɍ<EFBFBD><C98C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>]<5D>܂<EFBFBD><DC82><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>ł<EFBFBD><C582><EFBFBD>B<EFBFBD><42><EFBFBD>̂悤<CC82>ȐU<C890><EFBFBD><E99591><EFBFBD><EFBFBD>
<20>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>̃g<CC83><67><EFBFBD>K<EFBFBD>Ȃǂ<C882><C782><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E982A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD>j
</para>
<para>
<20>K<EFBFBD><4B><EFBFBD>ɂ<EFBFBD><C982>A<EFBFBD><41><EFBFBD>̃R<CC83><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂āi<C481>‚܂<C282><DC82>Q<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>߂āj<C481>A<EFBFBD><41><EFBFBD>݂̗v<CC97>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD>ׂĎ<D782><C48E>V<C290><56><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58><EFBFBD>Ԃ<EFBFBD><D482><EFBFBD><EFBFBD>ƂŁA<C581><41><EFBFBD>‚ł<C282><C582><EFBFBD><EFBFBD>̐U<CC90><EFBFBD><E99591><EFBFBD>i2<69>Ԗڂ̐헪<CC90>j<EFBFBD><6A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
<20><><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>͂ƂĂ<C682><C482>֗<EFBFBD><D697>ŋ<EFBFBD><C58B>͂ł<CD82><C582>B
</para>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><EFBFBD><EFBFBD><ED8F9C> <literal>inverse="true"</literal> <20><><EFBFBD>w<EFBFBD><EFBFBD><E882B5><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɂ͍s<CD8D><73><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
</sect2>
</sect1>
<sect1 id="performance-monitoring" revision="1">
<title><EFBFBD>p<EFBFBD>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD>̃<EFBFBD><CC83>j<EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD>O</title>
<para>
<20>œK<C593><4B><EFBFBD>̓<EFBFBD><CD83>j<EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD>p<EFBFBD>t<EFBFBD>H<EFBFBD>[<5B>}<7D><><EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD><6C><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ώ\<5C><><EFBFBD>ɍs<C98D><73><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
Hibernate<74>͓<EFBFBD><CD93><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂<EFBFBD><CC82>ׂĂ͈̔͂̐<CD82><CC90>l<EFBFBD><6C><EFBFBD>񋟂<EFBFBD><F18B9F82>܂<EFBFBD><DC82>B
Hibernate<74>̓<EFBFBD><CC93>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>SessionFactory</literal> <20>P<EFBFBD>ʂŎ擾<C58E>”\<5C>ł<EFBFBD><C582>B
</para>
<sect2 id="performance-monitoring-sf" revision="2">
<title>SessionFactory<EFBFBD>̃<EFBFBD><EFBFBD>j<EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD>O</title>
<para>
<literal>SessionFactory</literal> <20>̃<EFBFBD><CC83>g<EFBFBD><67><EFBFBD>N<EFBFBD>X<EFBFBD>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD>2<EFBFBD>‚̕<C282><CC95>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<20>ŏ<EFBFBD><C58F>̕<EFBFBD><CC95>@<40>́A <literal>sessionFactory.getStatistics()</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD>A
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>Statistics</literal> <20>̓ǂݍ<C782><DD8D>݂<EFBFBD><DD82>\<5C><><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B
</para>
<para>
<literal>StatisticsService</literal> MBean<61><6E><EFBFBD>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982>Ă<EFBFBD><C482><EFBFBD><EFBFBD>΁AHibernate<74><65>JMX<4D><58><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>
<20><><EFBFBD>g<EFBFBD><67><EFBFBD>N<EFBFBD>X<EFBFBD>𔭍s<F094AD8D><73><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B1<42>‚<EFBFBD>MBean<61><6E><EFBFBD><EFBFBD><EFBFBD>ׂĂ<D782> <literal>SessionFactory</literal>
<20>ɑ΂<C991><CE82>ėL<C497><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD>ASessionFactory<72><79><EFBFBD>ƂɈ<C682><C988>‚<EFBFBD>MBean<61><6E><EFBFBD>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
<20>ŏ<EFBFBD><C58F><EFBFBD><EFBFBD>̐ݒ<CC90><DD92><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD>ȉ<EFBFBD><C889>̃R<CC83>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
</para>
<programlisting><![CDATA[// MBean service registration for a specific SessionFactory
Hashtable tb = new Hashtable();
tb.put("type", "statistics");
tb.put("sessionFactory", "myFinancialApp");
ObjectName on = new ObjectName("hibernate", tb); // MBean object name
StatisticsService stats = new StatisticsService(); // MBean implementation
stats.setSessionFactory(sessionFactory); // Bind the stats to a SessionFactory
server.registerMBean(stats, on); // Register the Mbean on the server]]></programlisting>
<programlisting><![CDATA[// MBean service registration for all SessionFactory's
Hashtable tb = new Hashtable();
tb.put("type", "statistics");
tb.put("sessionFactory", "all");
ObjectName on = new ObjectName("hibernate", tb); // MBean object name
StatisticsService stats = new StatisticsService(); // MBean implementation
server.registerMBean(stats, on); // Register the MBean on the server]]></programlisting>
<para>
TODO: <20><><EFBFBD><EFBFBD><EFBFBD>͈Ӗ<CD88><D396><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD>ŏ<EFBFBD><C58F>̃P<CC83>[<5B>X<EFBFBD>́AMBean<61>𒼐ڕ<F092BC90><DA95><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ďg<C48E>p<EFBFBD><70><EFBFBD>܂<EFBFBD><DC82>B2<42>Ԗڂ̃P<CC83>[<5B>X<EFBFBD>́A
<20>g<EFBFBD><67><EFBFBD>O<EFBFBD><4F>session factory<72><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD>JNDI<44><49><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD><6E><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>΂Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
<literal>hibernateStatsBean.setSessionFactoryJNDIName("my/JNDI/Name")</literal> <20><><EFBFBD>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
</para>
<para>
<literal>SessionFactory</literal> <20>ɑ΂<C991><CE82>ă<EFBFBD><C483>j<EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>̊J<CC8A>n<EFBFBD>i<EFBFBD>I<EFBFBD><49><EFBFBD>j<EFBFBD><6A><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para>
<20>ݒ莞<DD92>ɂ́A <literal>hibernate.generate_statistics</literal> <20><> <literal>false</literal> <20>ɂ<EFBFBD><C982>܂<EFBFBD>
</para>
</listitem>
</itemizedlist>
<itemizedlist>
<listitem>
<para>
<20><><EFBFBD>s<EFBFBD><73><EFBFBD>ɁA <literal>sf.getStatistics().setStatisticsEnabled(true)</literal> <20>܂<EFBFBD><DC82><EFBFBD>
<literal>hibernateStatsBean.setStatisticsEnabled(true)</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD>܂<EFBFBD>
</para>
</listitem>
</itemizedlist>
<para>
<20><><EFBFBD>v<EFBFBD><76> <literal>clear()</literal> <20><><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68><EFBFBD>g<EFBFBD><67><EFBFBD>Ď蓮<C48E>Ń<EFBFBD><C583>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
<20>T<EFBFBD>}<7D><><EFBFBD><EFBFBD> <literal>logSummary()</literal> <20><><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>logger<65>ɑ<EFBFBD><C991><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD>
<20>iinfo<66><6F><EFBFBD>x<EFBFBD><78><EFBFBD>ł<EFBFBD><C582>j<EFBFBD>B
</para>
</sect2>
<sect2 id="performance-monitoring-metrics" revision="1">
<title><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>X</title>
<para>
<20><><EFBFBD><EFBFBD><EFBFBD>̂<EFBFBD><CC82>̂<EFBFBD><CC82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>ׂĂ̎g<CC8E>p<EFBFBD>”\<5C>ȃJ<C883>E<EFBFBD><45><EFBFBD>^<5E><> <literal>Statistics</literal>
<20>C<EFBFBD><43><EFBFBD>^<5E>[<5B>t<EFBFBD>F<EFBFBD>C<EFBFBD>X<EFBFBD><58>API<50>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>A3<41>‚̕<C282><CC95>ނ<EFBFBD><DE82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
</para>
<itemizedlist>
<listitem>
<para>
<20><><EFBFBD>g<EFBFBD><67><EFBFBD>N<EFBFBD>X<EFBFBD>͈<EFBFBD><CD88>ʓI<CA93><49> <literal>Session</literal> <20>̎g<CC8E><67><EFBFBD><EFBFBD><EFBFBD>Ɗ֌W<D68C><57><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
<20>I<EFBFBD>[<5B>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̐<EFBFBD><CC90><EFBFBD>JDBC<42>R<EFBFBD>l<EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>Ɗ֘A<D698><41><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>̂Ɠ<CC82><C693><EFBFBD><EFBFBD>ł<EFBFBD><C582>B
</para>
</listitem>
<listitem>
<para>
<20><><EFBFBD>g<EFBFBD><67><EFBFBD>N<EFBFBD>X<EFBFBD>͗v<CD97>f<EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ȂǑS<C791>̂<EFBFBD>
<20>֌W<D68C><57><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>i<EFBFBD>ʖ<EFBFBD><CA96>̓O<CD83><4F><EFBFBD>[<5B>o<EFBFBD><6F><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>N<EFBFBD>X<EFBFBD>ł<EFBFBD><C582>j<EFBFBD>B
</para>
</listitem>
<listitem>
<para>
<20><><EFBFBD>g<EFBFBD><67><EFBFBD>N<EFBFBD>X<EFBFBD>̏ڍׂ͓<D782><CD93><EFBFBD><EFBFBD>̃G<CC83><47><EFBFBD>e<EFBFBD>B<EFBFBD>e<EFBFBD>B<EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD>A<EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̈<EFBFBD><CC88>Ɋ֌W<D68C><57><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
</para>
</listitem>
</itemizedlist>
<para>
<20><><EFBFBD>Ƃ<EFBFBD><C682>āA<C481>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̃q<CC83>b<EFBFBD>g<EFBFBD>A<EFBFBD>q<EFBFBD>b<EFBFBD>g<EFBFBD>~<7E>X<EFBFBD><58><EFBFBD>A<EFBFBD>v<EFBFBD>f<EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD>̊<EFBFBD><CC8A><EFBFBD><EFBFBD>A<EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD>̎<EFBFBD><CC8E>s<EFBFBD><73>
<20>K<EFBFBD>v<EFBFBD>ȕ<EFBFBD><C895>ώ<EFBFBD><CF8E>Ԃ<EFBFBD><D482>m<EFBFBD>F<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD>~<7E><><EFBFBD>b<EFBFBD>̐<EFBFBD><CC90>l<EFBFBD><6C>Java<76>̋ߎ<CC8B><DF8E><EFBFBD><EFBFBD>󂯂邱<F382AF82>Ƃɒ<C682><C992>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
Hibernate<74><65>JVM<56>̐<EFBFBD><CC90>x<EFBFBD>ɐ<EFBFBD><C990><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>v<EFBFBD><76><EFBFBD>b<EFBFBD>g<EFBFBD>t<EFBFBD>H<EFBFBD>[<5B><><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>Ă<EFBFBD>10<31>b<EFBFBD>P<EFBFBD>ʂł<CA82><C582><EFBFBD><EFBFBD><EFBFBD><EFBFBD>m<EFBFBD>łȂ<C582><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
</para>
<para>
<20>P<EFBFBD><50><EFBFBD><EFBFBD>getter<65>̓O<CD83><4F><EFBFBD>[<5B>o<EFBFBD><6F><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>N<EFBFBD>X<EFBFBD>i<EFBFBD><69><EFBFBD>Ȃ킿<C882><ED82BF><EFBFBD><EFBFBD><EFBFBD>̃G<CC83><47><EFBFBD>e<EFBFBD>B<EFBFBD>e<EFBFBD>B<EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̈<EFBFBD><CC88>Ȃǂɔ<C782><C994><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>j
<20>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>߂Ɏg<C98E><67><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>̃G<CC83><47><EFBFBD>e<EFBFBD>B<EFBFBD>e<EFBFBD>B<EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̈<EFBFBD><CC88>̃<EFBFBD><CC83>g<EFBFBD><67><EFBFBD>N<EFBFBD>X<EFBFBD>́A
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̖<EFBFBD><CC96>O<EFBFBD><4F><EFBFBD>A<EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD>HQL<51>ASQL<51>\<5C><><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ăA<C483>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>ɏڂ<C98F><DA82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>́A
<literal>Statistics</literal> <20>A <literal>EntityStatistics</literal> <20>A <literal>CollectionStatistics</literal>
<20>A <literal>SecondLevelCacheStatistics</literal> <20>A <literal>QueryStatistics</literal> API<50><49>javadoc<6F><63>
<20>Q<EFBFBD>Ƃ<EFBFBD><C682>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD>ȉ<EFBFBD><C889>̃R<CC83>[<5B>h<EFBFBD>͊ȒP<C892>ȗ<EFBFBD><C897>ł<EFBFBD><C582>B
</para>
<programlisting><![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics();
double queryCacheHitCount = stats.getQueryCacheHitCount();
double queryCacheMissCount = stats.getQueryCacheMissCount();
double queryCacheHitRatio =
queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);
log.info("Query Hit ratio:" + queryCacheHitRatio);
EntityStatistics entityStats =
stats.getEntityStatistics( Cat.class.getName() );
long changes =
entityStats.getInsertCount()
+ entityStats.getUpdateCount()
+ entityStats.getDeleteCount();
log.info(Cat.class.getName() + " changed " + changes + "times" );]]></programlisting>
<para>
<20><><EFBFBD>ׂẴG<CC83><47><EFBFBD>e<EFBFBD>B<EFBFBD>e<EFBFBD>B<EFBFBD>A<EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>N<EFBFBD>G<EFBFBD><47><EFBFBD>A<EFBFBD>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̈<EFBFBD><CC88>ɑ΂<C991><CE82>čs<C48D><73><EFBFBD><EFBFBD>́A
<literal>getQueries()</literal> <20>A <literal>getEntityNames()</literal><EFBFBD>A
<literal>getCollectionRoleNames()</literal> <20>A <literal>getSecondLevelCacheRegionNames()</literal> <20><><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68>
<20><><EFBFBD><EFBFBD><EA82BC><EFBFBD>̖<EFBFBD><CC96>O<EFBFBD>̃<EFBFBD><CC83>X<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><E693BE><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD><DC82>B
</para>
</sect2>
</sect1>
</chapter>