📄 persistent_classes.po
字号:
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#: persistent_classes.xml:5#, no-c-formatmsgid "Persistent Classes"msgstr "영속 클래스들"#. Tag: para#: persistent_classes.xml:7#, no-c-formatmsgid """Persistent classes are classes in an application that implement the entities ""of the business problem (e.g. Customer and Order in an E-commerce ""application). Not all instances of a persistent class are considered to be ""in the persistent state - an instance may instead be transient or detached."msgstr """영속 클래스들은 비지니스 문제의 엔티티들(예를 들어 E-Commerce 어플리케이션에""서 고객이나 주문)을 구현하는 어플리케이션 내의 클래스들이다. 영속 클래스들의 ""인스턴스들은 영속 상태에 있는 것으로 전혀 간주되지 않는다 - 대신에 하나의 인""스턴스는 transient 또는 detached 상태일 수 있다."#. Tag: para#: persistent_classes.xml:14#, no-c-formatmsgid """Hibernate works best if these classes follow some simple rules, also known ""as the Plain Old Java Object (POJO) programming model. However, none of ""these rules are hard requirements. Indeed, Hibernate3 assumes very little ""about the nature of your persistent objects. You may express a domain model ""in other ways: using trees of <literal>Map</literal> instances, for example."msgstr """Hibernate는 이들 클래스들이 Plain Old Java Object (POJO) 프로그래밍 모형으로""서 알려진, 몇몇 간단한 규칙들을 따를 경우에 가장 잘 동작한다. 하지만 이들 규""칙들 중 어떤 것도 어려운 사양들이 아니다. 진정 Hibernate3는 당신의 영속 객체""들의 특징에 대해 매우 적은 것을 가정한다. 당신은 다른 방법들로 도메인 모형을 ""표현할 수 있다 : 예를 들어 <literal>Map</literal> 인스턴스의 트리들을 사용하""기."#. Tag: title#: persistent_classes.xml:23#, no-c-formatmsgid "A simple POJO example"msgstr "간단한 POJO 예제"#. Tag: para#: persistent_classes.xml:25#, no-c-formatmsgid "Most Java applications require a persistent class representing felines."msgstr """대부분의 자바 어플리케이션들은 고양이과들을 표현하는 영속 클래스를 필요로 한""다."#. Tag: programlisting#: persistent_classes.xml:29#, no-c-formatmsgid """<![CDATA[package eg;\n""import java.util.Set;\n""import java.util.Date;\n""\n""public class Cat {\n"" private Long id; // identifier\n""\n"" private Date birthdate;\n"" private Color color;\n"" private char sex;\n"" private float weight;\n"" private int litterId;\n""\n"" private Cat mother;\n"" private Set kittens = new HashSet();\n""\n"" private void setId(Long id) {\n"" this.id=id;\n"" }\n"" public Long getId() {\n"" return id;\n"" }\n""\n"" void setBirthdate(Date date) {\n"" birthdate = date;\n"" }\n"" public Date getBirthdate() {\n"" return birthdate;\n"" }\n""\n"" void setWeight(float weight) {\n"" this.weight = weight;\n"" }\n"" public float getWeight() {\n"" return weight;\n"" }\n""\n"" public Color getColor() {\n"" return color;\n"" }\n"" void setColor(Color color) {\n"" this.color = color;\n"" }\n""\n"" void setSex(char sex) {\n"" this.sex=sex;\n"" }\n"" public char getSex() {\n"" return sex;\n"" }\n""\n"" void setLitterId(int id) {\n"" this.litterId = id;\n"" }\n"" public int getLitterId() {\n"" return litterId;\n"" }\n""\n"" void setMother(Cat mother) {\n"" this.mother = mother;\n"" }\n"" public Cat getMother() {\n"" return mother;\n"" }\n"" void setKittens(Set kittens) {\n"" this.kittens = kittens;\n"" }\n"" public Set getKittens() {\n"" return kittens;\n"" }\n"" \n"" // addKitten not needed by Hibernate\n"" public void addKitten(Cat kitten) {\n"" kitten.setMother(this);\n"" kitten.setLitterId( kittens.size() ); \n"" kittens.add(kitten);\n"" }\n""}]]>"msgstr ""#. Tag: para#: persistent_classes.xml:31#, no-c-formatmsgid "There are four main rules to follow here:"msgstr "준수할 네 개의 주요 규칙들이 다음에 있다:"#. Tag: title#: persistent_classes.xml:37#, no-c-formatmsgid "Implement a no-argument constructor"msgstr "아규먼트 없는 생성자를 구현하라"#. Tag: para#: persistent_classes.xml:39#, no-c-formatmsgid """<literal>Cat</literal> has a no-argument constructor. All persistent classes ""must have a default constructor (which may be non-public) so that Hibernate ""can instantiate them using <literal>Constructor.newInstance()</literal>. We ""strongly recommend having a default constructor with at least ""<emphasis>package</emphasis> visibility for runtime proxy generation in ""Hibernate."msgstr """<literal>Cat</literal>은 아규먼트 없는 생성자를 갖는다. 모든 영속 클래스들은 ""Hibernate는 <literal>Constructor.newInstance()</literal>를 사용하여 그것들을 ""초기화 시킬 수 있도록 디폴트 생성자 (public이 아닐 수 있다)를 가져야 한다. 우""리는 Hibernate 내에서 런타임 프락시 생성을 위한 최소한의 <emphasis>패키지</""emphasis> 가시성(visibility)를 가진 디폴트 생성자를 가질 것을 강력하게 권장한""다."#. Tag: title#: persistent_classes.xml:49#, no-c-formatmsgid "Provide an identifier property (optional)"msgstr "identifier 프로퍼티를 제공하라(옵션)"#. Tag: para#: persistent_classes.xml:51#, no-c-formatmsgid """<literal>Cat</literal> has a property called <literal>id</literal>. This ""property maps to the primary key column of a database table. The property ""might have been called anything, and its type might have been any primitive ""type, any primitive \"wrapper\" type, <literal>java.lang.String</literal> or ""<literal>java.util.Date</literal>. (If your legacy database table has ""composite keys, you can even use a user-defined class with properties of ""these types - see the section on composite identifiers later.)"msgstr """<literal>Cat</literal>은 <literal>id</literal>로 명명된 하나의 프로퍼티를 갖""는다. 이 프로퍼티는 데이터베이스 테이블의 프라이머리 키 컬럼으로 매핑된다. ""이 프로퍼티는 어떤 것으로 명명될 수도 있고, 그것의 타입은 임의의 원시 타입, ""원시 \"wrapper\" 타입, <literal>java.lang.String</literal> 또는 ""<literal>java.util.Date</literal>일 수 있다. (만일 당신의 리거시 데이터베이""스 테이블이 composite 키들을 갖고 있다면, 당신은 이들 타입들을 가진 사용자 정""의 클래스를 사용할 수도 있다 - 나중에 composite 식별자들에 대한 절을 보라)"#. Tag: para#: persistent_classes.xml:60#, no-c-formatmsgid """The identifier property is strictly optional. You can leave them off and let ""Hibernate keep track of object identifiers internally. We do not recommend ""this, however."msgstr """identifier 프로퍼티는 엄격하게 옵션이다. 당신은 그것을 생략할 수도 있고, ""Hibernate로 하여금 내부적으로 객체 식별자들을 추적하도록 할 수 있다. 하지만 ""우리는 이것을 권장하지 않는다."#. Tag: para#: persistent_classes.xml:65#, no-c-formatmsgid """In fact, some functionality is available only to classes which declare an ""identifier property:"msgstr """사실, 어떤 기능은 identifier 프로퍼티를 선언하는 클래스들에 대해서만 이용 가""능하다:"#. Tag: para#: persistent_classes.xml:72#, fuzzy, no-c-formatmsgid """Transitive reattachment for detached objects (cascade update or cascade ""merge) - see"msgstr """detached 객체들에 대한 Transitive reattachment(cascade update 또는 cascade ""merge) - <xref linkend=\"objectstate-transitive\"/>"#. Tag: literal#: persistent_classes.xml:79#, no-c-formatmsgid "Session.saveOrUpdate()"msgstr "Session.saveOrUpdate()"#. Tag: literal#: persistent_classes.xml:84#, no-c-formatmsgid "Session.merge()"msgstr "Session.merge()"#. Tag: para#: persistent_classes.xml:89#, no-c-formatmsgid """We recommend you declare consistently-named identifier properties on ""persistent classes. We further recommend that you use a nullable (ie. non-""primitive) type."msgstr """우리는 당신이 영속 클래스들에 대해 일관되게 명명된 identifier 프로퍼티들을 선""언할 것을 권장한다. 게다가 우리는 당신이 nullable 타입(예를 들어 non-""primitive)을 사용할 것을 권장한다."#. Tag: title#: persistent_classes.xml:96#, no-c-formatmsgid "Prefer non-final classes (optional)"msgstr "final이 아닌 클래스들을 선호하라(옵션)"#. Tag: para#: persistent_classes.xml:97#, no-c-formatmsgid """A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon ""the persistent class being either non-final, or the implementation of an ""interface that declares all public methods."msgstr """Hibernate의 중심 특징인, 프락시(<emphasis>proxies</emphasis>)들은 final이 아""닌 영속 클래스들 또는 모두 public 메소드들로 선언된 인터페이스의 구현인 영속 ""클래스들에 의존한다."#. Tag: para#: persistent_classes.xml:102#, no-c-formatmsgid """You can persist <literal>final</literal> classes that do not implement an ""interface with Hibernate, but you won't be able to use proxies for lazy ""association fetching - which will limit your options for performance tuning."msgstr """당신은 Hibernate로 인터페이스를 구현하지 않은 <literal>final</literal> 클래스"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -