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

📄 basic_mapping.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:47+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#: basic_mapping.xml:5#, no-c-formatmsgid "Basic O/R Mapping"msgstr "기본 O/R 매핑"#. Tag: title#: basic_mapping.xml:8#, no-c-formatmsgid "Mapping declaration"msgstr "매핑 선언"#. Tag: para#: basic_mapping.xml:10#, no-c-formatmsgid """Object/relational mappings are usually defined in an XML document. The ""mapping document is designed to be readable and hand-editable. The mapping ""language is Java-centric, meaning that mappings are constructed around ""persistent class declarations, not table declarations."msgstr """객체/관계형 매핑들은 대개 XML 문서 내에 정의된다. 매핑 문서는 가독성이 있고 ""수작업 편집이 가능하도록 설계되어 있다. 매핑 언어는 매핑들이 테이블 선언들이 ""아닌, 영속 클래스 선언들로 생성된다는 의미에서 자바 중심적이다."#. Tag: para#: basic_mapping.xml:17#, no-c-formatmsgid """Note that, even though many Hibernate users choose to write the XML by hand, ""a number of tools exist to generate the mapping document, including XDoclet, ""Middlegen and AndroMDA."msgstr """심지어 많은 Hibernate 사용자들이 수작업으로 XML을 작성하고자 선택할지라도, ""XDoclet, Middlegen, 그리고 AndroMDA를 포함하는, 매핑 문서를 생성시키는 많은 ""도구들이 존재한다는 점을 노트하라."#. Tag: para#: basic_mapping.xml:23#, no-c-formatmsgid "Lets kick off with an example mapping:"msgstr "예제 매핑으로 시작하자:"#. Tag: programlisting#: basic_mapping.xml:27#, no-c-formatmsgid """<![CDATA[<?xml version=\"1.0\"?>\n""<!DOCTYPE hibernate-mapping PUBLIC\n""      \"-//Hibernate/Hibernate Mapping DTD 3.0//EN\"\n""          \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n""\n""<hibernate-mapping package=\"eg\">\n""\n""        <class name=\"Cat\"\n""            table=\"cats\"\n""            discriminator-value=\"C\">\n""\n""                <id name=\"id\">\n""                        <generator class=\"native\"/>\n""                </id>\n""\n""                <discriminator column=\"subclass\"\n""                     type=\"character\"/>\n""\n""                <property name=\"weight\"/>\n""\n""                <property name=\"birthdate\"\n""                    type=\"date\"\n""                    not-null=\"true\"\n""                    update=\"false\"/>\n""\n""                <property name=\"color\"\n""                    type=\"eg.types.ColorUserType\"\n""                    not-null=\"true\"\n""                    update=\"false\"/>\n""\n""                <property name=\"sex\"\n""                    not-null=\"true\"\n""                    update=\"false\"/>\n""\n""                <property name=\"litterId\"\n""                    column=\"litterId\"\n""                    update=\"false\"/>\n""\n""                <many-to-one name=\"mother\"\n""                    column=\"mother_id\"\n""                    update=\"false\"/>\n""\n""                <set name=\"kittens\"\n""                    inverse=\"true\"\n""                    order-by=\"litter_id\">\n""                        <key column=\"mother_id\"/>\n""                        <one-to-many class=\"Cat\"/>\n""                </set>\n""\n""                <subclass name=\"DomesticCat\"\n""                    discriminator-value=\"D\">\n""\n""                        <property name=\"name\"\n""                            type=\"string\"/>\n""\n""                </subclass>\n""\n""        </class>\n""\n""        <class name=\"Dog\">\n""                <!-- mapping for Dog could go here -->\n""        </class>\n""\n""</hibernate-mapping>]]>"msgstr ""#. Tag: para#: basic_mapping.xml:29#, no-c-formatmsgid """We will now discuss the content of the mapping document. We will only ""describe the document elements and attributes that are used by Hibernate at ""runtime. The mapping document also contains some extra optional attributes ""and elements that affect the database schemas exported by the schema export ""tool. (For example the <literal> not-null</literal> attribute.)"msgstr """우리는 이제 매핑 문서의 내용을 논의할 것이다. 우리는 Hibernate에 의해 실행 시""에 사용되는 문서 요소들과 속성들 만을 설명할 것이다. 매핑 문서는 또한 스키마 ""내보내기 도구에 의해 내보내진 데이터베이스 스키마에 영향을 주는 어떤 특별한 ""옵션 속성들과 요소들을 포함한다. (예를 들어 <literal>not-null</literal> 속""성.)"#. Tag: title#: basic_mapping.xml:40#, no-c-formatmsgid "Doctype"msgstr "Doctype"#. Tag: para#: basic_mapping.xml:42#, no-c-formatmsgid """All XML mappings should declare the doctype shown. The actual DTD may be ""found at the URL above, in the directory <literal>hibernate-x.x.x/src/org/""hibernate </literal> or in <literal>hibernate3.jar</literal>. Hibernate will ""always look for the DTD in its classpath first. If you experience lookups of ""the DTD using an Internet connection, check your DTD declaration against the ""contents of your claspath."msgstr """모든 XML 매핑들은 doctype이 보이게 선언해야 한다. 실제 DTD는 위의 URL에서, ""<literal>hibernate-x.x.x/src/org/hibernate</literal> 디렉토리 내에서 또는 ""<literal>hibernate3.jar</literal> 내에서 찾을 수 있다. Hibernate는 항상 첫 번""째로 그것의 classpath 속에서 DTD를 찾게 될 것이다. 만일 당신이 인터넷 연결을 ""사용하는 DTD에 대한 룩업들을 겪게 될 경우, 당신의 classpath의 컨텐츠에 대해 ""당신의 DTD 선언을 체크하라."#. Tag: title#: basic_mapping.xml:52#, no-c-formatmsgid "EntityResolver"msgstr "EntityResolver"#. Tag: para#: basic_mapping.xml:53#, no-c-formatmsgid """As mentioned previously, Hibernate will first attempt to resolve DTDs in its ""classpath. The manner in which it does this is by registering a custom ""<literal>org.xml.sax.EntityResolver</literal> implementation with the ""SAXReader it uses to read in the xml files. This custom ""<literal>EntityResolver</literal> recognizes two different systemId ""namespaces."msgstr """앞서 언급했듯이, Hibernate는 먼저 그것의 classpath에서 DTD들을 해석하려고 시""도할 것이다. Hibernate가 이것을 행하는 방법은 그것이 xml 파일들을 읽어들이는""데 사용하는 SAXReader에 맞춤형 <literal>org.xml.sax.EntityResolver</literal> ""구현을 등록하는 것이다. 이 맞춤형 <literal>EntityResolver</literal>는 두 개""의 다른 systemId namespace들을 인지해낸다."#. Tag: para#: basic_mapping.xml:61#, no-c-formatmsgid """a <literal>hibernate namespace</literal> is recognized whenever the resolver ""encounteres a systemId starting with <literal>http://hibernate.sourceforge.""net/</literal>; the resolver attempts to resolve these entities via the ""classlaoder which loaded the Hibernate classes."msgstr """<literal>hibernate namespace</literal>는 resolver가 <literal>http://""hibernate.sourceforge.net/</literal>로 시작하는 하나의 systemId와 만날때마다 ""인지된다; resolver는 Hibernate 클래스들을 로드시켰던 클래스로더를 통해 이들 ""엔티티들을 해석하려고 시도한다."#. Tag: para#: basic_mapping.xml:70#, no-c-formatmsgid """a <literal>user namespace</literal> is recognized whenever the resolver ""encounteres a systemId using a <literal>classpath://</literal> URL protocol; ""the resolver will attempt to resolve these entities via (1) the current ""thread context classloader and (2) the classloader which loaded the ""Hibernate classes."msgstr """<literal>user namespace</literal>는 resolver가 <literal>classpath://</""literal> URL 프로토콜을 사용하는 systemId를 만날때마다 인지된다; resolver는 ""(1)현재 쓰레드 컨텍스트 클래스로더와 (2)Hibernate 클래스들을 로드시켰던 클래""스로더를 통해 이들 엔티티들을 해석하려고 시도할 것이다."#. Tag: para#: basic_mapping.xml:79#, no-c-formatmsgid "An example of utilizing user namespacing:"msgstr "user namespacing을 활용하는 예제:"#. Tag: programlisting#: basic_mapping.xml:82#, no-c-formatmsgid """<![CDATA[<?xml version=\"1.0\"?>\n""<!DOCTYPE hibernate-mapping PUBLIC\n""        \"-//Hibernate/Hibernate Mapping DTD 3.0//EN\"\n""        \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\" [\n""    <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n""]>\n""\n""<hibernate-mapping package=\"your.domain\">\n""    <class name=\"MyEntity\">\n""        <id name=\"id\" type=\"my-custom-id-type\">\n""            ...\n""        </id>\n""    <class>\n""    &types;\n""</hibernate-mapping>]]>"msgstr ""#. Tag: para#: basic_mapping.xml:83#, no-c-formatmsgid """Where <literal>types.xml</literal> is a resource in the <literal>your.""domain</literal> package and contains a custom <link linkend=\"mapping-types-""custom\">typedef</link>."msgstr """여기서 <literal>types.xml</literal>은 <literal>your.domain</literal> 패키지 ""내에 있는 리소스이고 맞춤형 <xref linkend=\"mapping-types-custom\">typedef</""xref>를 포함한다."#. Tag: title#: basic_mapping.xml:91#, no-c-formatmsgid "hibernate-mapping"msgstr "hibernate-mapping"#. Tag: para#: basic_mapping.xml:93#, no-c-formatmsgid """This element has several optional attributes. The <literal>schema</literal> ""and <literal>catalog</literal> attributes specify that tables referred to in ""this mapping belong to the named schema and/or catalog. If specified, ""tablenames will be qualified by the given schema and catalog names. If ""missing, tablenames will be unqualified. The <literal>default-cascade</""literal> attribute specifies what cascade style should be assumed for ""properties and collections which do not specify a <literal>cascade</literal> ""attribute. The <literal>auto-import</literal> attribute lets us use ""unqualified class names in the query language, by default."msgstr """이 요소는 몇 개의 선택적인 속성들을 갖는다. <literal>schema</literal> 속성과 ""<literal>catalog</literal> 속성은 이 매핑 내에서 참조된 테이블들이 명명된 ""schema 와/또는 catalog에 속한다는 점을 지정한다. 만일 지정될 경우, 테이블 이""름들은 주어진 schema 이름과 catalog 이름에 의해 한정(수식)될 것이다. 누락될 ""경우, 테이블 이름들은 한정되지((수식어가 붙지) 않을 것이다. <literal>default-""cascade</literal> 속성은 <literal>cascade</literal> 속성을 지정하지 않은 프로""퍼티들과 콜렉션들에 대해 전제될 <literal>cascade</literal> 스타일이 무엇인지""를 지정한다. <literal>auto-import</literal> 속성은 디폴트로 우리가 질의 언어 ""속에서 수식어가 붙지 않은(unqualified) 클래스 이름들을 사용하게 할 것이다."#. Tag: programlisting#: basic_mapping.xml:114#, no-c-formatmsgid """<![CDATA[<hibernate-mapping\n""         schema=\"schemaName\"\n""         catalog=\"catalogName\"\n""         default-cascade=\"cascade_style\"\n""         default-access=\"field|property|ClassName\"\n""         default-lazy=\"true|false\"\n""         auto-import=\"true|false\"\n""         package=\"package.name\"\n"" />]]>"msgstr ""#. Tag: para#: basic_mapping.xml:117#, no-c-formatmsgid "<literal>schema</literal> (optional): The name of a database schema."msgstr "<literal>schema</literal> (옵션): 데이터베이스 스키마의 이름."#. Tag: para#: basic_mapping.xml:122#, no-c-format

⌨️ 快捷键说明

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