📄 basic_mapping.pot
字号:
msgstr ""#: basic_mapping.xml:1264(para) msgid "<literal>formula</literal> (optional) an arbitrary SQL expression that is executed when a type has to be evaluated. Allows content-based discrimination."msgstr ""#: basic_mapping.xml:1272(para) msgid "Actual values of the discriminator column are specified by the <literal>discriminator-value</literal> attribute of the <literal><class></literal> and <literal><subclass></literal> elements."msgstr ""#: basic_mapping.xml:1278(para) msgid "The <literal>force</literal> attribute is (only) useful if the table contains rows with \"extra\" discriminator values that are not mapped to a persistent class. This will not usually be the case."msgstr ""#: basic_mapping.xml:1284(para) msgid "Using the <literal>formula</literal> attribute you can declare an arbitrary SQL expression that will be used to evaluate the type of a row:"msgstr ""#: basic_mapping.xml:1296(title) msgid "version (optional)"msgstr ""#: basic_mapping.xml:1298(para) msgid "The <literal><version></literal> element is optional and indicates that the table contains versioned data. This is particularly useful if you plan to use <emphasis>long transactions</emphasis> (see below)."msgstr ""#: basic_mapping.xml:1326(para) msgid "<literal>column</literal> (optional - defaults to the property name): The name of the column holding the version number."msgstr ""#: basic_mapping.xml:1332(para) msgid "<literal>name</literal>: The name of a property of the persistent class."msgstr ""#: basic_mapping.xml:1337(para) msgid "<literal>type</literal> (optional - defaults to <literal>integer</literal>): The type of the version number."msgstr ""#: basic_mapping.xml:1349(para) msgid "<literal>unsaved-value</literal> (optional - defaults to <literal>undefined</literal>): A version property value that indicates that an instance is newly instantiated (unsaved), distinguishing it from detached instances that were saved or loaded in a previous session. (<literal>undefined</literal> specifies that the identifier property value should be used.)"msgstr ""#: basic_mapping.xml:1358(para) msgid "<literal>generated</literal> (optional - defaults to <literal>never</literal>): Specifies that this version property value is actually generated by the database. See the discussion of <xref linkend=\"mapping-generated\">generated properties</xref>."msgstr ""#: basic_mapping.xml:1365(para) msgid "<literal>insert</literal> (optional - defaults to <literal>true</literal>): Specifies whether the version column should be included in SQL insert statements. May be set to <literal>false</literal> if and only if the database column is defined with a default value of <literal>0</literal>."msgstr ""#: basic_mapping.xml:1375(para) msgid "Version numbers may be of Hibernate type <literal>long</literal>, <literal>integer</literal>, <literal>short</literal>, <literal>timestamp</literal> or <literal>calendar</literal>."msgstr ""#: basic_mapping.xml:1380(para) msgid "A version or timestamp property should never be null for a detached instance, so Hibernate will detect any instance with a null version or timestamp as transient, no matter what other <literal>unsaved-value</literal> strategies are specified. <emphasis>Declaring a nullable version or timestamp property is an easy way to avoid any problems with transitive reattachment in Hibernate, especially useful for people using assigned identifiers or composite keys!</emphasis>"msgstr ""#: basic_mapping.xml:1391(title) msgid "timestamp (optional)"msgstr ""#: basic_mapping.xml:1393(para) msgid "The optional <literal><timestamp></literal> element indicates that the table contains timestamped data. This is intended as an alternative to versioning. Timestamps are by nature a less safe implementation of optimistic locking. However, sometimes the application might use the timestamps in other ways."msgstr ""#: basic_mapping.xml:1420(para) msgid "<literal>column</literal> (optional - defaults to the property name): The name of a column holding the timestamp."msgstr ""#: basic_mapping.xml:1426(para) msgid "<literal>name</literal>: The name of a JavaBeans style property of Java type <literal>Date</literal> or <literal>Timestamp</literal> of the persistent class."msgstr ""#: basic_mapping.xml:1439(para) msgid "<literal>unsaved-value</literal> (optional - defaults to <literal>null</literal>): A version property value that indicates that an instance is newly instantiated (unsaved), distinguishing it from detached instances that were saved or loaded in a previous session. (<literal>undefined</literal> specifies that the identifier property value should be used.)"msgstr ""#: basic_mapping.xml:1448(para) msgid "<literal>source</literal> (optional - defaults to <literal>vm</literal>): From where should Hibernate retrieve the timestamp value? From the database, or from the current JVM? Database-based timestamps incur an overhead because Hibernate must hit the database in order to determine the \"next value\", but will be safer for use in clustered environments. Note also, that not all <literal>Dialect</literal>s are known to support retrieving of the database's current timestamp, while others might be unsafe for usage in locking due to lack of precision (Oracle 8 for example)."msgstr ""#: basic_mapping.xml:1460(para) msgid "<literal>generated</literal> (optional - defaults to <literal>never</literal>): Specifies that this timestamp property value is actually generated by the database. See the discussion of <xref linkend=\"mapping-generated\">generated properties</xref>."msgstr ""#: basic_mapping.xml:1469(para) msgid "Note that <literal><timestamp></literal> is equivalent to <literal><version type=\"timestamp\"></literal>. And <literal><timestamp source=\"db\"></literal> is equivalent to <literal><version type=\"dbtimestamp\"></literal>"msgstr ""#: basic_mapping.xml:1479(title) msgid "property"msgstr ""#: basic_mapping.xml:1481(para) msgid "The <literal><property></literal> element declares a persistent, JavaBean style property of the class."msgstr ""#: basic_mapping.xml:1525(para) msgid "<literal>name</literal>: the name of the property, with an initial lowercase letter."msgstr ""#: basic_mapping.xml:1531(para) msgid "<literal>column</literal> (optional - defaults to the property name): the name of the mapped database table column. This may also be specified by nested <literal><column></literal> element(s)."msgstr ""#: basic_mapping.xml:1538(para) msgid "<literal>type</literal> (optional): a name that indicates the Hibernate type."msgstr ""#: basic_mapping.xml:1543(para) msgid "<literal>update, insert</literal> (optional - defaults to <literal>true</literal>) : specifies that the mapped columns should be included in SQL <literal>UPDATE</literal> and/or <literal>INSERT</literal> statements. Setting both to <literal>false</literal> allows a pure \"derived\" property whose value is initialized from some other property that maps to the same colum(s) or by a trigger or other application."msgstr ""#: basic_mapping.xml:1552(para) msgid "<literal>formula</literal> (optional): an SQL expression that defines the value for a <emphasis>computed</emphasis> property. Computed properties do not have a column mapping of their own."msgstr ""#: basic_mapping.xml:1565(para) msgid "<literal>lazy</literal> (optional - defaults to <literal>false</literal>): Specifies that this property should be fetched lazily when the instance variable is first accessed (requires build-time bytecode instrumentation)."msgstr ""#: basic_mapping.xml:1572(para) msgid "<literal>unique</literal> (optional): Enable the DDL generation of a unique constraint for the columns. Also, allow this to be the target of a <literal>property-ref</literal>."msgstr ""#: basic_mapping.xml:1579(para) msgid "<literal>not-null</literal> (optional): Enable the DDL generation of a nullability constraint for the columns."msgstr ""#: basic_mapping.xml:1585(para) msgid "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</literal>): Specifies that updates to this property do or do not require acquisition of the optimistic lock. In other words, determines if a version increment should occur when this property is dirty."msgstr ""#: basic_mapping.xml:1593(para) msgid "<literal>generated</literal> (optional - defaults to <literal>never</literal>): Specifies that this property value is actually generated by the database. See the discussion of <xref linkend=\"mapping-generated\">generated properties</xref>."msgstr ""#: basic_mapping.xml:1602(para) msgid "<emphasis>typename</emphasis> could be:"msgstr ""#: basic_mapping.xml:1608(para) msgid "The name of a Hibernate basic type (eg. <literal>integer, string, character, date, timestamp, float, binary, serializable, object, blob</literal>)."msgstr ""#: basic_mapping.xml:1614(para) msgid "The name of a Java class with a default basic type (eg. <literal>int, float, char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</literal>)."msgstr ""#: basic_mapping.xml:1620(para) msgid "The name of a serializable Java class."msgstr ""#: basic_mapping.xml:1625(para) msgid "The class name of a custom type (eg. <literal>com.illflow.type.MyCustomType</literal>)."msgstr ""#: basic_mapping.xml:1631(para) msgid "If you do not specify a type, Hibernate will use reflection upon the named property to take a guess at the correct Hibernate type. Hibernate will try to interpret the name of the return class of the property getter using rules 2, 3, 4 in that order. However, this is not always enough. In certain cases you will still need the <literal>type</literal> attribute. (For example, to distinguish between <literal>Hibernate.DATE</literal> and <literal>Hibernate.TIMESTAMP</literal>, or to specify a custom type.)"msgstr ""#: basic_mapping.xml:1641(para) msgid "The <literal>access</literal> attribute lets you control how Hibernate will access the property at runtime. By default, Hibernate will call the property get/set pair. If you specify <literal>access=\"field\"</literal>, Hibernate will bypass the get/set pair and access the field directly, using reflection. You may specify your own strategy for property access by naming a class that implements the interface <literal>org.hibernate.property.PropertyAccessor</literal>."msgstr ""#: basic_mapping.xml:1650(para) msgid "An especially powerful feature are derived properties. These properties are by definition read-only, the property value is computed at load time. You declare the computation as a SQL expression, this translates to a <literal>SELECT</literal> clause subquery in the SQL query that loads an instance:"msgstr ""#: basic_mapping.xml:1664(para) msgid "Note that you can reference the entities own table by not declaring an alias on a particular column (<literal>customerId</literal> in the given example). Also note that you can use the nested <literal><formula></literal> mapping element if you don't like to use the attribute."msgstr ""#: basic_mapping.xml:1674(title) msgid "many-to-one"msgstr ""#: basic_mapping.xml:1676(para) msgid "An ordinary association to another persistent class is declared using a <literal>many-to-one</literal> element. The relational model is a many-to-one association: a foreign key in one table is referencing the primary key column(s) of the target table."msgstr ""#: basic_mapping.xml:1729(para) basic_mapping.xml:1924(para) basic_mapping.xml:2139(para) msgid "<literal>name</literal>: The name of the property."msgstr ""#: basic_mapping.xml:1734(para) basic_mapping.xml:2703(para) msgid "<literal>column</literal> (optional): The name of the foreign key column. This may also be specified by nested <literal><column></literal> element(s)."msgstr ""#: basic_mapping.xml:1741(para) basic_mapping.xml:1929(para) msgid "<literal>class</literal> (optional - defaults to the property type determined by reflection): The name of the associated class."msgstr ""#: basic_mapping.xml:1747(para) msgid "<literal>cascade</literal> (optional): Specifies which operations should be cascaded from the parent object to the associated object."msgstr ""#: basic_mapping.xml:1753(para) basic_mapping.xml:1950(para) msgid "<literal>fetch</literal> (optional - defaults to <literal>select</literal>): Chooses between outer-join fetching or sequential select fetching."msgstr ""#: basic_mapping.xml:1759(para) msgid "<literal>update, insert</literal> (optional - defaults to <literal>true</literal>) specifies that the mapped columns should be included in SQL <literal>UPDATE</literal> and/or <literal>INSERT</literal> statements. Setting both to <literal>false</literal> allows a pure \"derived\" association whose value is initialized from some other property that maps to the same colum(s) or by a trigger or other application."msgstr ""#: basic_mapping.xml:1768(para) msgid "<literal>property-ref</literal>: (optional) The name of a property of the associated class that is joined to this foreign key. If not specified, the primary key of the associated class is used."msgstr ""#: basic_mapping.xml:1781(para)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -