635 lines
27 KiB
XML
635 lines
27 KiB
XML
|
<?xml version="1.0" encoding="Shift_JIS"?>
|
|||
|
<chapter id="toolsetguide" revision="2">
|
|||
|
<title>Toolset Guide
|
|||
|
|
|||
|
<20>c<EFBFBD>[<5B><><EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD>K<EFBFBD>C<EFBFBD>h
|
|||
|
</title>
|
|||
|
|
|||
|
<para>
|
|||
|
Hibernate<74><65><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>E<EFBFBD><45><EFBFBD>h<EFBFBD>g<EFBFBD><67><EFBFBD>b<EFBFBD>v<EFBFBD>G<EFBFBD><47><EFBFBD>W<EFBFBD>j<EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>́A
|
|||
|
Eclipse<73>v<EFBFBD><76><EFBFBD>O<EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>}<7D><><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD><43><EFBFBD>c<EFBFBD>[<5B><><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ant<6E>^<5E>X<EFBFBD>N<EFBFBD><4E><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃʼn\<5C>ł<EFBFBD><C582>B
|
|||
|
</para>
|
|||
|
|
|||
|
<para>
|
|||
|
<emphasis>Hibernate Tools</emphasis> <20>͌<EFBFBD><CD8C>݁A<DD81><41><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>̃<EFBFBD><CC83>o<EFBFBD>[<5B>X<EFBFBD>G<EFBFBD><47><EFBFBD>W<EFBFBD>j<EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F>Ant<6E>^<5E>X<EFBFBD>N<EFBFBD>ɉ<EFBFBD><C989><EFBFBD><EFBFBD>āAEclipseIDE<44>̃v<CC83><76><EFBFBD>O<EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>܂݂܂<DD82><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
<itemizedlist>
|
|||
|
<listitem><para>
|
|||
|
<emphasis><EFBFBD>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>G<EFBFBD>f<EFBFBD>B<EFBFBD>^:</emphasis>
|
|||
|
Hibernate<74><65>XML<4D>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>p<EFBFBD>̃G<CC83>f<EFBFBD>B<EFBFBD>^<5E>ŁA
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>⊮<EFBFBD>ƍ\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD>T<EFBFBD>|<7C>[<5B>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B/<2F>t<EFBFBD>B<EFBFBD>[<5B><><EFBFBD>h<EFBFBD><68><EFBFBD>ɑ<C991><CE82>鎩<EFBFBD><E98EA9><EFBFBD>⊮<EFBFBD><E28AAE><EFBFBD>T<EFBFBD>|<7C>[<5B>g<EFBFBD><67><EFBFBD>A
|
|||
|
<20>ʏ<EFBFBD><CA8F><EFBFBD>XML<4D>G<EFBFBD>f<EFBFBD>B<EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͂ł<CD82><C582>B
|
|||
|
</para></listitem>
|
|||
|
<listitem><para>
|
|||
|
<emphasis>Console:</emphasis>
|
|||
|
<20>R<EFBFBD><52><EFBFBD>\<5C>[<5B><><EFBFBD>̓G<CD83>N<EFBFBD><4E><EFBFBD>v<EFBFBD>X<EFBFBD>̐V<CC90><56><EFBFBD><EFBFBD><EFBFBD>r<EFBFBD><72><EFBFBD>[<5B>ł<EFBFBD><C582>B
|
|||
|
<20>R<EFBFBD><52><EFBFBD>\<5C>[<5B><><EFBFBD>R<EFBFBD><52><EFBFBD>t<EFBFBD>B<EFBFBD>M<EFBFBD><4D><EFBFBD><EFBFBD><EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃c<CC83><63><EFBFBD>[<5B>I<EFBFBD>[<5B>o<EFBFBD>[<5B>r<EFBFBD><72><EFBFBD>[<5B>ɉ<EFBFBD><C989><EFBFBD><EFBFBD>āA<C481>i<EFBFBD><69><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>Ƃ<EFBFBD><C682>̊֘A<D698>̑<EFBFBD><CC91>ݍ<EFBFBD><DD8D>p<EFBFBD>r<EFBFBD><72><EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
<20>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD><58>HQL<51><4C><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>A<EFBFBD><41><EFBFBD>ʂڃG<DA83>N<EFBFBD><4E><EFBFBD>v<EFBFBD>X<EFBFBD><58><EFBFBD>Ō<EFBFBD><C58C>邱<EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
|
|||
|
</para></listitem>
|
|||
|
<listitem><para>
|
|||
|
<emphasis><EFBFBD>J<EFBFBD><EFBFBD><EFBFBD>E<EFBFBD>B<EFBFBD>U<EFBFBD>[<5B>h</emphasis>
|
|||
|
Hibernate<74><65>Eclipse<73>c<EFBFBD>[<5B><><EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD><EFBFBD><C282>̃E<CC83>B<EFBFBD>U<EFBFBD>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD><F18B9F82>܂<EFBFBD><DC82>B
|
|||
|
<20>E<EFBFBD>B<EFBFBD>U<EFBFBD>[<5B>h<EFBFBD><68><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>Hibernate<74>̐ݒ<CC90><DD92>t<EFBFBD>@<40>C<EFBFBD><43>(cfg.xml)<29><><EFBFBD><EFBFBD><EFBFBD>₭<CE82><E282AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>̃f<CC83>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>X<EFBFBD>L<EFBFBD>[<5B>}<7D><>POJO<4A>̃\<5C>[<5B>X<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD>Hibernate<74>̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>ւƁA
|
|||
|
<20><><EFBFBD>S<EFBFBD>Ƀ<EFBFBD><C983>o<EFBFBD>[<5B>X<EFBFBD>G<EFBFBD><47><EFBFBD>W<EFBFBD>j<EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD>邱<EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
|
|||
|
<20><><EFBFBD>o<EFBFBD>[<5B>X<EFBFBD>G<EFBFBD><47><EFBFBD>W<EFBFBD>j<EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>E<EFBFBD>B<EFBFBD>U<EFBFBD>[<5B>h<EFBFBD>̓J<CD83>X<EFBFBD>^<5E>}<7D>C<EFBFBD>Y<EFBFBD>\<5C>ȃe<C883><65><EFBFBD>v<EFBFBD><76><EFBFBD>[<5B>g<EFBFBD><67><EFBFBD>T<EFBFBD>|<7C>[<5B>g<EFBFBD><67><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
</para></listitem>
|
|||
|
<listitem><para>
|
|||
|
<emphasis>Ant Tasks:</emphasis>
|
|||
|
</para></listitem>
|
|||
|
|
|||
|
</itemizedlist>
|
|||
|
|
|||
|
<para>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>ڂ<EFBFBD><DA82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <emphasis>Hibernate Tools</emphasis> <20>p<EFBFBD>b<EFBFBD>P<EFBFBD>[<5B>W<EFBFBD>Ƃ<EFBFBD><C682>̃h<CC83>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>Q<EFBFBD>Ƃ<EFBFBD><C682>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
|
|||
|
</para>
|
|||
|
|
|||
|
<para>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>AHibernate<74>̃<EFBFBD><CC83>C<EFBFBD><43><EFBFBD>p<EFBFBD>b<EFBFBD>P<EFBFBD>[<5B>W<EFBFBD><57> <emphasis>SchemaExport</emphasis> <20>A
|
|||
|
<20>ʖ<EFBFBD> <literal>hbm2ddl</literal> <20><><EFBFBD>܂݂܂<DD82>(Hibernate<74><65><EFBFBD>ŃI<C583><49><EFBFBD>U<EFBFBD>t<EFBFBD><74><EFBFBD>C<EFBFBD>Ŏg<C58E>p<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD>)<29>B
|
|||
|
</para>
|
|||
|
|
|||
|
<sect1 id="toolsetguide-s1" revision="2">
|
|||
|
<title><EFBFBD>X<EFBFBD>L<EFBFBD>[<5B>}<7D>̎<EFBFBD><CC8E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title>
|
|||
|
|
|||
|
<para>
|
|||
|
DDL<44><4C>Hibernate<74><65><EFBFBD>[<5B>e<EFBFBD>B<EFBFBD><42><EFBFBD>e<EFBFBD>B<EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>琶<EFBFBD><E790B6><EFBFBD><EFBFBD><EFBFBD>邱<EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꂽ<EFBFBD>X<EFBFBD>L<EFBFBD>[<5B>}<7D>̓G<CD83><47><EFBFBD>e<EFBFBD>B<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD>R<EFBFBD><52><EFBFBD>N<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>̃e<CC83>[<5B>u<EFBFBD><75><EFBFBD>ɑ<C991><CE82><EFBFBD><EFBFBD>Q<EFBFBD>Ɛ<EFBFBD><C690><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD>L<EFBFBD>[<5B>ƊO<C68A><4F><EFBFBD>L<EFBFBD>[)<29><><EFBFBD>܂݂܂<DD82><DC82>B
|
|||
|
<20>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD>ƃV<C683>[<5B>P<EFBFBD><50><EFBFBD>X<EFBFBD>̓}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F><EFBFBD>鎯<EFBFBD>ʎq<CA8E>W<EFBFBD>F<EFBFBD>l<EFBFBD><6C><EFBFBD>[<5B>^<5E>ɑ<C991><CE82>Đ<EFBFBD><C490><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
<para>
|
|||
|
DDL<44>̓x<CD83><78><EFBFBD>_<EFBFBD>[<5B>ˑ<EFBFBD><CB91>Ȃ̂ŁA<C581><41><EFBFBD>̃c<CC83>[<5B><><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>Ƃ<EFBFBD><C682>́A<literal>hibernate.dialect</literal>
|
|||
|
<20>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42>SQL<51><4C> <literal><EFBFBD><EFBFBD><EFBFBD><EFBFBD></literal> <20><><EFBFBD>w<EFBFBD><77> <emphasis><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD><EFBFBD></emphasis> <20>B
|
|||
|
</para>
|
|||
|
|
|||
|
<para>
|
|||
|
<20>܂<EFBFBD><DC82>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>L<EFBFBD>[<5B>}<7D><><EFBFBD><EFBFBD><EFBFBD>P<EFBFBD><50><EFBFBD><EFBFBD><EFBFBD>悤<EFBFBD>ɁA<C981>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>J<EFBFBD>X<EFBFBD>^<5E>}<7D>C<EFBFBD>Y<EFBFBD><59><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
|
|||
|
</para>
|
|||
|
|
|||
|
<sect2 id="toolsetguide-s1-2" revision="3">
|
|||
|
<title><EFBFBD>X<EFBFBD>L<EFBFBD>[<5B>}<7D>̃J<CC83>X<EFBFBD>^<5E>}<7D>C<EFBFBD>Y</title>
|
|||
|
|
|||
|
<para>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Hibernate<74>̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>v<EFBFBD>f<EFBFBD>ł́A<CD81>I<EFBFBD>v<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>length</literal> <20>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̑<EFBFBD><CC91><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>`<60><><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B
|
|||
|
<20><><EFBFBD>̑<EFBFBD><CC91><EFBFBD><EFBFBD>ŃJ<C583><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݒ肷<DD92>邱<EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD>(<28>܂<EFBFBD><DC82><EFBFBD>NUMERIC/DECIMAL<41>^<5E>̃f<CC83>[<5B>^<5E>̐<EFBFBD><CC90>x<EFBFBD><78><EFBFBD>ݒ<EFBFBD><DD92>ł<EFBFBD><C582>܂<EFBFBD>)<29>B
|
|||
|
</para>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>not-null</literal> <20><><EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD>̃J<CC83><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>NOT NULL</literal> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F090B690><EFBFBD><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD><6A>
|
|||
|
<literal>unique</literal> <20><><EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD>̃J<CC83><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>UNIQUE</literal> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F090B690><EFBFBD><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD><6A><EFBFBD>ݒ<EFBFBD><DD92>ł<EFBFBD><C582><EFBFBD><EFBFBD>^<5E>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<many-to-one name="bar" column="barId" not-null="true"/>]]></programlisting>
|
|||
|
|
|||
|
<programlisting><![CDATA[<element column="serialNumber" type="long" not-null="true" unique="true"/>]]></programlisting>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>unique-key</literal> <20><><EFBFBD><EFBFBD><EFBFBD>̓J<CD83><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD>[<5B>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>Ĉ<EFBFBD><C488>̃L<CC83>[<5B><><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982>邽<EFBFBD>߂Ɏg<C98E><67><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
<20><><EFBFBD>݁A<literal>unique-key</literal> <20><><EFBFBD><EFBFBD><EFBFBD>Ŏw<C58E>肳<EFBFBD>ꂽ<EFBFBD>l<EFBFBD>͐<EFBFBD><CD90><EFBFBD><EFBFBD>̎w<CC8E><77><EFBFBD>ɂ<EFBFBD> <emphasis><EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>ꂸ</emphasis> <20>A
|
|||
|
<20>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>ŃJ<C583><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD>[<5B>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>邱<EFBFBD>Ƃɂ̂ݎg<DD8E><67><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<many-to-one name="org" column="orgId" unique-key="OrgEmployeeId"/>
|
|||
|
<property name="employeeId" unique-key="OrgEmployee"/>]]></programlisting>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>index</literal> <20><><EFBFBD><EFBFBD><EFBFBD>̓}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>J<EFBFBD><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>Đ<EFBFBD><C490><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD>̖<EFBFBD><CC96>O<EFBFBD><4F><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>J<EFBFBD><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P<EFBFBD>̃C<CC83><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD>ɃO<C983><4F><EFBFBD>[<5B>v<EFBFBD><76><EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD>P<EFBFBD>ɁA<C981><41><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>肷<EFBFBD>邾<EFBFBD><E982BE><EFBFBD>ł<EFBFBD><C582>B
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<property name="lastName" index="CustName"/>
|
|||
|
<property name="firstName" index="CustName"/>]]></programlisting>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>foreign-key</literal> <20><><EFBFBD><EFBFBD><EFBFBD>́A<CD81><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꂽ<EFBFBD>O<EFBFBD><4F><EFBFBD>L<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>̖<EFBFBD><CC96>O<EFBFBD><4F><EFBFBD>I<EFBFBD>[<5B>o<EFBFBD>[<5B><><EFBFBD>C<EFBFBD>h<EFBFBD><68><EFBFBD>邽<EFBFBD>߂Ɏg<C98E>p<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<many-to-one name="bar" column="barId" foreign-key="FKFooBar"/>]]></programlisting>
|
|||
|
|
|||
|
<para>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>v<EFBFBD>f<EFBFBD>́A<CD81>q <literal><column></literal> <20>v<EFBFBD>f<EFBFBD><66><EFBFBD>L<EFBFBD>q<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>͕<EFBFBD><CD95><EFBFBD><EFBFBD>J<EFBFBD><4A><EFBFBD><EFBFBD><EFBFBD>^<5E>̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>ɂ͓<C982><CD93>ɗL<C997>p<EFBFBD>ł<EFBFBD><C582>B
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<property name="name" type="my.customtypes.Name"/>
|
|||
|
<column name="last" not-null="true" index="bar_idx" length="30"/>
|
|||
|
<column name="first" not-null="true" index="bar_idx" length="20"/>
|
|||
|
<column name="initial"/>
|
|||
|
</property>]]></programlisting>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>default</literal> <20><><EFBFBD><EFBFBD><EFBFBD>̓J<CD83><4A><EFBFBD><EFBFBD><EFBFBD>̃f<CC83>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>l<EFBFBD><6C><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD>
|
|||
|
(<28>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̐V<CC90><56><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD><58><EFBFBD>ۑ<EFBFBD><DB91><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>ɁA
|
|||
|
<20>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>֓<EFBFBD><D693><EFBFBD><EFBFBD>l<EFBFBD><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ׂ<EFBFBD><D782>ł<EFBFBD>)<29>B
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<property name="credits" type="integer" insert="false">
|
|||
|
<column name="credits" default="10"/>
|
|||
|
</property>]]></programlisting>
|
|||
|
|
|||
|
<programlisting><![CDATA[<version name="version" type="integer" insert="false">
|
|||
|
<column name="version" default="0"/>
|
|||
|
</property>]]></programlisting>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>sql-type</literal> <20><><EFBFBD><EFBFBD><EFBFBD>ŁA<C581>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD><67>Hibernate<74>^<5E><><EFBFBD><EFBFBD>SQL<51>̃f<CC83>[<5B>^<5E>^<5E>ւ̃}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD><4F><EFBFBD>I<EFBFBD>[<5B>o<EFBFBD>[<5B><><EFBFBD>C<EFBFBD>h<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
|
|||
|
<programlisting><![CDATA[<property name="balance" type="float">
|
|||
|
<column name="balance" sql-type="decimal(13,3)"/>
|
|||
|
</property>]]></programlisting>
|
|||
|
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>check</literal> <20><><EFBFBD><EFBFBD><EFBFBD>Ń`<60>F<EFBFBD>b<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>肷<EFBFBD>邱<EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<property name="foo" type="integer">
|
|||
|
<column name="foo" check="foo > 10"/>
|
|||
|
</property>]]></programlisting>
|
|||
|
|
|||
|
<programlisting><![CDATA[<class name="Foo" table="foos" check="bar < 100.0">
|
|||
|
...
|
|||
|
<property name="bar" type="float"/>
|
|||
|
</class>]]></programlisting>
|
|||
|
|
|||
|
|
|||
|
<table frame="topbot" id="schemattributes-summary" revision="2">
|
|||
|
<title><EFBFBD>܂Ƃ<EFBFBD></title>
|
|||
|
<tgroup cols="3">
|
|||
|
<colspec colwidth="1*"/>
|
|||
|
<colspec colwidth="1*"/>
|
|||
|
<colspec colwidth="2.5*"/>
|
|||
|
<thead>
|
|||
|
<row>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
<entry><EFBFBD>l</entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
</row>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<row>
|
|||
|
<entry><literal>length</literal></entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD>l</entry>
|
|||
|
<entry><EFBFBD>J<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̒<EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry><literal>precision</literal></entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD>l</entry>
|
|||
|
<entry><EFBFBD>J<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>DECIMAL<EFBFBD>^<5E>̐<EFBFBD><CC90>x<EFBFBD>iprecision<6F>j</entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry><literal>scale</literal></entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD>l</entry>
|
|||
|
<entry><EFBFBD>J<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>DECIMAL<EFBFBD>^<5E>̃X<CC83>P<EFBFBD>[<5B><><EFBFBD>iscale<6C>j</entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry><literal>not-null</literal></entry>
|
|||
|
<entry><literal>true|false</literal></entry>
|
|||
|
<entry><EFBFBD>J<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>null<EFBFBD>l<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry><literal>unique</literal></entry>
|
|||
|
<entry><literal>true|false</literal></entry>
|
|||
|
<entry><EFBFBD>J<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD>[<5B>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><C282>Ƃ<EFBFBD><C682>w<EFBFBD>肵<EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry><literal>index</literal></entry>
|
|||
|
<entry><literal><EFBFBD>C<EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD><EFBFBD></literal> </entry>
|
|||
|
<entry>(<28><><EFBFBD><EFBFBD><EFBFBD>J<EFBFBD><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29>C<EFBFBD><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD>̖<EFBFBD><CC96>O<EFBFBD><4F><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry><literal>unique-key</literal></entry>
|
|||
|
<entry><literal><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD>[<5B>N<EFBFBD>L<EFBFBD>[<5B><></literal></entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>J<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃<EFBFBD><EFBFBD>j<EFBFBD>[<5B>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>̖<EFBFBD><CC96>O<EFBFBD><4F><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry><literal>foreign-key</literal></entry>
|
|||
|
<entry><literal><EFBFBD>O<EFBFBD><EFBFBD><EFBFBD>L<EFBFBD>[<5B><></literal></entry>
|
|||
|
<entry>
|
|||
|
<one-to-one><EFBFBD>A<many-to-one><EFBFBD>A<many-to-many><EFBFBD>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>v<EFBFBD>f<EFBFBD><66><EFBFBD>g<EFBFBD><67><EFBFBD>āA
|
|||
|
<20>֘A<D698>ɑ<C991><CE82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꂽ<EFBFBD>O<EFBFBD><4F><EFBFBD>L<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>̖<EFBFBD><CC96>O<EFBFBD><4F><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
<literal>SchemaExport</literal> <20><> <literal>inverse="true"</literal> <20><><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD><6C><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ƃɒ<C682><C992>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry><literal>sql-type</literal></entry>
|
|||
|
<entry><literal>SQL<EFBFBD>̃J<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^</literal></entry>
|
|||
|
|
|||
|
<entry>
|
|||
|
<20>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>̃J<CC83><4A><EFBFBD><EFBFBD><EFBFBD>^<5E><><EFBFBD>I<EFBFBD>[<5B>o<EFBFBD>[<5B><><EFBFBD>C<EFBFBD>h<EFBFBD><68><EFBFBD>܂<EFBFBD>( <literal><column></literal> <20>v<EFBFBD>f<EFBFBD>̑<EFBFBD><CC91><EFBFBD><EFBFBD>̂<EFBFBD>)
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry><literal>default</literal></entry>
|
|||
|
<entry>SQL<EFBFBD><EFBFBD></entry>
|
|||
|
|
|||
|
<entry>
|
|||
|
<20>J<EFBFBD><4A><EFBFBD><EFBFBD><EFBFBD>̃f<CC83>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>l<EFBFBD><6C><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry><literal>check</literal></entry>
|
|||
|
<entry>SQL<EFBFBD><EFBFBD></entry>
|
|||
|
|
|||
|
<entry>
|
|||
|
<20>J<EFBFBD><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD><EFBFBD>SQL<51>̃`<60>F<EFBFBD>b<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쐬<EFBFBD><EC90AC><EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
</tbody>
|
|||
|
</tgroup>
|
|||
|
</table>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal><comment></literal> <20>v<EFBFBD>f<EFBFBD>Ő<EFBFBD><C590><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>L<EFBFBD>[<5B>}<7D>ɃR<C983><52><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>w<EFBFBD>肷<EFBFBD>邱<EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
|
|||
|
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<class name="Customer" table="CurCust">
|
|||
|
<comment>Current customers only</comment>
|
|||
|
...
|
|||
|
</class>]]></programlisting>
|
|||
|
|
|||
|
<programlisting><![CDATA[<property name="balance">
|
|||
|
<column name="bal">
|
|||
|
<comment>Balance in USD</comment>
|
|||
|
</column>
|
|||
|
</property>]]></programlisting>
|
|||
|
|
|||
|
<para>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>DDL<44><4C> <literal>comment on table</literal> <20><> <literal>comment on column</literal> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
</sect2>
|
|||
|
|
|||
|
<sect2 id="toolsetguide-s1-3" revision="2">
|
|||
|
<title><EFBFBD>c<EFBFBD>[<5B><><EFBFBD>̎<EFBFBD><CC8E>s</title>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>SchemaExport</literal> <20>͕W<CD95><57><EFBFBD>o<EFBFBD>͂ɑ<C991><CE82><EFBFBD>DDL<44>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD><6F><EFBFBD>ADDL<44><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>java -cp </literal> <emphasis>hibernate_classpaths</emphasis>
|
|||
|
<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options mapping_files</emphasis>
|
|||
|
</para>
|
|||
|
|
|||
|
<table frame="topbot">
|
|||
|
<title> <literal>SchemaExport</literal> Command Line Options
|
|||
|
|
|||
|
<literal>SchemaExport</literal> <20>̃R<CC83>}<7D><><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD><43><EFBFBD>I<EFBFBD>v<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD>
|
|||
|
</title>
|
|||
|
<tgroup cols="2">
|
|||
|
<colspec colwidth="1.5*"/>
|
|||
|
<colspec colwidth="2*"/>
|
|||
|
<thead>
|
|||
|
<row>
|
|||
|
<entry><EFBFBD>I<EFBFBD>v<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
</row>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<row>
|
|||
|
<entry> <literal>--quiet</literal> </entry>
|
|||
|
<entry><EFBFBD>X<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>W<EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>͂ɏo<EFBFBD>͂<EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>--drop</literal> </entry>
|
|||
|
<entry><EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD>̍폜<CC8D><ED8F9C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD></entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry> <literal>--create</literal> </entry>
|
|||
|
<entry><EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD>̐<EFBFBD><CC90><EFBFBD><EFBFBD>݂̂<CC82><DD82>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry> <literal>--text</literal> </entry>
|
|||
|
<entry><EFBFBD>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>ɃG<C983>N<EFBFBD>X<EFBFBD>|<7C>[<5B>g<EFBFBD><67><EFBFBD>܂<EFBFBD><DC82><EFBFBD></entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>--output=my_schema.ddl</literal> </entry>
|
|||
|
<entry> DDL<44>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD><67><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>ɏo<C98F>͂<EFBFBD><CD82>܂<EFBFBD></entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry> <literal>--naming=eg.MyNamingStrategy</literal> </entry>
|
|||
|
<entry> <literal>NamingStrategy</literal> <20><><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry><literal>--config=hibernate.cfg.xml</literal> </entry>
|
|||
|
<entry>XML<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Hibernate<74>̒<EFBFBD><CC92>`<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǂݍ<C782><DD8D>݂܂<DD82></entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>--properties=hibernate.properties</literal> </entry>
|
|||
|
<entry><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD>ǂݍ<C782><DD8D>݂܂<DD82></entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>--format</literal> </entry>
|
|||
|
<entry><EFBFBD>X<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>ɐ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SQL<EFBFBD><EFBFBD><EFBFBD>ǂ݂₷<EFBFBD><EFBFBD><EFBFBD>悤<EFBFBD>Ƀt<EFBFBD>H<EFBFBD>[<5B>}<7D>b<EFBFBD>g<EFBFBD><67><EFBFBD>܂<EFBFBD></entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>--delimiter=x</literal> </entry>
|
|||
|
<entry><EFBFBD>X<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>g<EFBFBD>̍s<EFBFBD><EFBFBD><EFBFBD>蕶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݒ肵<EFBFBD>܂<EFBFBD></entry>
|
|||
|
</row>
|
|||
|
</tbody>
|
|||
|
</tgroup>
|
|||
|
</table>
|
|||
|
|
|||
|
<para>
|
|||
|
<20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>SchemaExport</literal> <20><><EFBFBD>g<EFBFBD>ݍ<EFBFBD><DD8D>ނ<EFBFBD><DE82>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>F
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[Configuration cfg = ....;
|
|||
|
new SchemaExport(cfg).create(false, true);]]></programlisting>
|
|||
|
|
|||
|
</sect2>
|
|||
|
|
|||
|
|
|||
|
<sect2 id="toolsetguide-s1-4">
|
|||
|
<title><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>e<EFBFBD>B</title>
|
|||
|
|
|||
|
<para>
|
|||
|
<20><><EFBFBD>̂悤<CC82>ɁA<C981>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>̃v<CC83><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD>w<EFBFBD>肷<EFBFBD>邱<EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
|
|||
|
</para>
|
|||
|
|
|||
|
<itemizedlist spacing="compact">
|
|||
|
<listitem>
|
|||
|
<para><literal>-D</literal> <emphasis><property></emphasis> <20><><EFBFBD>g<EFBFBD><67><EFBFBD>āA<C481>V<EFBFBD>X<EFBFBD>e<EFBFBD><65><EFBFBD>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD>
|
|||
|
</para>
|
|||
|
</listitem>
|
|||
|
<listitem>
|
|||
|
<para><literal>hibernate.properties</literal> <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</para>
|
|||
|
</listitem>
|
|||
|
<listitem>
|
|||
|
<para> <literal>--properties</literal> <20><><EFBFBD>g<EFBFBD><67><EFBFBD>Ďw<C48E>肵<EFBFBD><E882B5><EFBFBD>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
</para>
|
|||
|
</listitem>
|
|||
|
</itemizedlist>
|
|||
|
|
|||
|
<para>
|
|||
|
<20>K<EFBFBD>v<EFBFBD>ȃv<C883><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD>͈ȉ<CD88><C889>̂<EFBFBD><CC82>̂ł<CC82><C582>F
|
|||
|
</para>
|
|||
|
|
|||
|
<table frame="topbot">
|
|||
|
<title>SchemaExport<EFBFBD>R<EFBFBD>l<EFBFBD>N<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>e<EFBFBD>B</title>
|
|||
|
<tgroup cols="2">
|
|||
|
<colspec colwidth="1.5*"/>
|
|||
|
<colspec colwidth="2*"/>
|
|||
|
<thead>
|
|||
|
<row>
|
|||
|
<entry><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><EFBFBD>
|
|||
|
</entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<row>
|
|||
|
<entry> <literal>hibernate.connection.driver_class</literal> </entry>
|
|||
|
<entry>jdbc<EFBFBD>̃h<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>o<EFBFBD>[<5B>N<EFBFBD><4E><EFBFBD>X
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>hibernate.connection.url</literal> </entry>
|
|||
|
<entry>jdbc<EFBFBD><EFBFBD>url
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>hibernate.connection.username</literal> </entry>
|
|||
|
<entry><EFBFBD>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>̃<EFBFBD><CC83>[<5B>U
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>hibernate.connection.password</literal> </entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD>[<5B>U<EFBFBD>p<EFBFBD>X<EFBFBD><58><EFBFBD>[<5B>h
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>hibernate.dialect</literal> </entry>
|
|||
|
<entry><EFBFBD>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD><58><EFBFBD><EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
</tbody>
|
|||
|
</tgroup>
|
|||
|
</table>
|
|||
|
|
|||
|
</sect2>
|
|||
|
|
|||
|
<sect2 id="toolsetguide-s1-5">
|
|||
|
<title>Ant<EFBFBD><EFBFBD><EFBFBD>g<EFBFBD>p<EFBFBD><EFBFBD><EFBFBD><EFBFBD></title>
|
|||
|
|
|||
|
<para>
|
|||
|
Ant<6E>̃r<CC83><72><EFBFBD>h<EFBFBD>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD> <literal>SchemaExport</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B:
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<target name="schemaexport">
|
|||
|
<taskdef name="schemaexport"
|
|||
|
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
|
|||
|
classpathref="class.path"/>
|
|||
|
|
|||
|
<schemaexport
|
|||
|
properties="hibernate.properties"
|
|||
|
quiet="no"
|
|||
|
text="no"
|
|||
|
drop="no"
|
|||
|
delimiter=";"
|
|||
|
output="schema-export.sql">
|
|||
|
<fileset dir="src">
|
|||
|
<include name="**/*.hbm.xml"/>
|
|||
|
</fileset>
|
|||
|
</schemaexport>
|
|||
|
</target>]]></programlisting>
|
|||
|
|
|||
|
</sect2>
|
|||
|
|
|||
|
<sect2 id="toolsetguide-s1-6" revision="2">
|
|||
|
<title><EFBFBD>C<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^<5E><><EFBFBD>ȃX<C883>L<EFBFBD>[<5B>}<7D>X<EFBFBD>V
|
|||
|
</title>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>SchemaUpdate</literal> <20>c<EFBFBD>[<5B><><EFBFBD>͊<EFBFBD><CD8A><EFBFBD><EFBFBD>̃X<CC83>L<EFBFBD>[<5B>}<7D><><EFBFBD>C<EFBFBD><43><EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^<5E><><EFBFBD>ɍX<C98D>V<EFBFBD><56><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
<literal>SchemaUpdate</literal> <20><>JDBC<42>̃<EFBFBD><CC83>^<5E>f<EFBFBD>[<5B>^API<50>ɋ<EFBFBD><C98B><EFBFBD><EFBFBD>ˑ<EFBFBD><CB91><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
<20><><EFBFBD>̂<EFBFBD><CC82>߁A<DF81><41><EFBFBD>ׂĂ<D782>JDBC<42>h<EFBFBD><68><EFBFBD>C<EFBFBD>o<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ͌<C682><CD8C><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ƃɒ<C682><C992>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
|
|||
|
</para>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>java -cp </literal> <emphasis>hibernate_classpaths</emphasis>
|
|||
|
<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options mapping_files</emphasis>
|
|||
|
</para>
|
|||
|
|
|||
|
<table frame="topbot">
|
|||
|
<title> <literal>SchemaUpdate</literal> <20>̃R<CC83>}<7D><><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD>I<EFBFBD>v<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD></title>
|
|||
|
<tgroup cols="2">
|
|||
|
<colspec colwidth="1.5*"/>
|
|||
|
<colspec colwidth="2*"/>
|
|||
|
<thead>
|
|||
|
<row>
|
|||
|
<entry><EFBFBD>I<EFBFBD>v<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
</row>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<row>
|
|||
|
<entry> <literal>--quiet</literal> </entry>
|
|||
|
<entry><EFBFBD>W<EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>͂ɃX<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>͂<EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry> <literal>--text</literal> </entry>
|
|||
|
<entry><EFBFBD>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>ɃX<C983>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD><67><EFBFBD>G<EFBFBD>N<EFBFBD>X<EFBFBD>|<7C>[<5B>g<EFBFBD><67><EFBFBD>܂<EFBFBD><DC82><EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>--naming=eg.MyNamingStrategy</literal> </entry>
|
|||
|
<entry><literal>NamingStrategy</literal> <20><><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry> <literal>--properties=hibernate.properties</literal> </entry>
|
|||
|
<entry><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>v<EFBFBD><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD>ǂݍ<C782><DD8D>݂܂<DD82>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
|
|||
|
<row>
|
|||
|
<entry> <literal>--config=hibernate.cfg.xml</literal> </entry>
|
|||
|
<entry><literal>.cfg.xml</literal> <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
|
|||
|
</tbody>
|
|||
|
</tgroup>
|
|||
|
</table>
|
|||
|
|
|||
|
<para>
|
|||
|
<20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <literal>SchemaUpdate</literal> <20><><EFBFBD>g<EFBFBD>ݍ<EFBFBD><DD8D>ނ<EFBFBD><DE82>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD>F
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[Configuration cfg = ....;
|
|||
|
new SchemaUpdate(cfg).execute(false);]]></programlisting>
|
|||
|
|
|||
|
</sect2>
|
|||
|
|
|||
|
|
|||
|
<sect2 id="toolsetguide-s1-7">
|
|||
|
<title><EFBFBD>C<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^<5E><><EFBFBD>ȃX<C883>L<EFBFBD>[<5B>}<7D>X<EFBFBD>V<EFBFBD>ɑ<C991><CE82><EFBFBD>Ant<6E>̎g<CC8E>p</title>
|
|||
|
|
|||
|
<para>
|
|||
|
Ant<6E>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD> <literal>SchemaUpdate</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>F
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<target name="schemaupdate">
|
|||
|
<taskdef name="schemaupdate"
|
|||
|
classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask"
|
|||
|
classpathref="class.path"/>
|
|||
|
|
|||
|
<schemaupdate
|
|||
|
properties="hibernate.properties"
|
|||
|
quiet="no">
|
|||
|
<fileset dir="src">
|
|||
|
<include name="**/*.hbm.xml"/>
|
|||
|
</fileset>
|
|||
|
</schemaupdate>
|
|||
|
</target>]]></programlisting>
|
|||
|
|
|||
|
</sect2>
|
|||
|
|
|||
|
<sect2 id="toolsetguide-s1-8" revision="1">
|
|||
|
<title>Schema validation</title>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>SchemaValidator</literal> <20>c<EFBFBD>[<5B><><EFBFBD>́A<CD81><41><EFBFBD><EFBFBD><EFBFBD>̃f<CC83>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>X<EFBFBD>L<EFBFBD>[<5B>}<7D>ƍ쐬<C68D><EC90AC><EFBFBD><EFBFBD><EFBFBD>}<7D>b<EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>h<EFBFBD>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67>"<22><><EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD>"<22><><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><D882>܂<EFBFBD><DC82>B <literal>SchemaValidator</literal> <20><>JDBC<42>̃<EFBFBD><CC83>^<5E>f<EFBFBD>[<5B>^API<50>ɋ<EFBFBD><C98B><EFBFBD><EFBFBD>ˑ<EFBFBD><CB91><EFBFBD><EFBFBD>邱<EFBFBD>Ƃɒ<C682><C992>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>̂<EFBFBD><CC82>߁A<DF81><41><EFBFBD>ׂĂ<D782>JDBC<42>h<EFBFBD><68><EFBFBD>C<EFBFBD>o<EFBFBD>[<5B>ō쓮<C58D><EC93AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂ł͂<C582><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>̃c<CC83>[<5B><><EFBFBD>̓e<CD83>X<EFBFBD>g<EFBFBD><67><EFBFBD>ɔ<EFBFBD><C994><EFBFBD><EFBFBD>ɗL<C997>p<EFBFBD>ł<EFBFBD><C582>B
|
|||
|
</para>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>java -cp </literal> <emphasis>hibernate_classpaths</emphasis>
|
|||
|
<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> <emphasis>options mapping_files</emphasis>
|
|||
|
</para>
|
|||
|
|
|||
|
<table frame="topbot">
|
|||
|
<title> <literal>SchemaValidator</literal> <20>̃R<CC83>}<7D><><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD><43><EFBFBD>E<EFBFBD>I<EFBFBD>v<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD>
|
|||
|
</title>
|
|||
|
<tgroup cols="2">
|
|||
|
<colspec colwidth="1.5*"/>
|
|||
|
<colspec colwidth="2*"/>
|
|||
|
<thead>
|
|||
|
<row>
|
|||
|
<entry><EFBFBD>I<EFBFBD>v<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
<entry><EFBFBD><EFBFBD><EFBFBD><EFBFBD></entry>
|
|||
|
</row>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<row>
|
|||
|
<entry> <literal>--naming=eg.MyNamingStrategy</literal> </entry>
|
|||
|
<entry><literal>NamingStrategy</literal> <20><><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>--properties=hibernate.properties</literal> </entry>
|
|||
|
<entry><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>[<5B>^<5E>x<EFBFBD>[<5B>X<EFBFBD>̃v<CC83><76><EFBFBD>p<EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD>ǂݍ<C782><DD8D>݂܂<DD82>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
<row>
|
|||
|
<entry> <literal>--config=hibernate.cfg.xml</literal> </entry>
|
|||
|
<entry><literal>.cfg.xml</literal> <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD>
|
|||
|
</entry>
|
|||
|
</row>
|
|||
|
</tbody>
|
|||
|
</tgroup>
|
|||
|
</table>
|
|||
|
|
|||
|
<para>
|
|||
|
<literal>SchemaValidator</literal> <20><><EFBFBD>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɑg<C991>ݍ<EFBFBD><DD8D>ނ<EFBFBD><DE82>Ƃ<EFBFBD><C682>o<EFBFBD><6F><EFBFBD>܂<EFBFBD>:
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[Configuration cfg = ....;
|
|||
|
new SchemaValidator(cfg).validate();]]></programlisting>
|
|||
|
|
|||
|
</sect2>
|
|||
|
|
|||
|
<sect2 id="toolsetguide-s1-9">
|
|||
|
<title><EFBFBD>X<EFBFBD>L<EFBFBD>[<5B>}<7D>̃o<CC83><6F><EFBFBD>f<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ant<6E><74><EFBFBD>g<EFBFBD>p<EFBFBD><70><EFBFBD>܂<EFBFBD></title>
|
|||
|
|
|||
|
<para>
|
|||
|
Ant<6E>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD> <literal>SchemaValidator</literal> <20><><EFBFBD>Ăяo<D18F><6F><EFBFBD>܂<EFBFBD>:
|
|||
|
</para>
|
|||
|
|
|||
|
<programlisting><![CDATA[<target name="schemavalidate">
|
|||
|
<taskdef name="schemavalidator"
|
|||
|
classname="org.hibernate.tool.hbm2ddl.SchemaValidatorTask"
|
|||
|
classpathref="class.path"/>
|
|||
|
|
|||
|
<schemavalidator
|
|||
|
properties="hibernate.properties">
|
|||
|
<fileset dir="src">
|
|||
|
<include name="**/*.hbm.xml"/>
|
|||
|
</fileset>
|
|||
|
</schemaupdate>
|
|||
|
</target>]]></programlisting>
|
|||
|
|
|||
|
</sect2>
|
|||
|
|
|||
|
</sect1>
|
|||
|
|
|||
|
</chapter>
|
|||
|
|