⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tutorial.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 5 页
字号:
msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: http://bugs.kde.org\n""POT-Creation-Date: 2007-10-25 07:48+0000\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <LL@li.org>\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#. Tag: title#: tutorial.xml:7#, no-c-formatmsgid "Introduction to Hibernate"msgstr "Hibernateの導入"#. Tag: title#: tutorial.xml:10#, no-c-formatmsgid "Preface"msgstr "前書き"#. Tag: para#: tutorial.xml:12#, no-c-formatmsgid """This chapter is an introductory tutorial for new users of Hibernate. We ""start with a simple command line application using an in-memory database and ""develop it in easy to understand steps."msgstr """この章はHibernateを初めて使うユーザ向けの入門的なチュートリアルです。 インメ""モリデータベースを使う簡単なコマンドラインアプリケーションから始め、 一歩一歩""わかりやすいやり方で開発を進めます。"#. Tag: para#: tutorial.xml:18#, no-c-formatmsgid """This tutorial is intended for new users of Hibernate but requires Java and ""SQL knowledge. It is based on a tutorial by Michael Gloegl, the third-party ""libraries we name are for JDK 1.4 and 5.0. You might need others for JDK 1.3."msgstr """このチュートリアルはHibernateを初めて使うユーザを想定していますが、 理解する""にはJavaとSQLについての知識が必要です。 これはMichael Gloeglの手によるチュー""トリアルを下敷きにしていますが、 ここでサードパーティライブラリと言っているの""は、JDK 1.4と5.0用のものです。 JDK 1.3を利用するのであれば他のライブラリが必""要かもしれません。"#. Tag: para#: tutorial.xml:24#, no-c-formatmsgid """The source code for the tutorial is included in the distribution in the ""<literal>doc/reference/tutorial/</literal> directory."msgstr """チュートリアルのソースコードはHibernateディストリビューションの <literal>doc/""reference/tutorial/</literal> にあります。"#. Tag: title#: tutorial.xml:32#, no-c-formatmsgid "Part 1 - The first Hibernate Application"msgstr "パート1 - 初めてのHibernateアプリケーション"#. Tag: para#: tutorial.xml:34#, no-c-formatmsgid """First, we'll create a simple console-based Hibernate application. We use an ""Java database (HSQL DB), so we do not have to install any database server."msgstr """最初にコンソールベースの簡単なHibernateアプリケーションを作成します。 Java""データベース(HSQL DB)を利用するので、 データベースサーバをインストールする""必要はありません。"#. Tag: para#: tutorial.xml:39#, no-c-formatmsgid """Let's assume we need a small database application that can store events we ""want to attend, and information about the hosts of these events."msgstr """仮に小さなデータベースアプリケーションが必要だとしましょう。 そのアプリケー""ションには出席したいイベントと、 そのイベントのホストについての情報を格納する""ものとします。"#. Tag: para#: tutorial.xml:44#, no-c-formatmsgid """The first thing we do, is set up our development directory and put all the ""Java libraries we need into it. Download the Hibernate distribution from the ""Hibernate website. Extract the package and place all required libraries ""found in <literal>/lib</literal> into into the <literal>/lib</literal> ""directory of your new development working directory. It should look like ""this:"msgstr """まず最初にすることは開発用のディレクトリをセットアップして、 必要となるすべて""のJavaライブラリを配置することです。 HibernateウェブサイトからHibernateディス""トリビューションをダウンロードしてください。 ファイルを解凍して <literal>/""lib</literal> にある必要なライブラリのすべてを、 新しい開発用ディレクトリの ""<literal>/lib</literal> ディレクトリに配置してください。 このようになっている""はずです:"#. Tag: programlisting#: tutorial.xml:52#, no-c-formatmsgid """<![CDATA[.\n""+lib\n""  antlr.jar\n""  cglib.jar\n""  asm.jar\n""  asm-attrs.jars\n""  commons-collections.jar\n""  commons-logging.jar\n""  hibernate3.jar\n""  jta.jar\n""  dom4j.jar\n""  log4j.jar ]]>"msgstr ""#. Tag: para#: tutorial.xml:54#, no-c-formatmsgid """This is the minimum set of required libraries (note that we also copied ""hibernate3.jar, the main archive) for Hibernate <emphasis>at the time of ""writing</emphasis>. The Hibernate release you are using might require more ""or less libraries. See the <literal>README.txt</literal> file in the ""<literal>lib/</literal> directory of the Hibernate distribution for more ""information about required and optional third-party libraries. (Actually, ""Log4j is not required but preferred by many developers.)"msgstr """これが <emphasis>本ドキュメント執筆時点での</emphasis> Hibernateの必要最低限""のライブラリです (メインアーカイブのhibernate3.jarもコピーしていることに注意""してください)。 Hibernateのバージョンによってはさらに必要なライブラリや、不""要なライブラリがあるかもしれません。 Hibernateディストリビューションの ""<literal>lib/</literal> ディレクトリにある <literal>README.txt</literal> ファ""イルを見てください。 必須またはオプションのサードパーティライブラリについての""情報を載せています (実際Log4jは必須ではありませんが、多くの開発者が好んでい""ます)。"#. Tag: para#: tutorial.xml:63#, no-c-formatmsgid """Next we create a class that represents the event we want to store in ""database."msgstr "次にデータベースに格納するイベントを表すクラスを作成します。"#. Tag: title#: tutorial.xml:68#, no-c-formatmsgid "The first class"msgstr "最初のクラス"#. Tag: para#: tutorial.xml:70#, no-c-formatmsgid """Our first persistent class is a simple JavaBean class with some properties:"msgstr "最初の永続クラスは、プロパティをいくつか持つシンプルなJavaBeanです:"#. Tag: programlisting#: tutorial.xml:74#, no-c-formatmsgid """<![CDATA[package events;\n""\n""import java.util.Date;\n""\n""public class Event {\n""    private Long id;\n""\n""    private String title;\n""    private Date date;\n""\n""    public Event() {}\n""\n""    public Long getId() {\n""        return id;\n""    }\n""\n""    private void setId(Long id) {\n""        this.id = id;\n""    }\n""\n""    public Date getDate() {\n""        return date;\n""    }\n""\n""    public void setDate(Date date) {\n""        this.date = date;\n""    }\n""\n""    public String getTitle() {\n""        return title;\n""    }\n""\n""    public void setTitle(String title) {\n""        this.title = title;\n""    }\n""}]]>"msgstr ""#. Tag: para#: tutorial.xml:76#, no-c-formatmsgid """You can see that this class uses standard JavaBean naming conventions for ""property getter and setter methods, as well as private visibility for the ""fields. This is a recommended design - but not required. Hibernate can also ""access fields directly, the benefit of accessor methods is robustness for ""refactoring. The no-argument constructor is required to instantiate an ""object of this class through reflection."msgstr """ご覧のとおり、このクラスはフィールドがprivateの可視性を持っているのと同時""に、 JavaBean標準のゲッター、セッターメソッドの命名規約に従っています。 この""ような設計は推奨されていますが必須ではありません。 アクセサメソッドを設けるの""はリファクタリングを考えた頑健性のためで、 Hibernateはフィールドに直接アクセ""スすることも可能です。 引数のないコンストラクタは、リフレクションでこのクラス""のインスタンスを作成するために 必要です。"#. Tag: para#: tutorial.xml:84#, no-c-formatmsgid """The <literal>id</literal> property holds a unique identifier value for a ""particular event. All persistent entity classes (there are less important ""dependent classes as well) will need such an identifier property if we want ""to use the full feature set of Hibernate. In fact, most applications (esp. ""web applications) need to distinguish objects by identifier, so you should ""consider this a feature rather than a limitation. However, we usually don't ""manipulate the identity of an object, hence the setter method should be ""private. Only Hibernate will assign identifiers when an object is saved. You ""can see that Hibernate can access public, private, and protected accessor ""methods, as well as (public, private, protected) fields directly. The choice ""is up to you and you can match it to fit your application design."msgstr """<literal>id</literal> プロパティは、ある特定のイベントに対するユニークな識別""子の値を保持します。 Hibernateの完全な機能を使いたければ、すべての永続エン""ティティクラス (それほど重要ではない依存クラスというものもあります) にこの""ような識別子プロパティが必要になります。 事実上ほとんどのアプリケーション(特""にwebアプリケーション)では、 識別子でオブジェクトを区別する必要があるため、""これは制限というよりも特徴であると考えるべきです。 しかし通常オブジェクトのID""を操作するようなことはしません。 そのためセッターメソッドはprivateにするべき""です。 Hibernateだけがオブジェクトがセーブされたときに識別子へ値を代入しま""す。 Hibernateが(public, private, protected)フィールドに直接アクセスできる""のと同様に、 public, private, protectedのアクセサメソッドにアクセスできるとい""うことがわかるでしょう。 選択はあなたに任されているので、あなたのアプリケー""ションの設計に合わせることができます。"#. Tag: para#: tutorial.xml:96#, no-c-formatmsgid """The no-argument constructor is a requirement for all persistent classes; ""Hibernate has to create objects for you, using Java Reflection. The ""constructor can be private, however, package visibility is required for ""runtime proxy generation and efficient data retrieval without bytecode ""instrumentation."msgstr """引数のないコンストラクタはすべての永続クラスに必須です。 これはHibernateが""Javaのリフレクションを使って、オブジェクトを作成しなければならないためです。 ""コンストラクタをprivateにすることは可能ですが、 実行時のプロキシ生成と、バイ""トコード操作なしの効率的なデータの抽出には、 package可視性が必要です。"#. Tag: para#: tutorial.xml:103#, no-c-formatmsgid """Place this Java source file in a directory called <literal>src</literal> in ""the development folder, and in its correct package. The directory should now ""look like this:"msgstr """開発フォルダの <literal>src</literal> というディレクトリの適切なパッケージ""に、 このJavaソースファイルを配置してください。 この時点でディレクトリは以下""のようになっているはずです:"#. Tag: programlisting#: tutorial.xml:108#, no-c-formatmsgid """<![CDATA[.\n""+lib\n""  <Hibernate and third-party libraries>\n""+src\n""  +events\n""    Event.java]]>"msgstr ""

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -