<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.3//EN" "document-v13.dtd">
<document>
    <header>
        <title>Hibernate</title>
        <authors>
            <person name="&#30693;&#20037;&#21644;&#37070;" email="chikkun@chikkun.com"/>
        </authors>
        <abstract>OR&#12510;&#12483;&#12500;&#12531;&#12464;&#12364;&#20027;&#27969;&#12392;&#12394;&#12387;&#12390;&#12356;&#12427;Java&#12527;&#12540;&#12523;&#12489;&#12398;&#12289;&#12381;&#12398;&#20013;&#24515;&#30340;&#12394;(&#12392;&#12356;&#12387;&#12390;&#12418;&#33391;&#12356;&#12398;&#12363;&#12394;)Hibernate&#12398;&#22522;&#26412;&#30340;&#12394;&#20351;&#12356;&#26041;&#12434;&#35500;&#26126;&#12375;&#12414;&#12377;&#12290;
            &#12392;&#12356;&#12387;&#12390;&#12418;&#12289;&#12411;&#12435;&#12398;&#12373;&#12431;&#12426;&#12398;&#37096;&#20998;(&#12381;&#12428;&#20197;&#22806;&#12395;&#12354;&#12414;&#12426;&#30693;&#12425;&#12394;&#12356;&#12398;&#12391;(--;)&#12395;&#32094;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;</abstract>
    </header>
    <body>
        <section>
            <title>&#12414;&#12378;&#12399;OR&#12510;&#12483;&#12500;&#12531;&#12464;&#12392;&#12399;&#20309;?</title>
            <p class="chapter">&#19968;&#35328;&#12391;&#35328;&#12358;&#12392;&#12289;O&#12364;&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;(Java&#12398;)&#12289;R&#12364;&#12522;&#12524;&#12540;&#12471;&#12519;&#12490;&#12523;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12391;&#12377;&#12398;&#12391;&#12289;&#12300;Java&#12398;&#12463;&#12521;&#12473;&#12392;
                &#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12398;&#12486;&#12540;&#12502;&#12523;&#12434;&#32080;&#12403;&#12388;&#12369;&#12427;&#12383;&#12417;&#12398;&#12510;&#12483;&#12500;&#12531;&#12464;&#12471;&#12473;&#12486;&#12512;&#12301;&#12392;&#12356;&#12358;&#12371;&#12392;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;</p>
            <p class="chapter">&#12371;&#12428;&#12384;&#12392;&#20170;&#12402;&#12392;&#12388;&#12500;&#12531;&#12392;&#26469;&#12394;&#12356;&#12391;&#12375;&#12423;&#12358;&#12363;&#12425;&#12289;&#12418;&#12358;&#23569;&#12375;&#20855;&#20307;&#30340;&#12395;&#35500;&#26126;&#12375;&#12414;&#12377;&#12290; &#35443;&#12375;&#12367;&#12399;<link href="http://www.atmarkit.co.jp/fjava/rensai3/ormap01/ormap01.html">&#36899;&#36617;&#65306;Hibernate&#12391;&#29702;&#35299;&#12377;&#12427;O/R&#12510;&#12483;&#12500;&#12531;&#12464;</link> &#12420;<link href="http://www.stackasterisk.jp/tech/java/hibernate01_01.jsp">&#27005;&#12293;DB&#12503;&#12525;&#12464;&#12521;&#12511;&#12531;&#12464;&#65281;O/R&#12510;&#12483;&#12500;&#12531;&#12464;&#12484;&#12540;&#12523; Hibernate</link>&#12394;&#12393;&#12434;&#35211;&#12390;&#12289;&#21193;&#24375;&#12375;&#12390;&#12367;&#12384;&#12373;&#12356;&#12290;</p>
            <source xml:space="preserve"><![CDATA[
create table USERS (
   ID integer generated by default as identity (start with 1),
   USER_ID varchar(64) not null,
   EMAIL varchar(64) not null,
   MEMBER_NAME varchar(64),
   NOTE varchar(128),
   primary key (ID),
   unique (USER_NAME)
);
                    ]]></source>
            <p class="chapter">&#12392;&#12356;&#12358;&#12424;&#12358;&#12394;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12364;&#12354;&#12387;&#12383;&#12392;&#12375;&#12414;&#12377;&#12290;&#12371;&#12428;&#12434;&#27425;&#12398;&#12424;&#12358;&#12394;Java&#12398;&#12463;&#12521;&#12473;&#12392;&#38306;&#20418;&#12389;&#12369;&#12427;&#12431;&#12369;&#12391;&#12377;&#12290;</p>
            <p class="chapter">&#12385;&#12423;&#12387;&#12392;&#38263;&#12417;&#12391;&#12377;&#12364;&#12289;&#12411;&#12392;&#12435;&#12393;&#12364;&#22793;&#25968;&#12398;&#23459;&#35328;&#12392;setter,getter&#12363;&#12425;&#12394;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;&#12388;&#12414;&#12426;</p>
            <source xml:space="preserve"><![CDATA[
    /**
     * ID]]>&#30058;&#21495;
<![CDATA[     */
    private Integer id;

    /**
     * ]]>&#12525;&#12464;&#12452;&#12531;&#21517;
<![CDATA[     */
    private String userName;

    /**
     * E-MAIL
     */
    private String email;

    /**
     * ]]>&#27663;&#21517;<![CDATA[(]]>&#28450;&#23383;&#31561;&#21487;<![CDATA[)
     */
    private String MemberName;

    /**
     * ]]>&#20633;&#32771;
<![CDATA[     */
    private String Note;
            ]]></source>
            <p class="chapter">&#12398;5&#12388;&#12398;&#12501;&#12451;&#12540;&#12523;&#12489;(&#22793;&#25968;)&#12364;&#19978;&#35352;&#12398;&#12486;&#12540;&#12502;&#12523;&#12398;&#12501;&#12451;&#12540;&#12523;&#12489;&#12395;&#23550;&#24540;&#12375;&#12414;&#12377;&#12290;</p>
            <source xml:space="preserve"><![CDATA[
package com.chikkun.webcms.test;
import java.io.Serializable;
/**
 * @author Chiku Kazuro
 * @version 0.1 OR]]>&#12510;&#12483;&#12500;&#12531;&#12464;&#29992;&#12398;<![CDATA[Bean
 */
public class TestBean implements Serializable {
    /**
     * ID]]>&#30058;&#21495;
<![CDATA[     */
    private Integer id;

    /**
     * ]]>&#12525;&#12464;&#12452;&#12531;&#21517;
<![CDATA[     */
    private String userName;

    /**
     * E-MAIL
     */
    private String email;

    /**
     * ]]>&#27663;&#21517;<![CDATA[(]]>&#28450;&#23383;&#31561;&#21487;<![CDATA[)
     */
    private String MemberName;

    /**
     * ]]>&#20633;&#32771;
<![CDATA[     */
    private String Note;

    /**
     * @return Returns the email.
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email
     *            The email to set.
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return Returns the id.
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     *            The id to set.
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return Returns the memberName.
     */
    public String getMemberName() {
        return MemberName;
    }

    /**
     * @param memberName
     *            The memberName to set.
     */
    public void setMemberName(String memberName) {
        MemberName = memberName;
    }

    /**
     * @return Returns the note.
     */
    public String getNote() {
        return Note;
    }

    /**
     * @param note
     *            The note to set.
     */
    public void setNote(String note) {
        Note = note;
    }

    /**
     * @return Returns the userName.
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName
     *            The userName to set.
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }
}


                    ]]></source>
            <p class="chapter">&#12381;&#12375;&#12390;&#12289;&#12371;&#12428;&#12425;&#12434;&#12300;&#32080;&#12403;&#12388;&#12369;&#12390;&#12301;&#12289;SQL&#25991;&#12434;&#30452;&#25509;&#20351;&#12431;&#12378;&#12395;&#12487;&#12540;&#12479;&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12383;&#12426;&#12289;
                &#21066;&#38500;&#12375;&#12383;&#12426;&#12289;&#25110;&#12356;&#12399;&#36984;&#25246;&#12375;&#12383;&#12426;&#12377;&#12427;&#12392;&#12356;&#12358;&#12398;&#12364;&#12289;Hibernate(OR&#12510;&#12483;&#12500;&#12531;&#12464;&#12501;&#12524;&#12540;&#12512;&#12527;&#12540;&#12463;)&#12398;&#12362;&#20181;&#20107;&#12384;&#12392;&#12356;&#12358;&#12371;&#12392;&#12395;&#12394;&#12426;&#12414;&#12377;&#12290;</p>
        </section>
        <section>
            <title>&#12414;&#12378;&#12399;&#28310;&#20633;</title>
            <section>
                <title>Hibernate&#12398;&#12480;&#12454;&#12531;&#12525;&#12540;&#12489;&#12392;&#23637;&#38283;</title>
                <p class="section">&#12356;&#12388;&#12418;&#12398;&#12424;&#12358;&#12395;&#12289;<link href="https://sourceforge.net/project/showfiles.php?group_id=40712&amp;package_id=127784;" class="jump">Hibernate&#12398;&#12480;&#12454;&#12531;&#12525;&#12540;&#12489;&#20808;</link>&#12395;&#12356;&#12387;&#12390;&#12289;&#26368;&#26032;&#12398;&#12418;&#12398;&#12434;
                    &#12480;&#12454;&#12531;&#12525;&#12540;&#12489;&#12375;&#12289;&#20197;&#21069;&#12392;&#21516;&#27096;<code>c:/java</code>&#12395;&#23637;&#38283;&#12375;&#12414;&#12377;&#12290;&#12371;&#12371;&#12391;&#12289;&#12379;&#12387;&#12363;&#12367;3.05&#12392;&#12356;&#12358;&#26032;&#12375;&#12356;&#12496;&#12540;&#12472;&#12519;&#12531;&#12418;&#20986;&#12390;&#12356;&#12427;&#12371;&#12392;&#12384;&#12375;&#12289;
                        &#12392;&#24605;&#12387;&#12390;&#12289;&#33394;&#12293;&#35430;&#12375;&#12383;&#12398;&#12391;&#12377;&#12364;(&#25968;&#26178;&#38291;&#12377;&#12387;&#12383;&#12418;&#12435;&#12384;&#12420;&#12387;&#12383;)&#12289;&#12358;&#12414;&#12367;&#12356;&#12363;&#12394;&#12356;&#12398;&#12391;&#12289;<link href="http://prdownloads.sourceforge.net/hibernate/?sort_by=date&amp;sort=desc">Hibernate&#12398;&#20840;&#12522;&#12473;&#12488;</link>&#12363;&#12425; <code> hibernate-2.1.8.tar.gz</code>&#12392;<code>
                        hibernate-extensions-2.1.3.tar.gz</code>&#12434;&#12480;&#12454;&#12531;&#12525;&#12540;&#12489;&#12375;&#12390;&#12289;
                    <code>c:/java</code>&#20197;&#19979;&#12395;&#23637;&#38283;&#12375;&#12414;&#12377;&#12290;</p>
            </section>
            <section>
                <title>build.xml&#12398;&#28310;&#20633;</title>
                <p class="section">&#26412;&#26469;&#12399;&#25163;&#20316;&#26989;&#12391;&#12420;&#12387;&#12383;&#26041;&#12364;&#33394;&#12293;&#35226;&#12360;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12364;&#12289;&#26178;&#38291;&#12418;&#12394;&#12356;&#12371;&#12392;&#12384;&#12375;&#12289;&#12414;&#12383;&#12418;&#12420;xdoclet&#12434;&#20351;&#12387;&#12390;&#24517;&#35201;&#12394;&#12501;&#12449;&#12452;&#12523;&#12434;
                    &#33258;&#21205;&#12391;&#20316;&#12429;&#12358;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;&#12381;&#12428;&#12395;&#12399;&#20170;&#12414;&#12391;&#12398;build.xml&#12395;&#26360;&#12365;&#21152;&#12360;&#12427;&#24517;&#35201;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;&#20197;&#19979;&#12398;&lt;!--added start--&gt;&#12363;&#12425;&lt;!-- added end--&gt;&#12398;&#38291;&#12364;&#26360;&#12365;&#21152;&#12360;&#12383;&#31623;&#25152;&#12391;&#12377;&#12290;</p>
                <source xml:space="preserve"><![CDATA[
<?xml version="1.0" encoding="Windows-31J"?>
<project name="webcms" default="struts">
    <!-- define properties. -->
    <property file="./build.properties"/>
    <property name="src.dir" value="WEB-INF/src"/>
    <property name="merge.dir" value="WEB-INF/merge"/>
    <property name="web.dir" value="."/>
    <property name="conf.dir" value="WEB-INF/conf"/>
    <property name="javadocs.dir" value="${docs.dir}/api"/>
    <property name="classes.dir" value="WEB-INF/classes"/>
    <property name="target.resources" value="WEB-INF/classes/Resources"/>
    <property name="config.resources" value="conf"/>
    <property name="local.encoding" value="Windows-31J"/>
    <!--added start-->
    <fileset id="hibernate.jar" file="${HIBERNATE_HOME}/hibernate2.jar"/>
    <fileset id="hibernate.extension" file="${HIBERNATE_EXTENSION_HOME}/hibernate-tools.jar"/>
    <fileset id="hibernate.libs" dir="${HIBERNATE_HOME}/lib">
        <include name="*.jar"/>
    </fileset>
    <fileset id="hsql.jar" file="${HSQLDB}/lib/hsqldb.jar"/>
    <!-- added end-->
    <!-- define library filesets. -->
    <fileset id="struts.libs" dir="WEB-INF/lib">
        <include name="struts.jar"/>
    </fileset>
    <fileset id="servlet.jar" file="${CATALINA_HOME}/common/lib/servlet-api.jar"/>
    <fileset id="xdoclet.libs" dir="${XDOCLET_HOME}/lib">
        <include name="*.jar"/>
    </fileset>
    <!-- define build classpath. -->
    <path id="build.classpath">
        <pathelement path="${classes.dir}"/>
        <fileset refid="struts.libs"/>
        <fileset refid="xdoclet.libs"/>
        <fileset refid="servlet.jar"/>
        <!--added start-->
        <fileset refid="hibernate.jar"/>
        <fileset refid="hsql.jar"/>
        <fileset refid="hibernate.extension"/>
        <fileset refid="hibernate.libs"/>
        <!-- added end-->
    </path>
    <!-- define targets. -->
    <target name="clean">
        <delete dir="${classes.dir}"/>
        <delete dir="${dist.dir}"/>
        <delete dir="${javadocs.dir}"/>
    </target>
    <!--added start-->
    <target name="hibernate">
        <copy todir="${classes.dir}" filtering="no" overwrite="yes">
            <fileset dir="${conf.dir}" includes="hibernate.cfg.xml"/>
        </copy>
        <property name="projct.home" value="${PROJECT_HOME}"/>
        <property name="database" value="${DATABASE}"/>
        <replace file="${classes.dir}/hibernate.cfg.xml" value="${database}" token="@DATABASE@"/>
        <taskdef name="xdoclet" classname="xdoclet.modules.hibernate.HibernateDocletTask">
            <classpath refid="build.classpath"/>
        </taskdef>
        <xdoclet destdir="${classes.dir}" excludedtags="@version,@author,@param,@return"
            force="false" mergedir="WEB-INF/merge" verbose="false" encoding="${local.encoding}">
            <fileset dir="${src.dir}">
                <include name="**/*.java"/>
            </fileset>
            <hibernate version="2.0"/>
        </xdoclet>
    </target>
    <target name="schemaexport" depends="hibernate">
        <taskdef name="schemaexport" classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
            classpathref="build.classpath"/>
        <schemaexport config="WEB-INF/classes/hibernate.cfg.xml" quiet="no" text="no" drop="no"
            delimiter=";" output="schema-export.sql"/>
    </target>
    <!-- added end-->
    <target name="struts" depends="property">
        <taskdef name="webdoclet" classname="xdoclet.modules.web.WebDocletTask"
            classpathref="build.classpath"/>
        <webdoclet destdir="${src.dir}" mergedir="${merge.dir}"
            excludedtags="@version,@author,@todo,@param" force="true" verbose="true"
            encoding="${local.encoding}">
            <fileset dir="${src.dir}">
                <include name="**/*.java"/>
            </fileset>
            <strutsconfigxml version="1.2" destdir="WEB-INF" xmlencoding="Windows-31J"/>
            <strutsvalidationxml destdir="WEB-INF"/>
        </webdoclet>
    </target>
    <target name="web" depends="struts">
        <taskdef name="webdoclet" classname="xdoclet.modules.web.WebDocletTask"
            classpathref="build.classpath"/>
        <webdoclet destdir="WEB-INF/src" mergedir="WEB-INF/merge"
            excludedtags="@version,@author,@todo" force="true" verbose="false"
            encoding="${local.encoding}">
            <fileset dir="WEB-INF/src">
                <include name="**/*.java"/>
            </fileset>
            <deploymentdescriptor servletspec="2.3" destdir="WEB-INF"/>
            <strutsconfigxml version="1.2" destdir="WEB-INF"/>
            <strutsvalidationxml destdir="WEB-INF"/>
        </webdoclet>
        <fixcrlf srcdir="WEB-INF" cr="remove" includes="*.xml"
            excludes="tiles-defs.xml,holidays.xml,equipment.xml"/>
    </target>
    <target name="property">
        <delete failonerror="false">
            <fileset dir="${target.resources}" includes="ApplicationResources.properties"/>
        </delete>
        <native2ascii encoding="${local.encoding}" src="${config.resources}"
            dest="${target.resources}" includes="ApplicationResources.properties"/>
    </target>
</project>

                        ]]></source>
                <p class="section">&#27425;&#12395;&#12371;&#12428;&#12395;&#20276;&#12356;&#12289;<code>build.properties</code>&#12395;&#12418;&#26360;&#12365;&#21152;&#12360;&#12414;&#12377;&#12290;</p>
                <source xml:space="preserve"><![CDATA[
ARCHIVE_DIR=c:/java
PROJECT_HOME=c:/eclipse/workspace/webcms
XDOCLET_HOME=${ARCHIVE_DIR}/xdoclet-1.2.2
CATALINA_HOME=c:/Tomcat 5.0

#added start
HIBERNATE_HOME=${ARCHIVE_DIR}/hibernate-2.1
HIBERNATE_EXTENSION_HOME=${ARCHIVE_DIR}/hibernate-extensions-2.1.3/tools
DATABASE=jdbc:hsqldb:file://${PROJECT_HOME}/WEB-INF/database/webcms
HSQLDB=${ARCHIVE_DIR}/hsqldb
#added end
                        ]]></source>
                <p class="section">&#12373;&#12425;&#12395;&#12289;&#27425;&#12398;&#12424;&#12358;&#12394;<code>hibernate.cfg.xml</code>&#12434;<code>WEB-INF/conf</code>&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12540;&#12395;&#20316;&#12426;&#12414;&#12377;&#12290;</p>
                <source xml:space="preserve"><![CDATA[

<?xml version="1.0"?>
<!DOCTYPE hibernate-configuration PUBLIC
  "-//Hibernate/Hibernate Configuration DTD 2.0//EN"
  "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="dialect">net.sf.hibernate.dialect.HSQLDialect</property>
        <property name="show_sql">false</property>
        <property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
        <property name="connection.url">@DATABASE@</property>
        <property name="connection.username">sa</property>
        <property name="connection.password"/>
        <!--this define-->
        <mapping resource="com/chikkun/webcms/test/TestBean.hbm.xml"/>
    </session-factory>
</hibernate-configuration>
                        ]]></source>
                <p class="section">&#12371;&#12428;&#12399;Hibernate&#12434;&#20351;&#12358;&#38555;&#12398;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#31561;&#12398;&#35373;&#23450;&#12392;&#12289;&#12510;&#12483;&#12500;&#12531;&#12464;&#12377;&#12427;&#12463;&#12521;&#12473;&#12364;&#12393;&#12371;&#12395;&#25152;&#22312;&#12377;&#12427;&#12363;&#12434;&#25351;&#23450;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;&#29305;&#12395;&#19979;&#12398;&#31623;&#25152;&#12399;
                    &#12510;&#12483;&#12500;&#12531;&#12464;&#12377;&#12427;&#12486;&#12540;&#12502;&#12523;&#12364;&#22679;&#12360;&#12428;&#12400;&#12289;&#26360;&#12365;&#21152;&#12360;&#12390;&#12356;&#12367;&#24517;&#35201;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;</p>
                <source xml:space="preserve"><![CDATA[
        <!--this define-->
        <mapping resource="com/chikkun/webcms/test/TestBean.hbm.xml"/>
                        ]]></source>
                <p class="section">&#12414;&#12383;&#12289;<code>@DATABASE@</code>&#12392;&#12356;&#12358;&#37096;&#20998;&#12399;<code>build.properties</code>
                    &#12398;&#20013;&#12398;&#12289;DATABASE&#12392;&#12356;&#12358;&#37096;&#20998;&#12434;&#20351;&#12387;&#12390;&#12289;&#12373;&#12425;&#12395;build.xml&#12398;&#20013;&#12398;&#20197;&#19979;&#12398;&#37096;&#20998;&#12391;&#32622;&#12365;&#25563;&#12360;&#12390;&#12356;&#12414;&#12377;&#12290;</p>
                <source xml:space="preserve"><![CDATA[
        <property name="projct.home" value="${PROJECT_HOME}"/>
        <property name="database" value="${DATABASE}"/>
        <replace file="${classes.dir}/hibernate.cfg.xml" value="${database}" token="@DATABASE@"/>
                        ]]></source>
                <p class="section">&#12371;&#12428;&#12391;&#12289;&#19979;&#28310;&#20633;&#12399;&#32066;&#20102;&#12290;&#27425;&#12395;&#12289;xdoclet&#12398;&#12479;&#12464;&#12434;&#20184;&#12369;&#12390;&#12356;&#12365;&#12414;&#12377;&#12290;</p>
            </section>
            <section>
                <title>TestBean&#12395;xdoclet&#12398;&#12479;&#12464;&#12434;&#26360;&#12365;&#21152;&#12360;&#12427;</title>
                <p class="section">&#12373;&#12390;&#12289;&#19978;&#12398;&#26041;&#12391;&#26360;&#12356;&#12383;&#12289;<code>TestBean.java</code>&#12395;xdoclet&#12398;hibernate&#29992;&#12398;&#12479;&#12464;&#12434;&#26360;&#12365;&#21152;&#12360;&#12383;&#12418;&#12398;&#12364;&#12289; &#20197;&#19979;&#12398;&#12424;&#12358;&#12391;&#12377;&#12290;</p>
                <source xml:space="preserve"><![CDATA[
/*
 * Created on 2005/06/03
 *
 */
package com.chikkun.webcms.test;

import java.io.Serializable;

/**
 * @author Chiku Kazuro
 * @version 0.1 OR]]>&#12510;&#12483;&#12500;&#12531;&#12464;&#29992;&#12398;<![CDATA[Bean
 * @hibernate.class table="USERS"
 *  
 */
public class TestBean implements Serializable {
    /*
     * create table USERS ( ID integer generated by default as identity (start
     * with 1), USER_ID varchar(64) not null, EMAIL varchar(64) not null,
     * MEMBER_NAME varchar(64), NOTE varchar(64), primary key (ID), unique
     * (USER_NAME) );
     */

    /**
     * ID]]>&#30058;&#21495;
<![CDATA[     */
    private Integer id;

    /**
     * ]]>&#12525;&#12464;&#12452;&#12531;&#21517;
<![CDATA[     */
    private String userName;

    /**
     * E-MAIL
     */
    private String email;

    /**
     * ]]>&#27663;&#21517;<![CDATA[(]]>&#28450;&#23383;&#31561;&#21487;<![CDATA[)
     */
    private String MemberName;

    /**
     * ]]>&#20633;&#32771;
<![CDATA[     */
    private String Note;

    /**
     * @return Returns the email.
     * @hibernate.property column="EMAIL" length="64" not-null="true"
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email
     *            The email to set.
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return Returns the id.
     * @hibernate.id column="ID" generator-class="native"
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     *            The id to set.
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return Returns the memberName.
     *            The memberName to set.
     * @hibernate.property column="MEMBER_NAME" length="64"
     *            not-null="false"
     *     */
    public String getMemberName() {
        return MemberName;
    }

    /**
     * @param memberName
     */
    public void setMemberName(String memberName) {
        MemberName = memberName;
    }

    /**
     * @return Returns the note.
     * @hibernate.property column="NOTE" length="128" not-null="false"
     */
    public String getNote() {
        return Note;
    }

    /**
     * @param note
     *            The note to set.
     */
    public void setNote(String note) {
        Note = note;
    }

    /**
     * @return Returns the userName.
     * @hibernate.property column="USER_NAME" length="64" not-null="true"
     *                     unique="true"
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName
     *            The userName to set.
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }
}


                    ! ]]></source>
                <p>
                    <code>@hibernate.class</code>&#12420;<code>@hibernate.property</code>&#12392;&#12356;&#12358;&#12424;&#12358;&#12394;&#12418;&#12398;&#12364;&#12381;&#12428;&#12391;&#12377;&#12290;&#35501;&#12417;&#12400;&#12384;&#12356;&#12383;&#12356;&#12431;&#12363;&#12427;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;getter&#12398;&#19978;&#12395;
                    &#12486;&#12540;&#12502;&#12523;&#12398;&#12501;&#12451;&#12540;&#12523;&#12489;&#12434;&#34920;&#12377;xdoclet&#12398;&#12479;&#12464;&#12434;&#26360;&#12367;&#12392;&#12356;&#12358;&#12371;&#12392;&#12395;&#30041;&#24847;&#12375;&#12390;&#12367;&#12384;&#12373;&#12356;&#12290;</p>
            </section>
            <section>
                <title>ant&#12398;&#23455;&#34892;</title>
                <p class="section">&#12373;&#12390;&#12289;&#12371;&#12428;&#12391;hibernate&#29992;&#12398;&#35373;&#23450;&#12501;&#12449;&#12452;&#12523;&#12434;&#20316;&#25104;&#12377;&#12427;&#28310;&#20633;&#12364;&#20986;&#26469;&#12414;&#12375;&#12383;&#12290;&#26089;&#36895;ant&#12434;&#23455;&#34892;&#12375;&#12414;&#12375;&#12423;&#12358;&#12290;</p>
                <p class="section">
                    <code>ant hibernate</code>&#12434;&#23455;&#34892;&#12377;&#12427;&#12392;&#12289;&#12381;&#12398;hibernate&#29992;&#12398;&#35373;&#23450;&#12501;&#12449;&#12452;&#12523;&#12364;&#20986;&#26469;&#12289;</p>
                <p class="section">
                    <code>ant schemaexport</code>&#12434;&#20107;&#38917;&#12377;&#12427;&#12392;&#12289;&#19978;&#35352;&#12398;&#35373;&#23450;&#12501;&#12449;&#12452;&#12523;&#12434;&#20316;&#25104;&#12377;&#12427;&#12392;&#12392;&#12418;&#12395;&#12289;HSQLDB&#12398;&#12486;&#12540;&#12502;&#12523;&#12398;&#23450;&#32681;
                        &#12414;&#12391;&#12420;&#12387;&#12390;&#12375;&#12414;&#12356;&#12414;&#12377;&#12290;&#12385;&#12394;&#12415;&#12395;&#12371;&#12428;&#12434;&#23455;&#34892;&#12375;&#12390;(&#12418;&#12375;&#12377;&#12391;&#12395;<code>WEB-INF/database/webcms*</code>&#12395;&#12501;&#12449;&#12452;&#12523;&#12364;&#12354;&#12387;&#12383;&#12425;&#21066;&#38500;&#12375;&#12390;&#12362;&#12365;)&#12289;
                    &#26032;&#12375;&#12356;&#12501;&#12449;&#12452;&#12523;&#12364;&#20986;&#26469;&#12383;&#12425;&#12371;&#12371;&#12414;&#12391;&#12399;OK&#12391;&#12377;&#12290;</p>
                <p class="section">&#12381;&#12428;&#12391;&#12289;&#12391;&#12365;&#12354;&#12364;&#12387;&#12383;<code>WEB-INF/classes/hibernate.cfg.xml</code>&#12392;<code>WEB-INF/classes/com/chikkun/webcms/test/TestBean.hbm.xml</code>
                    &#12399;&#12381;&#12428;&#12382;&#12428;&#20197;&#19979;&#12398;&#12424;&#12358;&#12395;&#12394;&#12387;&#12390;&#12356;&#12427;&#12399;&#12378;&#12391;&#12377;&#12290;</p>
                <source xml:space="preserve"><![CDATA[
<?xml version="1.0"?>
<!DOCTYPE hibernate-configuration PUBLIC
  "-//Hibernate/Hibernate Configuration DTD 2.0//EN"
  "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">

<hibernate-configuration>
  <session-factory>
    <property name="dialect">net.sf.hibernate.dialect.HSQLDialect</property>
    <property name="show_sql">false</property>
    <property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
    <property name="connection.url">jdbc:hsqldb:file://c:/eclipse/workspace/webcms/WEB-INF/database/webcms</property>
    <property name="connection.username">sa</property>
    <property name="connection.password"></property>

    <!--this define-->
    <mapping resource="com/chikkun/webcms/test/TestBean.hbm.xml"/>

  </session-factory>
</hibernate-configuration>
                    ]]></source>
                <p class="section">&#12392;</p>
                <source xml:space="preserve"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 2.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping
>
    <class
        name="com.chikkun.webcms.test.TestBean"
        table="USERS"
        dynamic-update="false"
        dynamic-insert="false"
        select-before-update="false"
        optimistic-lock="version"
    >

        <id
            name="id"
            column="ID"
            type="java.lang.Integer"
        >
            <generator class="native">
              <!--  
                  To add non XDoclet generator parameters, create a file named 
                  hibernate-generator-params-TestBean.xml 
                  containing the additional parameters and place it in your merge dir. 
              --> 
            </generator>
        </id>

        <property
            name="email"
            type="java.lang.String"
            update="true"
            insert="true"
            access="property"
            column="EMAIL"
            length="64"
            not-null="true"
        />

        <property
            name="note"
            type="java.lang.String"
            update="true"
            insert="true"
            access="property"
            column="NOTE"
            length="128"
            not-null="false"
        />

        <property
            name="userName"
            type="java.lang.String"
            update="true"
            insert="true"
            access="property"
            column="USER_NAME"
            length="64"
            not-null="true"
            unique="true"
        />

        <!--
            To add non XDoclet property mappings, create a file named
                hibernate-properties-TestBean.xml
            containing the additional properties and place it in your merge dir.
        -->

    </class>

</hibernate-mapping>

                    ]]></source>
                <p class="section">&#12391;&#12377;&#12290;&#12373;&#12354;&#12289;&#12354;&#12392;&#12399;&#12371;&#12428;&#12434;&#20351;&#12387;&#12390;&#12487;&#12540;&#12479;&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12383;&#12426;&#12289;delete&#12375;&#12383;&#12426;&#12375;&#12414;&#12377;&#12290;</p>
            </section>
            <section>
                <title>DAO&#12398;&#20316;&#25104;</title>
                <p class="section">&#12373;&#12390;&#12289;&#28310;&#20633;&#12399;&#19975;&#31471;&#12392;&#12394;&#12426;&#12414;&#12375;&#12383;&#12398;&#12391;&#12289;&#12371;&#12428;&#12363;&#12425;&#12487;&#12540;&#12479;&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12414;&#12377;&#12290;&#12392;&#12371;&#12429;&#12391;&#12289;DAO&#12392;&#12399;&#12300;Data Access
                    Object&#12301;&#12392;&#12356;&#12358;&#12371;&#12392;&#12391;&#12289; &#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12398;&#12487;&#12540;&#12479;&#12395;&#12450;&#12463;&#12475;&#12473;&#12377;&#12427;&#12383;&#12417;&#12398;&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#12392;&#12356;&#12358;&#12371;&#12392;&#12290;</p>
                <p class="section">&#12381;&#12428;&#12395;&#12399;&#12354;&#12427;&#31243;&#24230;&#12289;hibernate&#12398;&#12452;&#12487;&#12451;&#12458;&#12512;&#12364;&#24517;&#35201;&#12391;&#12377;&#12290;&#22522;&#26412;&#30340;&#12395;&#12399;&#12289;<code>session</code>(Http&#12398;session&#12376;&#12419;&#12354;&#12426;&#12414;&#12379;&#12435;)&#12392;&#12356;&#12358;&#12452;&#12531;&#12473;&#12479;&#12531;&#12473;&#12434;&#21033;&#29992;&#12375;&#12390;&#12289;hibernate
                    &#12399;&#12487;&#12540;&#12479;&#12398;&#31649;&#29702;&#12434;&#12375;&#12414;&#12377;&#12290;</p>
                <source xml:space="preserve"><![CDATA[
     Configuration config = new Configuration().configure(); // ]]>&#35373;&#23450;&#12398;&#35501;&#12415;&#36796;&#12415;
<![CDATA[    // ]]>&#12475;&#12483;&#12471;&#12519;&#12531;&#12501;&#12449;&#12463;&#12488;&#12522;&#12540;&#12398;&#20316;&#25104;
<![CDATA[    SessionFactory sessionfactory = config.buildSessionFactory();
    // ]]>&#12475;&#12483;&#12471;&#12519;&#12531;&#12458;&#12540;&#12503;&#12531;
<![CDATA[    Session session = sessionfactory.openSession();
    List list = session.find(" FROM WorkGroup "); //]]>&#26908;&#32034;&#20966;&#29702;&#12398;&#23455;&#34892;
<![CDATA[                    ]]></source>
                <p class="section">&#12392;&#12356;&#12358;&#24863;&#12376;&#12391;&#12289;Session&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#12434;&#21462;&#24471;&#12375;&#12289;&#12371;&#12398;Session&#12434;&#20351;&#12387;&#12390;&#12289;&#19978;&#35352;&#12398;&#12424;&#12358;&#12394;&#26908;&#32034;&#12434;&#23455;&#34892;&#12375;&#12414;&#12377;&#12290;&#12375;&#12363;&#12375;&#12289;&#27598;&#22238;&#12475;&#12483;&#12471;&#12519;&#12531;&#12434;&#21462;&#24471;&#12377;&#12427;&#12392;&#12356;&#12358;&#12424;&#12358;&#12394;&#12371;&#12392;&#12434;
                    &#26360;&#12367;&#12398;&#12399;&#38754;&#20498;&#12394;&#12398;&#12391;&#12289;&#32153;&#25215;&#12434;&#20351;&#12387;&#12390;&#23569;&#12293;&#27005;&#12434;&#12375;&#12414;&#12375;&#12423;&#12358;(&#12497;&#12483;&#12465;&#12540;&#12472;&#12399;&#26412;&#26469;&#12399;&#21029;&#12395;&#12377;&#12427;&#12409;&#12365;&#12391;&#12375;&#12423;&#12358;&#12364;&#12289;&#35441;&#12375;&#12434;&#21336;&#32020;&#12395;&#12377;&#12427;&#12383;&#12417;&#12395;&#12289;&#20316;&#25104;&#12418;&#27005;&#12395;&#12377;&#12427;&#12383;&#12417;&#12395;&#20840;&#12390;&#21516;&#12376;&#12418;&#12398;&#12395;&#12375;&#12390;&#12356;&#12414;&#12377;)&#12290;</p>
                <p class="section">&#27425;&#12398;&#12424;&#12358;&#12394;&#12473;&#12540;&#12497;&#12540;&#12463;&#12521;&#12473;&#12434;&#20316;&#25104;&#12375;&#12414;&#12377;&#12290;&#12381;&#12375;&#12390;&#12289;&#23455;&#38555;&#12398;DAO&#12399;&#12381;&#12428;&#12434;extends&#12375;&#12390;&#20316;&#25104;&#12375;&#12414;&#12377;&#12290;&#12414;&#12378;&#12399;BaseDAO.java&#12290;</p>
                <source id="dao" xml:space="preserve"><![CDATA[
/*
 * Created on 2005/06/03
 *
 */
package com.chikkun.webcms.test;

import java.util.List;

import net.sf.hibernate.Criteria;
import net.sf.hibernate.Hibernate;
import net.sf.hibernate.HibernateException;
import net.sf.hibernate.Query;
import net.sf.hibernate.Session;
import net.sf.hibernate.Transaction;
import net.sf.hibernate.expression.Example;
import net.sf.hibernate.expression.Expression;
import net.sf.hibernate.expression.Order;

/**
 * @author Chiku Kazuro
 * @version 0.1
 *  
 */
public class UserDAO extends BaseDAO {

    public void save(TestBean u) {
        Session session = null;
        Transaction transaction = null;
        try {
            session = getSession();
            transaction = session.beginTransaction();
            session.save(u);
            transaction.commit();
            //hsqlCleanup(session);//]]>&#12371;&#12428;&#12434;&#20351;&#12358;&#12392;&#12473;&#12500;&#12540;&#12489;&#12364;&#36933;&#12367;&#12394;&#12427;&#12363;&#12418;
<![CDATA[        } catch (Exception ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());
            if (transaction != null) {
                try {
                    transaction.rollback();
                } catch (HibernateException ignore) {
                }
            }
            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (Exception ignore) {
                }
            }
        }
    }

    private void hsqlCleanup(Session s) {
        try {
            s.connection().createStatement().execute("checkpoint");
        } catch (Exception e) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + e.getMessage());
        }
    }

    public void delete(TestBean u) {
        Session session = null;
        Transaction transaction = null;
        try {
            session = getSession();
            transaction = session.beginTransaction();
            session.delete(u);
            transaction.commit();
            session.flush();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());

            if (transaction != null) {
                try {
                    transaction.rollback();
                } catch (HibernateException ignore) {
                }
            }
            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }
    }

    public void delete(String userName) {
        Session session = null;
        Transaction transaction = null;
        try {
            session = getSession();
            transaction = session.beginTransaction();
            session.delete("FROM TestBean as bean where bean.userName = ?",
                    userName, Hibernate.STRING);
            transaction.commit();
            session.flush();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());

            if (transaction != null) {
                try {
                    transaction.rollback();
                } catch (HibernateException ignore) {
                }
            }
            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }
    }

    public void deleteAll() {
        Session session = null;
        Transaction transaction = null;
        try {
            session = getSession();
            transaction = session.beginTransaction();
            session.delete("FROM TestBean");
            transaction.commit();
            session.flush();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());

            if (transaction != null) {
                try {
                    transaction.rollback();
                } catch (HibernateException ignore) {
                }
            }
            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }
    }

    public void update(TestBean u) {
        Session session = null;
        Transaction transaction = null;
        try {
            session = getSession();
            transaction = session.beginTransaction();
            session.update(u);
            transaction.commit();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());
            if (transaction != null) {
                try {
                    transaction.rollback();
                } catch (HibernateException ignore) {
                }
            }
            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }
    }

    public List findAll() {
        Session session = null;
        try {
            session = getSession();
            Query query = session.createQuery("FROM TestBean");

            return query.list();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());
            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }
    }

    public List findById(Integer id) {
        List result = null;
        Session session = null;
        try {
            session = getSession();
            Criteria criteria = session.createCriteria(TestBean.class);
            if (id != null && id.intValue() > 0) {
                criteria.add(Expression.eq("id", id));
            }
            result = criteria.list();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());

            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }
        return result;
    }

    public List findByLoginId(String id) {
        List result = null;
        Session session = null;
        try {
            session = getSession();
            Criteria criteria = session.createCriteria(TestBean.class);
            if (id != null && !"".equals(id)) {
                criteria.add(Expression.eq("userName", id));//]]>&#12486;&#12540;&#12502;&#12523;&#12398;&#12501;&#12451;&#12540;&#12523;&#12489;&#21517;&#12376;&#12419;&#12394;&#12356;
<![CDATA[            }
            result = criteria.list();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());

            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }
        return result;
    }

    public List findByQBE(TestBean bean) {

        List result = null;
        Session session = null;
        try {
            session = getSession();
            Example example = Example.create(bean);
            Criteria criteria = session.createCriteria(TestBean.class);
            criteria.add(example);
            result = criteria.list();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());

            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }
        return result;

    }

    public List findSortedByUserNameHQL() {
        Session session = null;
        try {
            session = getSession();
            Query query = session
                    .createQuery("FROM TestBean order by USER_NAME");

            return query.list();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());
            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }

    }

    public List findSortedByUserNameCriteria() {
        Session session = null;
        List result = null;
        try {
            session = getSession();
            Criteria criteria = session.createCriteria(TestBean.class);
            ;
            criteria.addOrder(Order.desc("userName"));
            result = criteria.list();
            return result;
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());
            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }

    }

    public Integer getLastId() {
        Session session = null;
        try {
            session = getSession();
            Query query = session.createQuery("FROM TestBean order by ID");

            List list = query.list();
            int last = list.size() - 1;
            TestBean bean = (TestBean) list.get(last);
            return bean.getId();
        } catch (HibernateException ex) {
            System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12456;&#12521;&#12540;<![CDATA[:" + ex.getMessage());
            throw new RuntimeException(ex.getMessage());
        } finally {
            if (session != null) {
                try {
                    session.close();
                } catch (HibernateException ignore) {
                }
            }
        }

    }
}

                    ]]></source>
                <p class="section">&#12381;&#12375;&#12390;&#12289;&#19978;&#35352;&#12398;DAO&#12434;&#20351;&#12387;&#12390;&#12289;&#12487;&#12540;&#12479;&#12398;&#20986;&#12375;&#20837;&#12428;&#12434;&#12420;&#12387;&#12390;&#12415;&#12414;&#12375;&#12423;&#12358;&#12290;&#20170;&#22238;&#12399;struts&#12398;Action&#12434;&#20316;&#12427;&#12398;&#12399;&#38754;&#20498;&#12394;&#12398;&#12391;&#12289;&#36890;&#24120;&#12398;Java&#12398;
                        &#12450;&#12503;&#12522;&#12465;&#12540;&#12471;&#12519;&#12531;&#12289;main&#12513;&#12477;&#12483;&#12489;&#12434;&#25345;&#12388;&#12418;&#12398;&#12391;&#12289;&#12373;&#12354;&#20316;&#12387;&#12390;&#12415;&#12414;&#12375;&#12423;&#12358;&#12290;&#12381;&#12358;&#12381;&#12358;&#12381;&#12398;&#21069;&#12395;hibernate&#12395;&#24517;&#35201;&#12394;jar&#12501;&#12449;&#12452;&#12523;&#12434;&#12289;<code>c:/java/hibernate-2.1/lib</code>
                    &#12363;&#12425;&#12467;&#12500;&#12540;&#12375;&#12390;&#12362;&#12363;&#12394;&#12365;&#12419;&#12394;&#12425;&#12394;&#12356;&#12290;&#12496;&#12540;&#12472;&#12519;&#12531;&#12399;&#12392;&#12418;&#12363;&#12367;&#12289;&#12354;&#12427;&#12418;&#12398;&#12399;&#12381;&#12398;&#12414;&#12414;&#12395;&#12375;&#12390;&#12289;&#12394;&#12356;&#12418;&#12398;&#12399;&#12467;&#12500;&#12540;&#12375;&#12289;&#12373;&#12425;&#12395;eclipse&#12398;&#12499;&#12523;&#12489;&#12497;&#12473;&#12395;&#21152;&#12360;&#12414;&#12377;&#12290;</p>
                <ol class="section">
                    <li>hibernate2.jar</li>
                    <li>commons-logging-1.0.3.jar(&#12371;&#12428;&#12399;&#26082;&#12395;&#12354;&#12427;)</li>
                    <li>commons-collections-2.1.jar(&#12371;&#12428;&#12399;&#26082;&#12395;&#12354;&#12427;)</li>
                    <li>commons-lang-1.0.1.jar(&#12371;&#12428;&#12399;&#26082;&#12395;&#12354;&#12427;)</li>
                    <li>cglib-2.0-rc2.jar</li>
                    <li>dom4j-1.4.jar</li>
                    <li>jta.jar</li>
                    <li>ehcache-0.6.jar</li>
                    <li>odmg-3.0.jar</li>
                    <li>xml-apis.jar</li>
                    <li>xerces-2.4.0.jar</li>
                    <li>xalan-2.4.0.jar</li>
                </ol>
                <p>&#19978;&#35352;&#12398;&#35373;&#23450;&#12364;&#32066;&#12431;&#12387;&#12383;&#12425;&#12289;main&#12513;&#12477;&#12483;&#12489;&#12434;&#25345;&#12388;&#12477;&#12540;&#12473;&#12434;&#23455;&#38555;&#26360;&#12365;&#12414;&#12375;&#12423;&#12358;&#12290;&#12381;&#12358;&#12381;&#12358;&#12289;&#12381;&#12398;&#38555;&#19978;&#35352;&#12395;&#12354;&#12387;&#12383;<code>ant
                    schemaexport</code>&#12391;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12434;&#21021;&#26399;&#21270;&#12375;&#12390;&#12362;&#12365;&#12414;&#12375;&#12423;&#12358;&#12290;
                    &#12371;&#12398;&#12392;&#12365;&#12395;&#27880;&#24847;1&#12290;schmaexport&#12375;&#12383;&#30452;&#24460;&#12395;&#12289;&#12487;&#12540;&#12479;&#12398;&#20986;&#12375;&#20837;&#12428;&#12434;&#12377;&#12427;Java&#12434;&#23455;&#34892;&#12377;&#12427;&#12392;&#12456;&#12521;&#12540;&#12364;&#36215;&#12371;&#12427;&#21487;&#33021;&#24615;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;&#12371;&#12428;&#12399;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12364;lock&#12434;&#12363;&#12369;&#12390;&#12289;&#12381;&#12428;&#12364;&#35299;&#25918;&#12373;&#12428;&#12390;&#12356;&#12394;&#12356;&#12363;&#12425;&#12391;&#12377;&#12290;
                        15&#31186;&#12411;&#12393;&#24453;&#12387;&#12390;&#12363;&#12425;&#12289;&#23455;&#34892;&#12375;&#12414;&#12375;&#12423;&#12358;&#12290;&#12373;&#12390;&#12289;&#12477;&#12540;&#12473;&#12399;&#12539;&#12539;&#12539;(&#12477;&#12540;&#12473;&#12434;&#35501;&#12415;&#12394;&#12364;&#12425;Hibernate&#12395;&#12388;&#12356;&#12390;&#12431;&#12363;&#12425;&#12394;&#12356;&#22580;&#21512;&#12399;<link href="http://www.hibernate.org/hib_docs/api/index.html">Hibernate&#12398;JavaDoc</link>&#12434;&#35211;&#12390;&#12367;&#12384;&#12373;&#12356;)&#12290;
                        &#12414;&#12383;&#12289;Hibernate&#12395;&#12399;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12392;&#12398;&#12420;&#12426;&#12392;&#12395;&#12426;<code>HQL</code>&#12420;&#12425;<code>criteria</code>&#12394;&#12393;&#12364;&#12354;&#12426;&#12414;&#12377;&#12364;&#12289;&#20170;&#22238;&#12399;&#12381;&#12428;&#12425;&#12434;&#12431;&#12374;&#12392;&#28151;&#12380;&#12390;&#20351;&#12387;&#12390;&#12356;&#12427;&#12398;&#12391;&#12289;&#12381;&#12398;&#36794;&#12418;&#12372;&#27880;&#30446;(&#12381;&#12428;&#12425;&#12399;&#19978;&#35352;&#12398;&#12477;&#12540;&#12473;---<link href="#dao">DAO</link>)&#12434;&#65281;</p>
                <source xml:space="preserve"><![CDATA[
/*
 * Created on 2005/06/04
 *
 */
package com.chikkun.webcms.test;

import java.util.Iterator;
import java.util.List;

/**
 * @author Chiku Kazuro
 * @version 0.1
 *
 */
public class TestDataBaseMain {

    public static void main(String[] args) {
        //1]]>&#20154;&#30446;
<![CDATA[        UserDAO ud = new UserDAO();
        TestBean tb = new TestBean();
        tb.setUserName("chikkun");
        tb.setEmail("chikkun@chikkun.com");
        tb.setMemberName("]]>&#30693;&#20037;&#21644;&#37070;<![CDATA[");
        tb.setNote("]]>&#12418;&#12358;<![CDATA[12]]>&#26178;&#21322;&#12384;&#12424;<![CDATA[");
        //id]]>&#12399;&#33258;&#21205;&#12391;<![CDATA[hibernate]]>&#12364;&#20837;&#12428;&#12390;&#12367;&#12428;&#12427;&#12398;&#12391;<![CDATA[setId()]]>&#12399;&#24517;&#35201;&#12394;&#12356;&#12290;
<![CDATA[        ud.save(tb);

        System.out.println(tb.getUserName() + "]]>&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12414;&#12375;&#12383;<![CDATA[!");

        //2]]>&#20154;&#30446;
<![CDATA[        tb = new TestBean();
        tb.setUserName("denn");
        tb.setEmail("denn@chikkun.com");
        tb.setMemberName("]]>&#20253;&#27861;&#35895;&#21315;&#20195;&#26149;<![CDATA[");
        tb.setNote("]]>&#12384;&#12356;&#12383;&#12356;&#12289;&#22825;&#26234;&#22825;&#30343;&#12399;&#26263;&#27578;&#12373;&#12428;&#12383;&#12435;&#12384;&#12424;<![CDATA[!");
        ud.save(tb);

        System.out.println(tb.getUserName() + "]]>&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12414;&#12375;&#12383;<![CDATA[!");

        //3]]>&#20154;&#30446;
<![CDATA[        tb = new TestBean();
        tb.setUserName("terui");
        tb.setEmail("terui@chikkun.com");
        tb.setMemberName("]]>&#29031;&#20117;&#22823;&#29579;<![CDATA[");
        tb.setNote("]]>&#36938;&#12406;&#26247;&#12364;&#12394;&#12356;<![CDATA[");
        ud.save(tb);

        System.out.println(tb.getUserName() + "]]>&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12414;&#12375;&#12383;<![CDATA[!");

        //4]]>&#20154;&#30446;
<![CDATA[        tb = new TestBean();
        tb.setUserName("manabu");
        tb.setEmail("manabu@chikkun.com");
        tb.setMemberName("]]>&#23398;&#12367;&#12435;<![CDATA[");
        tb.setNote("]]>&#22238;&#36335;&#22259;&#12434;&#25345;&#12387;&#12390;&#12365;&#12390;<![CDATA[!");
        ud.save(tb);
        System.out.println(tb.getUserName() + "]]>&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12414;&#12375;&#12383;<![CDATA[!");

        //]]>&#26908;&#32034;&#38283;&#22987;

<![CDATA[        //]]>&#20154;&#25968;&#21462;&#24471;
<![CDATA[        List list = ud.findAll();
        System.out.println("]]>&#29694;&#22312;&#12487;&#12540;&#12479;&#25968;&#12399;<![CDATA[" + list.size() + "]]>&#12391;&#12377;&#12290;<![CDATA[");

        //]]>&#26368;&#24460;&#12398;<![CDATA[ID]]>&#12398;&#20154;&#12434;&#21462;&#24471;
<![CDATA[        Integer last = ud.getLastId();
        list = ud.findById(last);
        System.out.println("]]>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12398;<![CDATA[" + last.intValue() + "]]>&#30058;&#30446;<![CDATA[(]]>&#26368;&#24460;<![CDATA[)]]>&#12398;&#20154;&#12399;<![CDATA["
                + ((TestBean) list.get(0)).getMemberName() + "]]>&#12373;&#12435;&#12391;&#12377;&#12290;<![CDATA[");

        //denn]]>&#12434;&#26908;&#32034;
<![CDATA[        list = ud.findByLoginId("denn");
        System.out.println("denn]]>&#12373;&#12435;&#12398;&#23455;&#21517;&#12399;<![CDATA["
                + ((TestBean) list.get(0)).getMemberName() + "]]>&#12373;&#12435;&#12391;&#12377;&#12290;<![CDATA[");

        //chikkun]]>&#12434;<![CDATA[TestBean]]>&#12391;&#21462;&#24471;
<![CDATA[        tb = new TestBean();
        tb.setUserName("chikkun");
        list = ud.findByQBE(tb);
        System.out.println("]]>&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#12391;&#12418;&#26908;&#32034;&#12391;&#12365;&#12427;<![CDATA[:]]>&#12371;&#12398;&#20154;&#12398;&#23455;&#21517;&#12399;<![CDATA["
                + ((TestBean) list.get(0)).getMemberName() + "]]>&#12373;&#12435;&#12391;&#12377;&#12290;<![CDATA[");

        //userName]]>&#12391;&#12477;&#12540;&#12488;&#12375;&#12383;&#20840;&#12487;&#12540;&#12479;&#12434;&#21462;&#24471;&#12289;&#34920;&#31034;<![CDATA[(HQL]]>&#12434;&#21033;&#29992;&#12375;&#12390;<![CDATA[)
        list = ud.findSortedByUserNameHQL();
        Iterator it = list.iterator();
        System.out.println("\nSorted by userName with HQL");
        int i = 0;
        while (it.hasNext()) {
            i++;
            TestBean sorted = (TestBean) it.next();
            System.out.println(i + "]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[" + sorted.getUserName() + "]]>&#12391;&#12377;&#12290;<![CDATA[");
        }

        //userName]]>&#12391;&#38477;&#38918;&#12477;&#12540;&#12488;&#12375;&#12383;&#20840;&#12487;&#12540;&#12479;&#12434;&#21462;&#24471;&#12289;&#34920;&#31034;<![CDATA[(Criteria]]>&#12434;&#21033;&#29992;&#12375;&#12390;<![CDATA[)
        list = ud.findSortedByUserNameCriteria();
        it = list.iterator();
        System.out.println("\nSorted by userName with Criteria(]]>&#38477;&#38918;<![CDATA[)");
        i = 0;
        while (it.hasNext()) {
            i++;
            TestBean sorted = (TestBean) it.next();
            System.out.println(i + "]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[" + sorted.getUserName() + "]]>&#12391;&#12377;&#12290;<![CDATA[");
        }

        //chikkun]]>&#12398;<![CDATA[userName]]>&#12434;&#20351;&#12387;&#12390;&#21066;&#38500;
<![CDATA[        ud.delete("chikkun");
        list = ud.findAll();
        System.out.println("\ndelete by userName with HQL(userName]]>&#30452;&#25509;&#25351;&#23450;<![CDATA[)");
        System.out.println("chikkun]]>&#12434;&#21066;&#38500;&#12375;&#12414;&#12375;&#12383;&#12290;&#29694;&#22312;&#12487;&#12540;&#12479;&#25968;&#12399;<![CDATA[" + list.size() + "]]>&#12391;&#12377;&#12290;<![CDATA[");

        //denn]]>&#12398;&#26908;&#32034;&#12375;&#12383;<![CDATA[TestBean]]>&#12434;&#20351;&#12387;&#12390;&#12398;&#21066;&#38500;
<![CDATA[        list = ud.findByLoginId("denn");
        TestBean deleteBean = (TestBean) list.get(0);
        ud.delete(deleteBean);
        list = ud.findAll();
        System.out.println("\ndelete by TestBean with HQL(TestBean]]>&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#12391;&#25351;&#23450;<![CDATA[)");
        System.out.println("denn]]>&#12434;&#21066;&#38500;&#12375;&#12414;&#12375;&#12383;&#12290;&#29694;&#22312;&#12487;&#12540;&#12479;&#25968;&#12399;<![CDATA[" + list.size() + "]]>&#12391;&#12377;&#12290;<![CDATA[");

        //managu]]>&#12398;<![CDATA[memberName]]>&#12398;&#26356;&#26032;
<![CDATA[        list = ud.findByLoginId("manabu");
        TestBean updateBean = (TestBean) list.get(0);
        updateBean.setMemberName("]]>&#37428;&#26408;&#23398;<![CDATA[(]]>&#20693;&#12398;&#21516;&#32026;&#29983;<![CDATA[)");
        ud.delete(updateBean);
        System.out.println("\nupdate memberName with HQL");
        System.out.println("manabu]]>&#12398;&#27663;&#21517;&#12434;&#12289;&#39178;&#23376;&#32257;&#32068;&#12398;&#12383;&#12417;&#12395;&#12289;&#22793;&#26356;&#12375;&#12414;&#12375;&#12383;<![CDATA[(]]>&#12381;&#12428;&#20474;<![CDATA[?)]]>&#12290;&#20304;&#34276;&#23398;<![CDATA[ -> "
                + updateBean.getMemberName() + " ]]>&#12395;&#12394;&#12426;&#12414;&#12375;&#12383;&#12290;<![CDATA[");

        //]]>&#20840;&#12487;&#12540;&#12479;&#12398;&#21066;&#38500;
<![CDATA[        ud.deleteAll();
        list = ud.findAll();
        System.out.println("\n]]>&#12381;&#12375;&#12390;&#12289;&#35504;&#12418;&#12356;&#12394;&#12367;&#12394;&#12426;&#12414;&#12375;&#12383;&#12290;<![CDATA[");
        System.out.println("denn]]>&#12434;&#21066;&#38500;&#12375;&#12414;&#12375;&#12383;&#12290;&#29694;&#22312;&#12487;&#12540;&#12479;&#25968;&#12399;<![CDATA[" + list.size() + "]]>&#12391;&#12377;&#12290;<![CDATA[");

        //]]>&#12362;&#12375;&#12414;&#12356;
<![CDATA[    }
}

                    ]]></source>
                <p class="section">&#12371;&#12428;&#12434;&#23455;&#34892;&#12377;&#12427;&#12392;&#12289;&#27425;&#12398;&#12424;&#12358;&#12394;&#20986;&#21147;&#12364;(&#12467;&#12531;&#12477;&#12540;&#12523;&#12395;)&#12354;&#12427;&#12399;&#12378;&#12391;&#12377;&#12290;</p>
                <source xml:space="preserve"><![CDATA[
chikkun]]>&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12414;&#12375;&#12383;<![CDATA[!
denn]]>&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12414;&#12375;&#12383;<![CDATA[!
terui]]>&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12414;&#12375;&#12383;<![CDATA[!
manabu]]>&#12434;&#12452;&#12531;&#12469;&#12540;&#12488;&#12375;&#12414;&#12375;&#12383;<![CDATA[!
]]>&#29694;&#22312;&#12487;&#12540;&#12479;&#25968;&#12399;<![CDATA[4]]>&#12391;&#12377;&#12290;
&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12398;<![CDATA[12]]>&#30058;&#30446;<![CDATA[(]]>&#26368;&#24460;<![CDATA[)]]>&#12398;&#20154;&#12399;&#23398;&#12367;&#12435;&#12373;&#12435;&#12391;&#12377;&#12290;
<![CDATA[denn]]>&#12373;&#12435;&#12398;&#23455;&#21517;&#12399;&#20253;&#27861;&#35895;&#21315;&#20195;&#26149;&#12373;&#12435;&#12391;&#12377;&#12290;
&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#12391;&#12418;&#26908;&#32034;&#12391;&#12365;&#12427;<![CDATA[:]]>&#12371;&#12398;&#20154;&#12398;&#23455;&#21517;&#12399;&#30693;&#20037;&#21644;&#37070;&#12373;&#12435;&#12391;&#12377;&#12290;

<![CDATA[Sorted by userName with HQL
1]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[chikkun]]>&#12391;&#12377;&#12290;
<![CDATA[2]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[denn]]>&#12391;&#12377;&#12290;
<![CDATA[3]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[manabu]]>&#12391;&#12377;&#12290;
<![CDATA[4]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[terui]]>&#12391;&#12377;&#12290;

<![CDATA[Sorted by userName with Criteria(]]>&#38477;&#38918;<![CDATA[)
1]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[terui]]>&#12391;&#12377;&#12290;
<![CDATA[2]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[manabu]]>&#12391;&#12377;&#12290;
<![CDATA[3]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[denn]]>&#12391;&#12377;&#12290;
<![CDATA[4]]>&#30058;&#30446;&#12398;&#20154;&#12399;<![CDATA[chikkun]]>&#12391;&#12377;&#12290;

<![CDATA[delete by userName with HQL(userName]]>&#30452;&#25509;&#25351;&#23450;<![CDATA[)
chikkun]]>&#12434;&#21066;&#38500;&#12375;&#12414;&#12375;&#12383;&#12290;&#29694;&#22312;&#12487;&#12540;&#12479;&#25968;&#12399;<![CDATA[3]]>&#12391;&#12377;&#12290;

<![CDATA[delete by TestBean with HQL(TestBean]]>&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#12391;&#25351;&#23450;<![CDATA[)
denn]]>&#12434;&#21066;&#38500;&#12375;&#12414;&#12375;&#12383;&#12290;&#29694;&#22312;&#12487;&#12540;&#12479;&#25968;&#12399;<![CDATA[2]]>&#12391;&#12377;&#12290;

<![CDATA[update memberName with HQL
manabu]]>&#12398;&#27663;&#21517;&#12434;&#12289;&#39178;&#23376;&#32257;&#32068;&#12398;&#12383;&#12417;&#12395;&#12289;&#22793;&#26356;&#12375;&#12414;&#12375;&#12383;<![CDATA[(]]>&#12381;&#12428;&#20474;<![CDATA[?)]]>&#12290;&#20304;&#34276;&#23398;<![CDATA[ -> ]]>&#37428;&#26408;&#23398;<![CDATA[ ]]>&#12395;&#12394;&#12426;&#12414;&#12375;&#12383;&#12290;

&#12381;&#12375;&#12390;&#12289;&#35504;&#12418;&#12356;&#12394;&#12367;&#12394;&#12426;&#12414;&#12375;&#12383;&#12290;
<![CDATA[denn]]>&#12434;&#21066;&#38500;&#12375;&#12414;&#12375;&#12383;&#12290;&#29694;&#22312;&#12487;&#12540;&#12479;&#25968;&#12399;<![CDATA[0]]>&#12391;&#12377;&#12290;
<![CDATA[                    ]]></source>
                <p class="section">&#19978;&#35352;&#12364;&#20986;&#21147;&#12373;&#12428;&#12383;&#12425;&#12289;&#12417;&#12391;&#12383;&#12375;&#12417;&#12391;&#12383;&#12375;&#12290;</p>
            </section>
        </section>
        <section>
            <title>&#12371;&#12428;&#12384;&#12369;&#12376;&#12419;&#12394;&#12356;</title>
            <p class="chapter">Hibernate&#12398;&#23455;&#21147;&#12399;&#12371;&#12435;&#12394;&#12418;&#12435;&#12376;&#12419;&#12394;&#12356;&#12290;&#12392;&#12356;&#12358;&#12363;&#12289;&#12363;&#12388;&#12390;&#12399;&#31169;&#33258;&#36523;&#12418;&#12381;&#12358;&#12384;&#12387;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#12371;&#12398;&#31243;&#24230;&#12394;&#12425;SQL&#25991;&#12434;
                &#30452;&#12395;&#25201;&#12387;&#12390;&#12418;&#12300;&#22823;&#12375;&#12390;&#22793;&#12431;&#12425;&#12394;&#12356;&#12376;&#12419;&#12435;&#12301;&#12390;&#12394;&#35441;&#12375;&#12395;&#12394;&#12426;&#12414;&#12377;&#12290;&#12375;&#12363;&#12375;&#12289;&#23455;&#38555;&#12395;&#12399;&#27425;&#12398;&#12424;&#12358;&#12394;&#12513;&#12522;&#12483;&#12488;(&#20840;&#12390;&#12434;&#25226;&#25569;&#12375;&#12390;&#12356;&#12414;&#12379;&#12435;&#12364;)&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;</p>
            <ol class="chapter">
                <li>&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#25351;&#21521;&#12392;SQL&#25991;&#12392;&#12356;&#12358;&#12424;&#12358;&#12395;&#12289;&#38957;&#12434;&#20999;&#12426;&#25563;&#12360;&#12427;&#24517;&#35201;&#12364;&#12394;&#12356;&#12290;</li>
                <li>Bean&#12434;&#22522;&#26412;&#12395;&#12487;&#12540;&#12479;&#12434;&#25201;&#12387;&#12390;&#12356;&#12427;&#19978;&#12391;&#12289;&#12381;&#12428;&#12434;&#33258;&#21205;&#12391;set&#12375;&#12390;&#12367;&#12428;&#12427;&#12398;&#12391;&#12289;&#12467;&#12540;&#12487;&#12451;&#12531;&#12464;&#12364;&#27005;&#12290;</li>
                <li>&#12371;&#12371;&#12395;&#12399;&#20363;&#12392;&#12375;&#12390;&#12354;&#12370;&#12414;&#12379;&#12435;&#12391;&#12375;&#12383;&#12364;&#12289;&#12486;&#12540;&#12502;&#12523;&#12364;&#35242;&#12392;&#23376;&#12392;&#12356;&#12358;&#12424;&#12358;&#12394;&#38306;&#20418;&#12395;&#12354;&#12387;&#12383;&#22580;&#21512;&#12289;&#35242;&#12434;&#26908;&#32034;&#12377;&#12427;&#12392;&#12289;&#12381;&#12428;&#12395;&#20276;&#12356; &#33258;&#21205;&#12391;&#23376;&#20379;&#12418;&#33258;&#21205;&#12391;&#21462;&#24471;&#12391;&#12365;&#12427;&#12290;</li>
                <li>&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12434;&#22793;&#26356;&#12377;&#12427;&#12392;&#12356;&#12358;&#29366;&#27841;&#12395;&#12394;&#12387;&#12390;&#12418;&#12289;<code>hibernate.cfg.xml</code>&#12398;<code>jdbc:hsqldb:file://c:/eclipse/workspace/webcms/WEB-INF/database/webcms</code>
                    &#12434;&#22793;&#26356;&#12377;&#12427;&#12384;&#12369;&#12391;&#12424;&#12356;&#12375;&#12289;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12372;&#12392;&#12398;&#26041;&#35328;&#12394;&#12393;&#12418;&#21560;&#21454;&#12375;&#12390;&#12367;&#12428;&#12427;&#12290;</li>
            </ol>
            <p class="chapter">&#12394;&#12393;&#12394;&#12393;&#33394;&#12293;&#12354;&#12427;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;</p>
            <p class="chapter">
                <strong>&#12362;&#12375;&#12414;&#12356;!!!</strong>
            </p>
        </section>
    </body>
</document>