Hibernate SVN: r19995 - in core/branches/Branch_3_5: parent and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-07-21 15:03:33 -0400 (Wed, 21 Jul 2010)
New Revision: 19995
Modified:
core/branches/Branch_3_5/core/src/main/java/org/hibernate/dialect/HSQLDialect.java
core/branches/Branch_3_5/parent/pom.xml
Log:
HHH-5381 - HSQLDB new dialect (Fred Toussi)
Modified: core/branches/Branch_3_5/core/src/main/java/org/hibernate/dialect/HSQLDialect.java
===================================================================
--- core/branches/Branch_3_5/core/src/main/java/org/hibernate/dialect/HSQLDialect.java 2010-07-21 17:31:09 UTC (rev 19994)
+++ core/branches/Branch_3_5/core/src/main/java/org/hibernate/dialect/HSQLDialect.java 2010-07-21 19:03:33 UTC (rev 19995)
@@ -1,10 +1,10 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
- * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * Copyright (c) 2010, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
- * distributed under license by Red Hat Middleware LLC.
+ * distributed under license by Red Hat Inc.
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
@@ -20,7 +20,6 @@
* Free Software Foundation, Inc.
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301 USA
- *
*/
package org.hibernate.dialect;
@@ -32,10 +31,11 @@
import org.hibernate.LockMode;
import org.hibernate.StaleObjectStateException;
import org.hibernate.JDBCException;
-import org.hibernate.dialect.function.AvgWithArgumentCastFunction;
import org.hibernate.engine.SessionImplementor;
import org.hibernate.persister.entity.Lockable;
import org.hibernate.cfg.Environment;
+import org.hibernate.dialect.function.AvgWithArgumentCastFunction;
+import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.dialect.function.NoArgSQLFunction;
import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.dialect.function.VarArgsSQLFunction;
@@ -43,29 +43,55 @@
import org.hibernate.exception.JDBCExceptionHelper;
import org.hibernate.exception.TemplatedViolatedConstraintNameExtracter;
import org.hibernate.exception.ViolatedConstraintNameExtracter;
+import org.hibernate.util.ReflectHelper;
+
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
- * An SQL dialect compatible with HSQLDB (Hypersonic SQL).
+ * An SQL dialect compatible with HSQLDB (HyperSQL).
* <p/>
* Note this version supports HSQLDB version 1.8 and higher, only.
+ * <p/>
+ * Enhancements to version 3.5.0 GA to provide basic support for both HSQLDB 1.8.x and 2.0
+ * Should work with Hibernate 3.2 and later
*
* @author Christoph Sturm
* @author Phillip Baird
+ * @author Fred Toussi
*/
public class HSQLDialect extends Dialect {
+
private static final Logger log = LoggerFactory.getLogger( HSQLDialect.class );
+ /**
+ * version is 18 for 1.8 or 20 for 2.0
+ */
+ private int hsqldbVersion = 18;
+
+
public HSQLDialect() {
super();
+
+ try {
+ Class props = ReflectHelper.classForName( "org.hsqldb.persist.HsqlDatabaseProperties" );
+ String versionString = (String) props.getDeclaredField( "THIS_VERSION" ).get( null );
+
+ hsqldbVersion = Integer.parseInt( versionString.substring( 0, 1 ) ) * 10;
+ hsqldbVersion += Integer.parseInt( versionString.substring( 2, 3 ) );
+ }
+ catch ( Throwable e ) {
+ // must be a very old version
+ }
+
registerColumnType( Types.BIGINT, "bigint" );
registerColumnType( Types.BINARY, "binary" );
registerColumnType( Types.BIT, "bit" );
- registerColumnType( Types.CHAR, "char(1)" );
+ registerColumnType( Types.CHAR, "char($l)" );
registerColumnType( Types.DATE, "date" );
- registerColumnType( Types.DECIMAL, "decimal" );
+
+ registerColumnType( Types.DECIMAL, "decimal($p,$s)" );
registerColumnType( Types.DOUBLE, "double" );
registerColumnType( Types.FLOAT, "float" );
registerColumnType( Types.INTEGER, "integer" );
@@ -77,12 +103,23 @@
registerColumnType( Types.TIMESTAMP, "timestamp" );
registerColumnType( Types.VARCHAR, "varchar($l)" );
registerColumnType( Types.VARBINARY, "varbinary($l)" );
- registerColumnType( Types.NUMERIC, "numeric" );
+
+ if ( hsqldbVersion < 20 ) {
+ registerColumnType( Types.NUMERIC, "numeric" );
+ }
+ else {
+ registerColumnType( Types.NUMERIC, "numeric($p,$s)" );
+ }
+
//HSQL has no Blob/Clob support .... but just put these here for now!
- registerColumnType( Types.BLOB, "longvarbinary" );
- registerColumnType( Types.CLOB, "longvarchar" );
- registerColumnType( Types.LONGVARBINARY, "longvarbinary" );
- registerColumnType( Types.LONGVARCHAR, "longvarchar" );
+ if ( hsqldbVersion < 20 ) {
+ registerColumnType( Types.BLOB, "longvarbinary" );
+ registerColumnType( Types.CLOB, "longvarchar" );
+ }
+ else {
+ registerColumnType( Types.BLOB, "blob" );
+ registerColumnType( Types.CLOB, "clob" );
+ }
registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );
@@ -99,13 +136,16 @@
registerFunction( "space", new StandardSQLFunction( "space", Hibernate.STRING ) );
registerFunction( "rawtohex", new StandardSQLFunction( "rawtohex" ) );
registerFunction( "hextoraw", new StandardSQLFunction( "hextoraw" ) );
-
+ registerFunction( "str", new SQLFunctionTemplate( Hibernate.STRING, "cast(?1 as varchar(24))" ) );
registerFunction( "user", new NoArgSQLFunction( "user", Hibernate.STRING ) );
registerFunction( "database", new NoArgSQLFunction( "database", Hibernate.STRING ) );
+ registerFunction( "sysdate", new NoArgSQLFunction( "sysdate", Hibernate.DATE, false ) );
registerFunction( "current_date", new NoArgSQLFunction( "current_date", Hibernate.DATE, false ) );
registerFunction( "curdate", new NoArgSQLFunction( "curdate", Hibernate.DATE ) );
- registerFunction( "current_timestamp", new NoArgSQLFunction( "current_timestamp", Hibernate.TIMESTAMP, false ) );
+ registerFunction(
+ "current_timestamp", new NoArgSQLFunction( "current_timestamp", Hibernate.TIMESTAMP, false )
+ );
registerFunction( "now", new NoArgSQLFunction( "now", Hibernate.TIMESTAMP ) );
registerFunction( "current_time", new NoArgSQLFunction( "current_time", Hibernate.TIME, false ) );
registerFunction( "curtime", new NoArgSQLFunction( "curtime", Hibernate.TIME ) );
@@ -116,7 +156,7 @@
registerFunction( "month", new StandardSQLFunction( "month", Hibernate.INTEGER ) );
registerFunction( "year", new StandardSQLFunction( "year", Hibernate.INTEGER ) );
registerFunction( "week", new StandardSQLFunction( "week", Hibernate.INTEGER ) );
- registerFunction( "quater", new StandardSQLFunction( "quater", Hibernate.INTEGER ) );
+ registerFunction( "quarter", new StandardSQLFunction( "quarter", Hibernate.INTEGER ) );
registerFunction( "hour", new StandardSQLFunction( "hour", Hibernate.INTEGER ) );
registerFunction( "minute", new StandardSQLFunction( "minute", Hibernate.INTEGER ) );
registerFunction( "second", new StandardSQLFunction( "second", Hibernate.INTEGER ) );
@@ -173,7 +213,7 @@
}
public String getIdentityInsertString() {
- return "null";
+ return hsqldbVersion < 20 ? "null" : "default";
}
public boolean supportsLockTimeouts() {
@@ -193,14 +233,25 @@
}
public String getLimitString(String sql, boolean hasOffset) {
- return new StringBuffer( sql.length() + 10 )
- .append( sql )
- .insert( sql.toLowerCase().indexOf( "select" ) + 6, hasOffset ? " limit ? ?" : " top ?" )
- .toString();
+ if ( hsqldbVersion < 20 ) {
+ return new StringBuffer( sql.length() + 10 )
+ .append( sql )
+ .insert(
+ sql.toLowerCase().indexOf( "select" ) + 6,
+ hasOffset ? " limit ? ?" : " top ?"
+ )
+ .toString();
+ }
+ else {
+ return new StringBuffer( sql.length() + 20 )
+ .append( sql )
+ .append( hasOffset ? " offset ? limit ?" : " limit ?" )
+ .toString();
+ }
}
public boolean bindLimitParametersFirst() {
- return true;
+ return hsqldbVersion < 20;
}
public boolean supportsIfExistsAfterTableName() {
@@ -208,7 +259,7 @@
}
public boolean supportsColumnCheck() {
- return false;
+ return hsqldbVersion >= 20;
}
public boolean supportsSequences() {
@@ -241,10 +292,10 @@
}
public ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter() {
- return EXTRACTER;
+ return hsqldbVersion < 20 ? EXTRACTER_18 : EXTRACTER_20;
}
- private static ViolatedConstraintNameExtracter EXTRACTER = new TemplatedViolatedConstraintNameExtracter() {
+ private static ViolatedConstraintNameExtracter EXTRACTER_18 = new TemplatedViolatedConstraintNameExtracter() {
/**
* Extract the name of the violated constraint from the given SQLException.
@@ -274,40 +325,260 @@
}
else if ( errorCode == -177 ) {
constraintName = extractUsingTemplate(
- "Integrity constraint violation - no parent ", " table:", sqle.getMessage()
+ "Integrity constraint violation - no parent ", " table:",
+ sqle.getMessage()
);
}
-
return constraintName;
}
};
/**
- * HSQL does not really support temp tables; just take advantage of the
- * fact that it is a single user db...
+ * HSQLDB 2.0 messages have changed
+ * messages may be localized - therefore use the common, non-locale element " table: "
*/
+ private static ViolatedConstraintNameExtracter EXTRACTER_20 = new TemplatedViolatedConstraintNameExtracter() {
+
+ public String extractConstraintName(SQLException sqle) {
+ String constraintName = null;
+
+ int errorCode = JDBCExceptionHelper.extractErrorCode( sqle );
+
+ if ( errorCode == -8 ) {
+ constraintName = extractUsingTemplate(
+ "; ", " table: ", sqle.getMessage()
+ );
+ }
+ else if ( errorCode == -9 ) {
+ constraintName = extractUsingTemplate(
+ "; ", " table: ", sqle.getMessage()
+ );
+ }
+ else if ( errorCode == -104 ) {
+ constraintName = extractUsingTemplate(
+ "; ", " table: ", sqle.getMessage()
+ );
+ }
+ else if ( errorCode == -177 ) {
+ constraintName = extractUsingTemplate(
+ "; ", " table: ", sqle.getMessage()
+ );
+ }
+ return constraintName;
+ }
+ };
+
+ public String getSelectClauseNullString(int sqlType) {
+ String literal;
+ switch ( sqlType ) {
+ case Types.VARCHAR:
+ case Types.CHAR:
+ literal = "cast(null as varchar(100))";
+ break;
+ case Types.DATE:
+ literal = "cast(null as date)";
+ break;
+ case Types.TIMESTAMP:
+ literal = "cast(null as timestamp)";
+ break;
+ case Types.TIME:
+ literal = "cast(null as time)";
+ break;
+ default:
+ literal = "cast(null as int)";
+ }
+ return literal;
+ }
+
+
+ // temporary table support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ // Hibernate uses this information for temporary tables that it uses for its own operations
+ // therefore the appropriate strategy is taken with different versions of HSQLDB
+
+ // All versions of HSQLDB support GLOBAL TEMPORARY tables where the table
+ // definition is shared by all users but data is private to the session
+ // HSQLDB 2.0 also supports session-based LOCAL TEMPORARY tables where
+ // the definition and data is private to the session and table declaration
+ // can happen in the middle of a transaction
+
+ /**
+ * Does this dialect support temporary tables?
+ *
+ * @return True if temp tables are supported; false otherwise.
+ */
public boolean supportsTemporaryTables() {
return true;
}
+ /**
+ * With HSQLDB 2.0, the table name is qualified with MODULE to assist the drop
+ * statement (in-case there is a global name beginning with HT_)
+ *
+ * @param baseTableName The table name from which to base the temp table name.
+ *
+ * @return The generated temp table name.
+ */
+ public String generateTemporaryTableName(String baseTableName) {
+ if ( hsqldbVersion < 20 ) {
+ return "HT_" + baseTableName;
+ }
+ else {
+ return "MODULE.HT_" + baseTableName;
+ }
+ }
+
+ /**
+ * Command used to create a temporary table.
+ *
+ * @return The command used to create a temporary table.
+ */
+ public String getCreateTemporaryTableString() {
+ if ( hsqldbVersion < 20 ) {
+ return "create global temporary table";
+ }
+ else {
+ return "declare local temporary table";
+ }
+ }
+
+ /**
+ * No fragment is needed if data is not needed beyond commit, otherwise
+ * should add "on commit preserve rows"
+ *
+ * @return Any required postfix.
+ */
+ public String getCreateTemporaryTablePostfix() {
+ return "";
+ }
+
+ /**
+ * Command used to drop a temporary table.
+ *
+ * @return The command used to drop a temporary table.
+ */
+ public String getDropTemporaryTableString() {
+ return "drop table";
+ }
+
+ /**
+ * Different behaviour for GLOBAL TEMPORARY (1.8) and LOCAL TEMPORARY (2.0)
+ * <p/>
+ * Possible return values and their meanings:<ul>
+ * <li>{@link Boolean#TRUE} - Unequivocally, perform the temporary table DDL
+ * in isolation.</li>
+ * <li>{@link Boolean#FALSE} - Unequivocally, do <b>not</b> perform the
+ * temporary table DDL in isolation.</li>
+ * <li><i>null</i> - defer to the JDBC driver response in regards to
+ * {@link java.sql.DatabaseMetaData#dataDefinitionCausesTransactionCommit()}</li>
+ * </ul>
+ *
+ * @return see the result matrix above.
+ */
+ public Boolean performTemporaryTableDDLInIsolation() {
+ if ( hsqldbVersion < 20 ) {
+ return Boolean.TRUE;
+ }
+ else {
+ return Boolean.FALSE;
+ }
+ }
+
+ /**
+ * Do we need to drop the temporary table after use?
+ *
+ * todo - clarify usage by Hibernate
+ * Version 1.8 GLOBAL TEMPORARY table definitions persist beyond the end
+ * of the session (data is cleared). If there are not too many such tables,
+ * perhaps we can avoid dropping them and reuse the table next time?
+ *
+ * @return True if the table should be dropped.
+ */
+ public boolean dropTemporaryTableAfterUse() {
+ return true;
+ }
+
+ // current timestamp support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ /**
+ * HSQLDB 1.8.x requires CALL CURRENT_TIMESTAMP but this should not
+ * be treated as a callable statement. It is equivalent to
+ * "select current_timestamp from dual" in some databases.
+ * HSQLDB 2.0 also supports VALUES CURRENT_TIMESTAMP
+ *
+ * @return True if the current timestamp can be retrieved; false otherwise.
+ */
public boolean supportsCurrentTimestampSelection() {
+ return true;
+ }
+
+ /**
+ * Should the value returned by {@link #getCurrentTimestampSelectString}
+ * be treated as callable. Typically this indicates that JDBC escape
+ * syntax is being used...
+ *
+ * @return True if the {@link #getCurrentTimestampSelectString} return
+ * is callable; false otherwise.
+ */
+ public boolean isCurrentTimestampSelectStringCallable() {
return false;
}
+ /**
+ * Retrieve the command used to retrieve the current timestamp from the
+ * database.
+ *
+ * @return The command.
+ */
+ public String getCurrentTimestampSelectString() {
+ return "call current_timestamp";
+ }
+
+ /**
+ * The name of the database-specific SQL function for retrieving the
+ * current timestamp.
+ *
+ * @return The function name.
+ */
+ public String getCurrentTimestampSQLFunctionName() {
+ // the standard SQL function name is current_timestamp...
+ return "current_timestamp";
+ }
+
+ /**
+ * For HSQLDB 2.0, this is a copy of the base class implementation.
+ * For HSQLDB 1.8, only READ_UNCOMMITTED is supported.
+ *
+ * @param lockable The persister for the entity to be locked.
+ * @param lockMode The type of lock to be acquired.
+ *
+ * @return The appropriate locking strategy.
+ *
+ * @since 3.2
+ */
public LockingStrategy getLockingStrategy(Lockable lockable, LockMode lockMode) {
- // HSQLDB only supports READ_UNCOMMITTED transaction isolation
- if ( lockMode==LockMode.PESSIMISTIC_FORCE_INCREMENT) {
- return new PessimisticForceIncrementLockingStrategy( lockable, lockMode);
+ if ( lockMode == LockMode.PESSIMISTIC_FORCE_INCREMENT ) {
+ return new PessimisticForceIncrementLockingStrategy( lockable, lockMode );
}
- else if ( lockMode==LockMode.OPTIMISTIC) {
- return new OptimisticLockingStrategy( lockable, lockMode);
+ else if ( lockMode == LockMode.PESSIMISTIC_WRITE ) {
+ return new PessimisticWriteSelectLockingStrategy( lockable, lockMode );
}
- else if ( lockMode==LockMode.OPTIMISTIC_FORCE_INCREMENT) {
- return new OptimisticForceIncrementLockingStrategy( lockable, lockMode);
+ else if ( lockMode == LockMode.PESSIMISTIC_READ ) {
+ return new PessimisticReadSelectLockingStrategy( lockable, lockMode );
}
- return new ReadUncommittedLockingStrategy( lockable, lockMode );
-
+ else if ( lockMode == LockMode.OPTIMISTIC ) {
+ return new OptimisticLockingStrategy( lockable, lockMode );
+ }
+ else if ( lockMode == LockMode.OPTIMISTIC_FORCE_INCREMENT ) {
+ return new OptimisticForceIncrementLockingStrategy( lockable, lockMode );
+ }
+
+ if ( hsqldbVersion < 20 ) {
+ return new ReadUncommittedLockingStrategy( lockable, lockMode );
+ }
+ else {
+ return new SelectLockingStrategy( lockable, lockMode );
+ }
}
public static class ReadUncommittedLockingStrategy extends SelectLockingStrategy {
@@ -324,6 +595,9 @@
}
}
+ public boolean supportsCommentOn() {
+ return true;
+ }
// Overridden informational metadata ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -331,6 +605,46 @@
return false;
}
+ /**
+ * todo - needs usage clarification
+ *
+ * If the SELECT statement is always part of a UNION, then the type of
+ * parameter is resolved by v. 2.0, but not v. 1.8 (assuming the other
+ * SELECT in the UNION has a column reference in the same position and
+ * can be type-resolved).
+ *
+ * On the other hand if the SELECT statement is isolated, all versions of
+ * HSQLDB require casting for "select ? from .." to work.
+ *
+ * @return True if select clause parameter must be cast()ed
+ *
+ * @since 3.2
+ */
+ public boolean requiresCastingOfParametersInSelectClause() {
+ return true;
+ }
+
+ /**
+ * For the underlying database, is READ_COMMITTED isolation implemented by
+ * forcing readers to wait for write locks to be released?
+ *
+ * @return True if writers block readers to achieve READ_COMMITTED; false otherwise.
+ */
+ public boolean doesReadCommittedCauseWritersToBlockReaders() {
+ return hsqldbVersion >= 20;
+ }
+
+ /**
+ * For the underlying database, is REPEATABLE_READ isolation implemented by
+ * forcing writers to wait for read locks to be released?
+ *
+ * @return True if readers block writers to achieve REPEATABLE_READ; false otherwise.
+ */
+ public boolean doesRepeatableReadCauseReadersToBlockWriters() {
+ return hsqldbVersion >= 20;
+ }
+
+
public boolean supportsLobValueChangePropogation() {
return false;
}
Modified: core/branches/Branch_3_5/parent/pom.xml
===================================================================
--- core/branches/Branch_3_5/parent/pom.xml 2010-07-21 17:31:09 UTC (rev 19994)
+++ core/branches/Branch_3_5/parent/pom.xml 2010-07-21 19:03:33 UTC (rev 19995)
@@ -539,6 +539,11 @@
<artifactId>hibernate-validator</artifactId>
<version>4.0.2.GA</version>
</dependency>
+ <dependency>
+ <groupId>org.hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>1.8.0.10</version>
+ </dependency>
</dependencies>
</dependencyManagement>
@@ -567,9 +572,8 @@
</activation>
<dependencies>
<dependency>
- <groupId>hsqldb</groupId>
+ <groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
- <version>1.8.0.2</version>
<scope>test</scope>
</dependency>
</dependencies>
14 years, 4 months
Hibernate SVN: r19994 - core/trunk/core/src/main/java/org/hibernate/id/enhanced.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-07-21 13:31:09 -0400 (Wed, 21 Jul 2010)
New Revision: 19994
Modified:
core/trunk/core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java
Log:
HHH-3001 - The NoopOptimizer is not thread safe
Modified: core/trunk/core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java 2010-07-21 17:29:50 UTC (rev 19993)
+++ core/trunk/core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java 2010-07-21 17:31:09 UTC (rev 19994)
@@ -187,15 +187,14 @@
* {@inheritDoc}
*/
public Serializable generate(AccessCallback callback) {
- if ( lastSourceValue == null ) {
- do {
- lastSourceValue = callback.getNextValue();
- } while ( lastSourceValue.lt( 1 ) );
+ // IMPL NOTE : it is incredibly important that the method-local variable be used here to
+ // avoid concurrency issues.
+ IntegralDataTypeHolder value = null;
+ while ( value == null || value.lt( 1 ) ) {
+ value = callback.getNextValue();
}
- else {
- lastSourceValue = callback.getNextValue();
- }
- return lastSourceValue.makeValue();
+ lastSourceValue = value;
+ return value.makeValue();
}
/**
14 years, 4 months
Hibernate SVN: r19993 - core/branches/Branch_3_5/core/src/main/java/org/hibernate/id/enhanced.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-07-21 13:29:50 -0400 (Wed, 21 Jul 2010)
New Revision: 19993
Modified:
core/branches/Branch_3_5/core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java
Log:
HHH-3001 - The NoopOptimizer is not thread safe
Modified: core/branches/Branch_3_5/core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java
===================================================================
--- core/branches/Branch_3_5/core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java 2010-07-21 15:55:41 UTC (rev 19992)
+++ core/branches/Branch_3_5/core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java 2010-07-21 17:29:50 UTC (rev 19993)
@@ -186,15 +186,14 @@
* {@inheritDoc}
*/
public Serializable generate(AccessCallback callback) {
- if ( lastSourceValue == null ) {
- do {
- lastSourceValue = callback.getNextValue();
- } while ( lastSourceValue.lt( 1 ) );
+ // IMPL NOTE : it is incredibly important that the method-local variable be used here to
+ // avoid concurrency issues.
+ IntegralDataTypeHolder value = null;
+ while ( value == null || value.lt( 1 ) ) {
+ value = callback.getNextValue();
}
- else {
- lastSourceValue = callback.getNextValue();
- }
- return lastSourceValue.makeValue();
+ lastSourceValue = value;
+ return value.makeValue();
}
/**
14 years, 4 months
Hibernate SVN: r19992 - core/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2010-07-21 11:55:41 -0400 (Wed, 21 Jul 2010)
New Revision: 19992
Added:
core/tags/before_annotations_definitely_swallowed_in_core_module/
Log:
right before annotations module is swalloed in core module
Copied: core/tags/before_annotations_definitely_swallowed_in_core_module (from rev 19991, core/trunk)
14 years, 4 months
Hibernate SVN: r19991 - core/trunk/documentation/manual/src/main/docbook/en-US/content.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-07-21 02:00:52 -0400 (Wed, 21 Jul 2010)
New Revision: 19991
Modified:
core/trunk/documentation/manual/src/main/docbook/en-US/content/portability.xml
Log:
HHH-5397 - Odds and ends from documentation merge : fixed <programlisting/> rendering issue
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/portability.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/portability.xml 2010-07-21 05:45:11 UTC (rev 19990)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/portability.xml 2010-07-21 06:00:52 UTC (rev 19991)
@@ -78,7 +78,10 @@
Starting with version 3.3, Hibernate has a fare more powerful way to automatically determine
which dialect to should be used by relying on a series of delegates which implement the
<interfacename>org.hibernate.dialect.resolver.DialectResolver</interfacename> which defines only a
- single method:<programlisting role="JAVA"><![CDATA[public Dialect resolveDialect(DatabaseMetaData metaData) throws JDBCConnectionException]]></programlisting>.
+ single method:
+ </para>
+ <programlisting role="JAVA"><![CDATA[public Dialect resolveDialect(DatabaseMetaData metaData) throws JDBCConnectionException]]></programlisting>
+ <para>
The basic contract here is that if the resolver 'understands' the given database metadata then
it returns the corresponding Dialect; if not it returns null and the process continues to the next
resolver. The signature also identifies <exceptionname>org.hibernate.exception.JDBCConnectionException</exceptionname>
14 years, 4 months
Hibernate SVN: r19990 - search/branches/v3_1_1_GA_CP.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2010-07-21 01:45:11 -0400 (Wed, 21 Jul 2010)
New Revision: 19990
Modified:
search/branches/v3_1_1_GA_CP/pom.xml
Log:
JBPAPP-4693 use jboss-transaction-api to replace jta api in hibernate components
Modified: search/branches/v3_1_1_GA_CP/pom.xml
===================================================================
--- search/branches/v3_1_1_GA_CP/pom.xml 2010-07-21 05:44:34 UTC (rev 19989)
+++ search/branches/v3_1_1_GA_CP/pom.xml 2010-07-21 05:45:11 UTC (rev 19990)
@@ -75,9 +75,9 @@
<version>${luceneVersion}</version>
</dependency>
<dependency>
- <groupId>javax.transaction</groupId>
- <artifactId>jta</artifactId>
- <version>1.1</version>
+ <groupId>org.jboss.javaee</groupId>
+ <artifactId>jboss-transaction-api</artifactId>
+ <version>1.0.1.GA</version>
</dependency>
<!-- =============================== -->
14 years, 4 months
Hibernate SVN: r19989 - in core/trunk/documentation/manual/src/main/docbook: en-US/content and 6 other directories.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-07-21 01:44:34 -0400 (Wed, 21 Jul 2010)
New Revision: 19989
Modified:
core/trunk/documentation/manual/src/main/docbook/de-DE/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/en-US/content/session_api.xml
core/trunk/documentation/manual/src/main/docbook/es-ES/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/pot/content/session_api.pot
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/session_api.po
Log:
HHH-5397 - Odds and ends from documentation merge
Modified: core/trunk/documentation/manual/src/main/docbook/de-DE/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/de-DE/content/session_api.po 2010-07-21 05:39:40 UTC (rev 19988)
+++ core/trunk/documentation/manual/src/main/docbook/de-DE/content/session_api.po 2010-07-21 05:44:34 UTC (rev 19989)
@@ -275,7 +275,7 @@
msgstr ""
"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-20 21:02+0000\n"
+"POT-Creation-Date: 2010-07-21 05:43+0000\n"
"PO-Revision-Date: 2007-02-26 10:27+1000\n"
"Last-Translator: \n"
"Language-Team: <de(a)li.org>\n"
@@ -1686,43 +1686,14 @@
"innerhalb derselben Session erfordern würde. Daher bietet Hibernate mit der "
"Verwendung abgesetzter Instanzen eine alternative Vorgehensweise."
-#. Tag: para
-#: session_api.xml:481
-#, fuzzy, no-c-format
-msgid ""
-"Hibernate does not offer its own API for direct execution of "
-"<literal>UPDATE</literal> or <literal>DELETE</literal> statements. Hibernate "
-"is a <emphasis>state management</emphasis> service, you do not have to think "
-"in <emphasis>statements</emphasis> to use it. JDBC is a perfect API for "
-"executing SQL statements, you can get a JDBC <literal>Connection</literal> "
-"at any time by calling <literal>session.connection()</literal>. Furthermore, "
-"the notion of mass operations conflicts with object/relational mapping for "
-"online transaction processing-oriented applications. Future versions of "
-"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
-msgstr ""
-"Bitte beachten Sie, dass Hibernate keine eigene API für die direkte "
-"Ausführung von <literal>UPDATE</literal> oder <literal>DELETE</literal>-"
-"Anweisungen besitzt. Bei Hibernate handelt es sich um einen Dienst zur "
-"<emphasis>Statusverwaltung</emphasis>, das heißt, Sie müssen bei seiner "
-"Benutzung nicht in <emphasis>Anweisungen</emphasis> denken. JDBC ist eine "
-"perfekte API für die Ausführung von SQL-Anweisungen, sie können jederzeit "
-"eine JDBC <literal>Connection</literal> durch Aufruf von <literal>session."
-"connection()</literal> erhalten. Desweiteren steht die Idee von "
-"Massenvorgängen in Konflikt zu objekt/relationalem Mapping für Anwendungen, "
-"die an der Bearbeitung von online Transaktionen orientiert sind. Zukünftige "
-"Versionen von Hibernate werden möglicherweise spezielle Funktionen für "
-"Massenvorgänge bieten. Unter <xref linkend=\"batch\"/> finden Sie einige "
-"mögliche Tricks zur Batch-Bearbeitung."
-
#. Tag: title
-#: session_api.xml:497
+#: session_api.xml:483
#, no-c-format
msgid "Modifying detached objects"
msgstr "Änderungen an abgesetzten Objekten"
#. Tag: para
-#: session_api.xml:499
+#: session_api.xml:485
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1739,7 +1710,7 @@
"um die Isolation der \"langen\" Arbeitseinheit zu gewährleisten."
#. Tag: para
-#: session_api.xml:505
+#: session_api.xml:491
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
@@ -1751,7 +1722,7 @@
"Möglichkeit der Wiederanbindung abgesetzter Instanzen bietet:"
#. Tag: programlisting
-#: session_api.xml:509
+#: session_api.xml:495
#, fuzzy, no-c-format
msgid ""
"// in the first session\n"
@@ -1779,7 +1750,7 @@
"secondSession.update(mate); // update mate"
#. Tag: para
-#: session_api.xml:511
+#: session_api.xml:497
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
@@ -1792,7 +1763,7 @@
"gemeldet worden."
#. Tag: para
-#: session_api.xml:516
+#: session_api.xml:502
#, fuzzy, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
@@ -1813,7 +1784,7 @@
"als erstes ausgeführte Vorgang ist."
#. Tag: para
-#: session_api.xml:524
+#: session_api.xml:510
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
@@ -1830,7 +1801,7 @@
"<xref linkend=\"objectstate-transitive\"/>."
#. Tag: para
-#: session_api.xml:530
+#: session_api.xml:516
#, fuzzy, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
@@ -1842,7 +1813,7 @@
"darf die abgesetzte Instanz in diesem Fall nicht verändert worden sein!"
#. Tag: programlisting
-#: session_api.xml:534
+#: session_api.xml:520
#, fuzzy, no-c-format
msgid ""
"//just reassociate:\n"
@@ -1860,7 +1831,7 @@
"sess.lock(pk, LockMode.UPGRADE);"
#. Tag: para
-#: session_api.xml:536
+#: session_api.xml:522
#, fuzzy, no-c-format
msgid ""
"Note that <literal>lock()</literal> can be used with various "
@@ -1875,7 +1846,7 @@
"<literal>lock()</literal>."
#. Tag: para
-#: session_api.xml:541
+#: session_api.xml:527
#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
@@ -1885,13 +1856,13 @@
"\"transactions-optimistic\"/> erläutert."
#. Tag: title
-#: session_api.xml:546
+#: session_api.xml:532
#, no-c-format
msgid "Automatic state detection"
msgstr "Automatische Statuserkennung"
#. Tag: para
-#: session_api.xml:548
+#: session_api.xml:534
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1906,7 +1877,7 @@
"<literal>saveOrUpdate()</literal>-Methode implementiert diese Funktionalität."
#. Tag: programlisting
-#: session_api.xml:554
+#: session_api.xml:540
#, fuzzy, no-c-format
msgid ""
"// in the first session\n"
@@ -1936,7 +1907,7 @@
"id)"
#. Tag: para
-#: session_api.xml:556
+#: session_api.xml:542
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1954,7 +1925,7 @@
"ganze Anwendungen ohne irgendeine dieser Methoden aus."
#. Tag: para
-#: session_api.xml:563
+#: session_api.xml:549
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
@@ -1964,31 +1935,31 @@
"</literal> in folgenden Situationen zum Einsatz:"
#. Tag: para
-#: session_api.xml:569
+#: session_api.xml:555
#, no-c-format
msgid "the application loads an object in the first session"
msgstr "die Anwendung lädt ein Objekt in der ersten Session"
#. Tag: para
-#: session_api.xml:573
+#: session_api.xml:559
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr "das Objekt wird an den UI-\"Tier\" weitergegeben"
#. Tag: para
-#: session_api.xml:577
+#: session_api.xml:563
#, no-c-format
msgid "some modifications are made to the object"
msgstr "am Objekt werden einige Modifikationen vorgenommen"
#. Tag: para
-#: session_api.xml:581
+#: session_api.xml:567
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "das Objekt wird zurück an den \"Business-Logic-Tier\" geleitet"
#. Tag: para
-#: session_api.xml:585
+#: session_api.xml:571
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
@@ -1998,20 +1969,20 @@
"<literal>update()</literal> in einer zweiten Session"
#. Tag: para
-#: session_api.xml:590
+#: session_api.xml:576
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr "<literal>saveOrUpdate()</literal> tut folgendes:"
#. Tag: para
-#: session_api.xml:594
+#: session_api.xml:580
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr ""
"falls das Objekt in dieser Session bereits persistent ist, geschieht nichts"
#. Tag: para
-#: session_api.xml:599
+#: session_api.xml:585
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
@@ -2021,7 +1992,7 @@
"besitzt, wird eine Ausnahme gemeldet"
#. Tag: para
-#: session_api.xml:604
+#: session_api.xml:590
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
@@ -2029,7 +2000,7 @@
"<literal>save()</literal>"
#. Tag: para
-#: session_api.xml:609
+#: session_api.xml:595
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
@@ -2040,7 +2011,7 @@
"literal>"
#. Tag: para
-#: session_api.xml:614
+#: session_api.xml:600
#, fuzzy, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
@@ -2054,20 +2025,20 @@
"speichern Sie mittels <literal>save()</literal>"
#. Tag: para
-#: session_api.xml:622
+#: session_api.xml:608
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr ""
"andernfalls aktualisieren Sie das Objekt mittels <literal>update()</literal>"
#. Tag: para
-#: session_api.xml:626
+#: session_api.xml:612
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr "und <literal>merge()</literal> ist völlig anders:"
#. Tag: para
-#: session_api.xml:630
+#: session_api.xml:616
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -2079,7 +2050,7 @@
"vorgegebenen Objekts in die persistente Instanz"
#. Tag: para
-#: session_api.xml:636
+#: session_api.xml:622
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
@@ -2090,13 +2061,13 @@
"erstellen Sie eine neue persistente Instanz"
#. Tag: para
-#: session_api.xml:642
+#: session_api.xml:628
#, no-c-format
msgid "the persistent instance is returned"
msgstr "die persistente Instanz wird zurückgeschickt"
#. Tag: para
-#: session_api.xml:646
+#: session_api.xml:632
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
@@ -2106,13 +2077,13 @@
"abgesetzt"
#. Tag: title
-#: session_api.xml:653
+#: session_api.xml:639
#, no-c-format
msgid "Deleting persistent objects"
msgstr "Das Löschen persistenter Objekte"
#. Tag: para
-#: session_api.xml:655
+#: session_api.xml:641
#, fuzzy, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
@@ -2126,13 +2097,13 @@
"literal> wird eine persistente Instanz gewissermaßen transient gemacht."
#. Tag: programlisting
-#: session_api.xml:660
+#: session_api.xml:646
#, fuzzy, no-c-format
msgid "sess.delete(cat);"
msgstr "sess.delete(cat);"
#. Tag: para
-#: session_api.xml:662
+#: session_api.xml:648
#, fuzzy, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
@@ -2148,13 +2119,13 @@
"vergessen, dies mit den untergeordneten Objekten ebenfalls zu tun."
#. Tag: title
-#: session_api.xml:670
+#: session_api.xml:656
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "Objektreplikation zwischen zwei verschiedenen Datenspeichern"
#. Tag: para
-#: session_api.xml:672
+#: session_api.xml:658
#, fuzzy, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
@@ -2166,7 +2137,7 @@
"können, ohne Bezeichnerwerte erneut generieren zu müssen."
#. Tag: programlisting
-#: session_api.xml:676
+#: session_api.xml:662
#, fuzzy, no-c-format
msgid ""
"//retrieve a cat from one database\n"
@@ -2198,7 +2169,7 @@
"session2.close();"
#. Tag: para
-#: session_api.xml:678
+#: session_api.xml:664
#, fuzzy, no-c-format
msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
@@ -2208,7 +2179,7 @@
"literal> mit Konflikten mit bestehenden Reihen in der Datenbank umgeht."
#. Tag: para
-#: session_api.xml:684
+#: session_api.xml:670
#, fuzzy, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
@@ -2218,7 +2189,7 @@
"bereits eine Datenbankreihe mit demselben Bezeichner existiert"
#. Tag: para
-#: session_api.xml:689
+#: session_api.xml:675
#, fuzzy, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
@@ -2228,7 +2199,7 @@
"Datenbankreihe mit demselben Bezeichner"
#. Tag: para
-#: session_api.xml:694
+#: session_api.xml:680
#, fuzzy, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
@@ -2238,7 +2209,7 @@
"eine Datenbankreihe mit demselben Bezeichner existiert"
#. Tag: para
-#: session_api.xml:700
+#: session_api.xml:686
#, fuzzy, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
@@ -2250,7 +2221,7 @@
"oder ignoriert andernfalls das Objekt"
#. Tag: para
-#: session_api.xml:706
+#: session_api.xml:692
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -2264,13 +2235,13 @@
"von während nicht-ACID Transaktionen gemachten Änderungen und mehr."
#. Tag: title
-#: session_api.xml:713
+#: session_api.xml:699
#, no-c-format
msgid "Flushing the Session"
msgstr "Das Räumen der Session"
#. Tag: para
-#: session_api.xml:715
+#: session_api.xml:701
#, fuzzy, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
@@ -2285,31 +2256,31 @@
"emphasis>"
#. Tag: para
-#: session_api.xml:723
+#: session_api.xml:709
#, no-c-format
msgid "before some query executions"
msgstr "vor dem Ausführen einiger Anfragen"
#. Tag: para
-#: session_api.xml:727
+#: session_api.xml:713
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr "von <literal>org.hibernate.Transaction.commit()</literal>"
#. Tag: para
-#: session_api.xml:732
+#: session_api.xml:718
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "von <literal>Session.flush()</literal>"
#. Tag: para
-#: session_api.xml:736
+#: session_api.xml:722
#, fuzzy, no-c-format
msgid "The SQL statements are issued in the following order:"
msgstr "Die SQL-Anweisungen werden in der folgenden Reihenfolge herausgegeben"
#. Tag: para
-#: session_api.xml:740
+#: session_api.xml:726
#, fuzzy, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
@@ -2319,19 +2290,19 @@
"wurden mittels <literal>Session.save()</literal> gespeichert"
#. Tag: para
-#: session_api.xml:745
+#: session_api.xml:731
#, no-c-format
msgid "all entity updates"
msgstr "alle Entity-Aktualisierungen"
#. Tag: para
-#: session_api.xml:749
+#: session_api.xml:735
#, no-c-format
msgid "all collection deletions"
msgstr "alle Collection-Löschungen"
#. Tag: para
-#: session_api.xml:753
+#: session_api.xml:739
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr ""
@@ -2339,13 +2310,13 @@
"Collection"
#. Tag: para
-#: session_api.xml:757
+#: session_api.xml:743
#, no-c-format
msgid "all collection insertions"
msgstr "alle Einfügungen in Collections"
#. Tag: para
-#: session_api.xml:761
+#: session_api.xml:747
#, fuzzy, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
@@ -2356,7 +2327,7 @@
"literal>"
#. Tag: para
-#: session_api.xml:766
+#: session_api.xml:752
#, fuzzy, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
@@ -2366,7 +2337,7 @@
"Generierung verwenden, beim Speichern eingefügt werden)."
#. Tag: para
-#: session_api.xml:769
+#: session_api.xml:755
#, fuzzy, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
@@ -2383,7 +2354,7 @@
"liefert."
#. Tag: para
-#: session_api.xml:776
+#: session_api.xml:762
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -2407,7 +2378,7 @@
"\"transactions-optimistic-longsession\"/>)."
#. Tag: programlisting
-#: session_api.xml:786
+#: session_api.xml:772
#, fuzzy, no-c-format
msgid ""
"sess = sf.openSession();\n"
@@ -2441,7 +2412,7 @@
"sess.close();"
#. Tag: para
-#: session_api.xml:788
+#: session_api.xml:774
#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
@@ -2455,13 +2426,13 @@
"voraussetzt, erläutern wir es in <xref linkend=\"transactions\"/>."
#. Tag: title
-#: session_api.xml:795
+#: session_api.xml:781
#, no-c-format
msgid "Transitive persistence"
msgstr "Transitive Persistenz"
#. Tag: para
-#: session_api.xml:797
+#: session_api.xml:783
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
@@ -2475,7 +2446,7 @@
"Beziehung). Sehen Sie sich das folgende Beispiel an:"
#. Tag: para
-#: session_api.xml:802
+#: session_api.xml:788
#, fuzzy, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
@@ -2500,7 +2471,7 @@
"wird das untergeordnete Objekt aus der Datenbank gelöscht."
#. Tag: para
-#: session_api.xml:812
+#: session_api.xml:798
#, fuzzy, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
@@ -2522,7 +2493,7 @@
"Erreichbarkeit</emphasis>."
#. Tag: para
-#: session_api.xml:820
+#: session_api.xml:806
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -2542,26 +2513,26 @@
"müssen Sie dass im Mapping-Dokument angeben. Zum Beispiel wie folgt aussehen:"
#. Tag: programlisting
-#: session_api.xml:828
+#: session_api.xml:814
#, fuzzy, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist\"/>"
msgstr "<one-to-one name=\"person\" cascade=\"persist\"/>"
#. Tag: para
-#: session_api.xml:830
+#: session_api.xml:816
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr ""
"Die Arten der Weitergabe (sog. \"Cascade Styles\") können kombiniert werden:"
#. Tag: programlisting
-#: session_api.xml:832
+#: session_api.xml:818
#, fuzzy, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
msgstr "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
#. Tag: para
-#: session_api.xml:834
+#: session_api.xml:820
#, fuzzy, no-c-format
msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
@@ -2575,7 +2546,7 @@
"festgelegt, dass keine Vorgänge weitergegeben werden."
#. Tag: para
-#: session_api.xml:839
+#: session_api.xml:825
#, no-c-format
msgid ""
"In case you are using annotatons you probably have noticed the "
@@ -2586,7 +2557,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:848
+#: session_api.xml:834
#, no-c-format
msgid ""
"<literal>CascadeType.PERSIST</literal>: cascades the persist (create) "
@@ -2595,7 +2566,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:854
+#: session_api.xml:840
#, no-c-format
msgid ""
"<literal>CascadeType.MERGE</literal>: cascades the merge operation to "
@@ -2603,7 +2574,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:860
+#: session_api.xml:846
#, no-c-format
msgid ""
"<literal>CascadeType.REMOVE</literal>: cascades the remove operation to "
@@ -2611,7 +2582,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:865
+#: session_api.xml:851
#, no-c-format
msgid ""
"<literal>CascadeType.REFRESH:</literal> cascades the refresh operation to "
@@ -2619,7 +2590,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:870
+#: session_api.xml:856
#, no-c-format
msgid ""
"<literal>CascadeType.DETACH:</literal> cascades the detach operation to "
@@ -2627,13 +2598,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:875
+#: session_api.xml:861
#, fuzzy, no-c-format
msgid "<literal>CascadeType.ALL</literal>: all of the above"
msgstr "<literal>saveOrUpdate()</literal> tut folgendes:"
#. Tag: para
-#: session_api.xml:880
+#: session_api.xml:866
#, no-c-format
msgid ""
"CascadeType.ALL also covers Hibernate specific operations like save-update, "
@@ -2641,7 +2612,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:884
+#: session_api.xml:870
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -2658,13 +2629,13 @@
msgstr ""
#. Tag: title
-#: session_api.xml:897
+#: session_api.xml:883
#, no-c-format
msgid "<literal>@OneToMany</literal> with <literal>orphanRemoval</literal>"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:900
+#: session_api.xml:886
#, no-c-format
msgid ""
"@Entity \n"
@@ -2688,13 +2659,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:903
+#: session_api.xml:889
#, no-c-format
msgid "Recommendations:"
msgstr "Empfehlungen:"
#. Tag: para
-#: session_api.xml:907
+#: session_api.xml:893
#, fuzzy, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a many-to-one or many-to-"
@@ -2710,7 +2681,7 @@
"Assoziationen von Nutzen."
#. Tag: para
-#: session_api.xml:915
+#: session_api.xml:901
#, fuzzy, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
@@ -2724,7 +2695,7 @@
"orphan\"</literal> festlegen."
#. Tag: para
-#: session_api.xml:923
+#: session_api.xml:909
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2738,7 +2709,7 @@
"<literal>cascade=\"persist,merge,save-update\"</literal> verwenden."
#. Tag: para
-#: session_api.xml:931
+#: session_api.xml:917
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2754,7 +2725,7 @@
"untergeordneten Objekts (oder Objekte) führt."
#. Tag: para
-#: session_api.xml:937
+#: session_api.xml:923
#, fuzzy, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
@@ -2775,7 +2746,7 @@
"\"Parent\"/\"Child\"-Beziehung lautet wie folgt:"
#. Tag: para
-#: session_api.xml:948
+#: session_api.xml:934
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
@@ -2785,7 +2756,7 @@
"sämtliche \"Children\" ebenfalls <literal>persist()</literal>"
#. Tag: para
-#: session_api.xml:953
+#: session_api.xml:939
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
@@ -2795,7 +2766,7 @@
"sämtliche \"Children\" ebenfalls <literal>merge()</literal>"
#. Tag: para
-#: session_api.xml:958
+#: session_api.xml:944
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
@@ -2807,7 +2778,7 @@
"\"Children\" ebenfalls <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:964
+#: session_api.xml:950
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
@@ -2818,7 +2789,7 @@
"</literal>"
#. Tag: para
-#: session_api.xml:970
+#: session_api.xml:956
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
@@ -2828,7 +2799,7 @@
"<literal>delete()</literal>"
#. Tag: para
-#: session_api.xml:975
+#: session_api.xml:961
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2843,7 +2814,7 @@
"\" Child gelöscht wird."
#. Tag: para
-#: session_api.xml:983
+#: session_api.xml:969
#, fuzzy, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
@@ -2863,13 +2834,13 @@
"transitiv."
#. Tag: title
-#: session_api.xml:993
+#: session_api.xml:979
#, no-c-format
msgid "Using metadata"
msgstr "Die Verwendung von Metadata"
#. Tag: para
-#: session_api.xml:995
+#: session_api.xml:981
#, fuzzy, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
@@ -2888,7 +2859,7 @@
"und möglicherweise zugehörige Entities)."
#. Tag: para
-#: session_api.xml:1002
+#: session_api.xml:988
#, fuzzy, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
@@ -2902,7 +2873,7 @@
"<literal>SessionFactory</literal> verfügbar."
#. Tag: programlisting
-#: session_api.xml:1007
+#: session_api.xml:993
#, fuzzy, no-c-format
msgid ""
"Cat fritz = ......;\n"
@@ -2937,7 +2908,35 @@
" }\n"
"}"
+#, fuzzy
#~ msgid ""
+#~ "Hibernate does not offer its own API for direct execution of "
+#~ "<literal>UPDATE</literal> or <literal>DELETE</literal> statements. "
+#~ "Hibernate is a <emphasis>state management</emphasis> service, you do not "
+#~ "have to think in <emphasis>statements</emphasis> to use it. JDBC is a "
+#~ "perfect API for executing SQL statements, you can get a JDBC "
+#~ "<literal>Connection</literal> at any time by calling <literal>session."
+#~ "connection()</literal>. Furthermore, the notion of mass operations "
+#~ "conflicts with object/relational mapping for online transaction "
+#~ "processing-oriented applications. Future versions of Hibernate can, "
+#~ "however, provide special mass operation functions. See <xref linkend="
+#~ "\"batch\"/> for some possible batch operation tricks."
+#~ msgstr ""
+#~ "Bitte beachten Sie, dass Hibernate keine eigene API für die direkte "
+#~ "Ausführung von <literal>UPDATE</literal> oder <literal>DELETE</literal>-"
+#~ "Anweisungen besitzt. Bei Hibernate handelt es sich um einen Dienst zur "
+#~ "<emphasis>Statusverwaltung</emphasis>, das heißt, Sie müssen bei seiner "
+#~ "Benutzung nicht in <emphasis>Anweisungen</emphasis> denken. JDBC ist eine "
+#~ "perfekte API für die Ausführung von SQL-Anweisungen, sie können jederzeit "
+#~ "eine JDBC <literal>Connection</literal> durch Aufruf von <literal>session."
+#~ "connection()</literal> erhalten. Desweiteren steht die Idee von "
+#~ "Massenvorgängen in Konflikt zu objekt/relationalem Mapping für "
+#~ "Anwendungen, die an der Bearbeitung von online Transaktionen orientiert "
+#~ "sind. Zukünftige Versionen von Hibernate werden möglicherweise spezielle "
+#~ "Funktionen für Massenvorgänge bieten. Unter <xref linkend=\"batch\"/> "
+#~ "finden Sie einige mögliche Tricks zur Batch-Bearbeitung."
+
+#~ msgid ""
#~ "A special cascade style, <literal>delete-orphan</literal>, applies only "
#~ "to one-to-many associations, and indicates that the <literal>delete()</"
#~ "literal> operation should be applied to any child object that is removed "
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/session_api.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/session_api.xml 2010-07-21 05:39:40 UTC (rev 19988)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/session_api.xml 2010-07-21 05:44:34 UTC (rev 19989)
@@ -633,20 +633,6 @@
and an SQL <literal>UPDATE</literal> to persist its updated state.
Hibernate offers an alternate approach by using detached instances.</para>
- <important>
- <para>Hibernate does not offer its own API for direct execution of
- <literal>UPDATE</literal> or <literal>DELETE</literal> statements.
- Hibernate is a <emphasis>state management</emphasis> service, you do not
- have to think in <emphasis>statements</emphasis> to use it. JDBC is a
- perfect API for executing SQL statements, you can get a JDBC
- <literal>Connection</literal> at any time by calling
- <literal>session.connection()</literal>. Furthermore, the notion of mass
- operations conflicts with object/relational mapping for online
- transaction processing-oriented applications. Future versions of
- Hibernate can, however, provide special mass operation functions. See
- <xref linkend="batch" /> for some possible batch operation
- tricks.</para>
- </important>
</section>
<section id="objectstate-detached" revision="2">
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/session_api.po 2010-07-21 05:39:40 UTC (rev 19988)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/session_api.po 2010-07-21 05:44:34 UTC (rev 19989)
@@ -14,7 +14,7 @@
msgstr ""
"Project-Id-Version: session_api\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-20 21:02+0000\n"
+"POT-Creation-Date: 2010-07-21 05:43+0000\n"
"PO-Revision-Date: 2010-03-15 14:40+1000\n"
"Last-Translator: Angela Garcia <agarcia(a)redhat.com>\n"
"Language-Team: <en(a)li.org>\n"
@@ -1246,42 +1246,14 @@
"sesión. Por lo tanto, Hibernate ofrece un enfoque opcional, utilizando "
"instancias separadas."
-#. Tag: para
-#: session_api.xml:481
-#, fuzzy, no-c-format
-msgid ""
-"Hibernate does not offer its own API for direct execution of "
-"<literal>UPDATE</literal> or <literal>DELETE</literal> statements. Hibernate "
-"is a <emphasis>state management</emphasis> service, you do not have to think "
-"in <emphasis>statements</emphasis> to use it. JDBC is a perfect API for "
-"executing SQL statements, you can get a JDBC <literal>Connection</literal> "
-"at any time by calling <literal>session.connection()</literal>. Furthermore, "
-"the notion of mass operations conflicts with object/relational mapping for "
-"online transaction processing-oriented applications. Future versions of "
-"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
-msgstr ""
-"Hibernate no ofrece su propia API para ejecución directa de declaraciones "
-"<literal>UPDATE</literal> o <literal>DELETE</literal>. Hibernate es un "
-"servicio de <emphasis>administración de estado</emphasis>, no tiene que "
-"pensar en <emphasis>declaraciones</emphasis> para poder utilizarlo. JDBC es "
-"una API perfecta para ejecutar declaraciones SQL; puede obtener una "
-"<literal>Connection</literal> JDBC en cualquier momento llamando a "
-"<literal>session.connection()</literal>. Además, la noción de operaciones "
-"masivas entra en conflicto con el mapeo objeto/relacional en aplicaciones en "
-"línea orientadas al procesamiento de transacciones. Sin embargo, las "
-"versiones futuras de Hibernate podrán proporcionar funciones de operación "
-"masiva especiales. Consulte <xref linkend=\"batch\"/> para obtener algunos "
-"trucos posibles para la operación en lote. "
-
#. Tag: title
-#: session_api.xml:497
+#: session_api.xml:483
#, no-c-format
msgid "Modifying detached objects"
msgstr "Modificación de objetos separados"
#. Tag: para
-#: session_api.xml:499
+#: session_api.xml:485
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1297,7 +1269,7 @@
"versionados para asegurar el aislamiento de la unidad de trabajo \"larga\"."
#. Tag: para
-#: session_api.xml:505
+#: session_api.xml:491
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
@@ -1309,7 +1281,7 @@
"<literal>Session.merge()</literal>:"
#. Tag: programlisting
-#: session_api.xml:509
+#: session_api.xml:495
#, no-c-format
msgid ""
"// in the first session\n"
@@ -1326,7 +1298,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:511
+#: session_api.xml:497
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
@@ -1338,7 +1310,7 @@
"aplicación intentó volver a unirlo, se habría lanzado una excepción."
#. Tag: para
-#: session_api.xml:516
+#: session_api.xml:502
#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
@@ -1358,7 +1330,7 @@
"instancias separadas es la primera operación que se ejecuta."
#. Tag: para
-#: session_api.xml:524
+#: session_api.xml:510
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
@@ -1375,7 +1347,7 @@
"información."
#. Tag: para
-#: session_api.xml:530
+#: session_api.xml:516
#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
@@ -1387,7 +1359,7 @@
"no puede haber sido modificada."
#. Tag: programlisting
-#: session_api.xml:534
+#: session_api.xml:520
#, no-c-format
msgid ""
"//just reassociate:\n"
@@ -1399,7 +1371,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:536
+#: session_api.xml:522
#, no-c-format
msgid ""
"Note that <literal>lock()</literal> can be used with various "
@@ -1413,7 +1385,7 @@
"re-unión no es el único caso de uso para <literal>lock()</literal>."
#. Tag: para
-#: session_api.xml:541
+#: session_api.xml:527
#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
@@ -1423,13 +1395,13 @@
"\"transactions-optimistic\" />."
#. Tag: title
-#: session_api.xml:546
+#: session_api.xml:532
#, no-c-format
msgid "Automatic state detection"
msgstr "Detección automática de estado"
#. Tag: para
-#: session_api.xml:548
+#: session_api.xml:534
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1444,7 +1416,7 @@
"funcionalidad."
#. Tag: programlisting
-#: session_api.xml:554
+#: session_api.xml:540
#, no-c-format
msgid ""
"// in the first session\n"
@@ -1462,7 +1434,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:556
+#: session_api.xml:542
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1480,7 +1452,7 @@
"ninguno de estos métodos."
#. Tag: para
-#: session_api.xml:563
+#: session_api.xml:549
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
@@ -1490,31 +1462,31 @@
"se utilizan en el siguiente escenario:"
#. Tag: para
-#: session_api.xml:569
+#: session_api.xml:555
#, no-c-format
msgid "the application loads an object in the first session"
msgstr "la aplicación carga un objeto en la primera sesión"
#. Tag: para
-#: session_api.xml:573
+#: session_api.xml:559
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr "el objeto se pasa a la capa de UI"
#. Tag: para
-#: session_api.xml:577
+#: session_api.xml:563
#, no-c-format
msgid "some modifications are made to the object"
msgstr "se realizan algunas modificaciones al objeto"
#. Tag: para
-#: session_api.xml:581
+#: session_api.xml:567
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "el objeto se pasa abajo de regreso a la capa lógica de negocios"
#. Tag: para
-#: session_api.xml:585
+#: session_api.xml:571
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
@@ -1524,19 +1496,19 @@
"<literal>update()</literal> en una segunda sesión"
#. Tag: para
-#: session_api.xml:590
+#: session_api.xml:576
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr "<literal>saveOrUpdate()</literal> hace lo siguiente:"
#. Tag: para
-#: session_api.xml:594
+#: session_api.xml:580
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr "si el objeto ya es persistente en esta sesión, no haga nada"
#. Tag: para
-#: session_api.xml:599
+#: session_api.xml:585
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
@@ -1546,7 +1518,7 @@
"una excepción"
#. Tag: para
-#: session_api.xml:604
+#: session_api.xml:590
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
@@ -1554,7 +1526,7 @@
"<literal>save()</literal>"
#. Tag: para
-#: session_api.xml:609
+#: session_api.xml:595
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
@@ -1564,7 +1536,7 @@
"instanciado, guárdelo llamando a <literal>save()</literal>"
#. Tag: para
-#: session_api.xml:614
+#: session_api.xml:600
#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
@@ -1578,20 +1550,20 @@
"a <literal>save()</literal>"
#. Tag: para
-#: session_api.xml:622
+#: session_api.xml:608
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr ""
"de otra manera actualice el objeto llamando a <literal>update()</literal>"
#. Tag: para
-#: session_api.xml:626
+#: session_api.xml:612
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr "y <literal>merge()</literal> es muy diferente:"
#. Tag: para
-#: session_api.xml:630
+#: session_api.xml:616
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -1603,7 +1575,7 @@
"persistente"
#. Tag: para
-#: session_api.xml:636
+#: session_api.xml:622
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
@@ -1614,13 +1586,13 @@
"persistente"
#. Tag: para
-#: session_api.xml:642
+#: session_api.xml:628
#, no-c-format
msgid "the persistent instance is returned"
msgstr "la instancia persistente es devuelta"
#. Tag: para
-#: session_api.xml:646
+#: session_api.xml:632
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
@@ -1628,13 +1600,13 @@
msgstr "la instancia dada no se asocia a la sesión, permanece separada"
#. Tag: title
-#: session_api.xml:653
+#: session_api.xml:639
#, no-c-format
msgid "Deleting persistent objects"
msgstr "Borrado de objetos persistentes"
#. Tag: para
-#: session_api.xml:655
+#: session_api.xml:641
#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
@@ -1648,13 +1620,13 @@
"hacer transitoria una instancia persistente."
#. Tag: programlisting
-#: session_api.xml:660
+#: session_api.xml:646
#, no-c-format
msgid "sess.delete(cat);"
msgstr ""
#. Tag: para
-#: session_api.xml:662
+#: session_api.xml:648
#, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
@@ -1669,13 +1641,13 @@
"borrar los hijos."
#. Tag: title
-#: session_api.xml:670
+#: session_api.xml:656
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "Replicación de objetos entre dos almacenamientos de datos diferentes"
#. Tag: para
-#: session_api.xml:672
+#: session_api.xml:658
#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
@@ -1687,7 +1659,7 @@
"los valores identificadores."
#. Tag: programlisting
-#: session_api.xml:676
+#: session_api.xml:662
#, no-c-format
msgid ""
"//retrieve a cat from one database\n"
@@ -1706,7 +1678,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:678
+#: session_api.xml:664
#, no-c-format
msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
@@ -1716,7 +1688,7 @@
"literal> tratará los conflictos con filas existentes en la base de datos:"
#. Tag: para
-#: session_api.xml:684
+#: session_api.xml:670
#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
@@ -1726,7 +1698,7 @@
"una fila de la base de datos con el mismo identificador"
#. Tag: para
-#: session_api.xml:689
+#: session_api.xml:675
#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
@@ -1736,7 +1708,7 @@
"la base de datos existente con el mismo identificador"
#. Tag: para
-#: session_api.xml:694
+#: session_api.xml:680
#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
@@ -1746,7 +1718,7 @@
"una fila de la base de datos con el mismo identificador"
#. Tag: para
-#: session_api.xml:700
+#: session_api.xml:686
#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
@@ -1758,7 +1730,7 @@
"contrario ignora el objeto"
#. Tag: para
-#: session_api.xml:706
+#: session_api.xml:692
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1772,13 +1744,13 @@
"producto, deshacer cambios realizados durante transacciones no-ACID y más."
#. Tag: title
-#: session_api.xml:713
+#: session_api.xml:699
#, no-c-format
msgid "Flushing the Session"
msgstr "Limpieza (flushing) de la sesión"
#. Tag: para
-#: session_api.xml:715
+#: session_api.xml:701
#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
@@ -1792,31 +1764,31 @@
"</emphasis>, ocurre por defecto en los siguientes puntos:"
#. Tag: para
-#: session_api.xml:723
+#: session_api.xml:709
#, no-c-format
msgid "before some query executions"
msgstr "antes de algunas ejecuciones de consulta"
#. Tag: para
-#: session_api.xml:727
+#: session_api.xml:713
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr "desde <literal>org.hibernate.Transaction.commit()</literal>"
#. Tag: para
-#: session_api.xml:732
+#: session_api.xml:718
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "desde <literal>Session.flush()</literal>"
#. Tag: para
-#: session_api.xml:736
+#: session_api.xml:722
#, no-c-format
msgid "The SQL statements are issued in the following order:"
msgstr "Las declaraciones SQL se emiten en el siguiente orden:"
#. Tag: para
-#: session_api.xml:740
+#: session_api.xml:726
#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
@@ -1827,32 +1799,32 @@
"literal>"
#. Tag: para
-#: session_api.xml:745
+#: session_api.xml:731
#, no-c-format
msgid "all entity updates"
msgstr "todas las actualizaciones de entidades"
#. Tag: para
-#: session_api.xml:749
+#: session_api.xml:735
#, no-c-format
msgid "all collection deletions"
msgstr "todas los borrados de colecciones"
#. Tag: para
-#: session_api.xml:753
+#: session_api.xml:739
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr ""
"todos los borrados, actualizaciones e inserciones de elementos de colección"
#. Tag: para
-#: session_api.xml:757
+#: session_api.xml:743
#, no-c-format
msgid "all collection insertions"
msgstr "todas las inserciones de colecciones"
#. Tag: para
-#: session_api.xml:761
+#: session_api.xml:747
#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
@@ -1862,7 +1834,7 @@
"correspondientes fueron borrados usando <literal>Session.delete()</literal> "
#. Tag: para
-#: session_api.xml:766
+#: session_api.xml:752
#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
@@ -1872,7 +1844,7 @@
"<literal>native</literal> se insertan cuando se guardan."
#. Tag: para
-#: session_api.xml:769
+#: session_api.xml:755
#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
@@ -1889,7 +1861,7 @@
"desactualizados o incorrectos."
#. Tag: para
-#: session_api.xml:776
+#: session_api.xml:762
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -1912,7 +1884,7 @@
"<xref linkend=\"transactions-optimistic-longsession\"/>)."
#. Tag: programlisting
-#: session_api.xml:786
+#: session_api.xml:772
#, no-c-format
msgid ""
"sess = sf.openSession();\n"
@@ -1932,7 +1904,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:788
+#: session_api.xml:774
#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
@@ -1946,13 +1918,13 @@
"lo discutimos en <xref linkend=\"transactions\" />. "
#. Tag: title
-#: session_api.xml:795
+#: session_api.xml:781
#, no-c-format
msgid "Transitive persistence"
msgstr "Persistencia transitiva"
#. Tag: para
-#: session_api.xml:797
+#: session_api.xml:783
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
@@ -1964,7 +1936,7 @@
"una relación padre/hijo. Considere el siguiente ejemplo:"
#. Tag: para
-#: session_api.xml:802
+#: session_api.xml:788
#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
@@ -1987,7 +1959,7 @@
"referencias compartidas entonces borrará el hijo de la base de datos."
#. Tag: para
-#: session_api.xml:812
+#: session_api.xml:798
#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
@@ -2007,7 +1979,7 @@
"no implementa por defecto la <emphasis>persistencia por alcance</emphasis>."
#. Tag: para
-#: session_api.xml:820
+#: session_api.xml:806
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -2028,25 +2000,25 @@
"ejemplo:"
#. Tag: programlisting
-#: session_api.xml:828
+#: session_api.xml:814
#, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist\"/>"
msgstr ""
#. Tag: para
-#: session_api.xml:830
+#: session_api.xml:816
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr "Los estilos de cascada pueden combinarse:"
#. Tag: programlisting
-#: session_api.xml:832
+#: session_api.xml:818
#, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
msgstr ""
#. Tag: para
-#: session_api.xml:834
+#: session_api.xml:820
#, no-c-format
msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
@@ -2060,7 +2032,7 @@
"predeterminada especifica que ninguna operación se tratará en cascada. "
#. Tag: para
-#: session_api.xml:839
+#: session_api.xml:825
#, no-c-format
msgid ""
"In case you are using annotatons you probably have noticed the "
@@ -2071,7 +2043,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:848
+#: session_api.xml:834
#, no-c-format
msgid ""
"<literal>CascadeType.PERSIST</literal>: cascades the persist (create) "
@@ -2080,7 +2052,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:854
+#: session_api.xml:840
#, no-c-format
msgid ""
"<literal>CascadeType.MERGE</literal>: cascades the merge operation to "
@@ -2088,7 +2060,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:860
+#: session_api.xml:846
#, no-c-format
msgid ""
"<literal>CascadeType.REMOVE</literal>: cascades the remove operation to "
@@ -2096,7 +2068,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:865
+#: session_api.xml:851
#, no-c-format
msgid ""
"<literal>CascadeType.REFRESH:</literal> cascades the refresh operation to "
@@ -2104,7 +2076,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:870
+#: session_api.xml:856
#, no-c-format
msgid ""
"<literal>CascadeType.DETACH:</literal> cascades the detach operation to "
@@ -2112,13 +2084,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:875
+#: session_api.xml:861
#, fuzzy, no-c-format
msgid "<literal>CascadeType.ALL</literal>: all of the above"
msgstr "<literal>saveOrUpdate()</literal> hace lo siguiente:"
#. Tag: para
-#: session_api.xml:880
+#: session_api.xml:866
#, no-c-format
msgid ""
"CascadeType.ALL also covers Hibernate specific operations like save-update, "
@@ -2126,7 +2098,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:884
+#: session_api.xml:870
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -2143,13 +2115,13 @@
msgstr ""
#. Tag: title
-#: session_api.xml:897
+#: session_api.xml:883
#, no-c-format
msgid "<literal>@OneToMany</literal> with <literal>orphanRemoval</literal>"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:900
+#: session_api.xml:886
#, no-c-format
msgid ""
"@Entity \n"
@@ -2173,13 +2145,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:903
+#: session_api.xml:889
#, no-c-format
msgid "Recommendations:"
msgstr "Recomendaciones:"
#. Tag: para
-#: session_api.xml:907
+#: session_api.xml:893
#, fuzzy, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a many-to-one or many-to-"
@@ -2195,7 +2167,7 @@
"many></literal>."
#. Tag: para
-#: session_api.xml:915
+#: session_api.xml:901
#, fuzzy, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
@@ -2208,7 +2180,7 @@
"especificando <literal>cascade=\"all,delete-orphan\"</literal>. "
#. Tag: para
-#: session_api.xml:923
+#: session_api.xml:909
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2223,7 +2195,7 @@
"update\"</literal>."
#. Tag: para
-#: session_api.xml:931
+#: session_api.xml:917
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2238,7 +2210,7 @@
"hijo o hijos."
#. Tag: para
-#: session_api.xml:937
+#: session_api.xml:923
#, fuzzy, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
@@ -2258,7 +2230,7 @@
"una relación padre/hijo es la siguiente:"
#. Tag: para
-#: session_api.xml:948
+#: session_api.xml:934
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
@@ -2268,7 +2240,7 @@
"<literal>persist()</literal>"
#. Tag: para
-#: session_api.xml:953
+#: session_api.xml:939
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
@@ -2278,7 +2250,7 @@
"<literal>merge()</literal>"
#. Tag: para
-#: session_api.xml:958
+#: session_api.xml:944
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
@@ -2290,7 +2262,7 @@
"<literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:964
+#: session_api.xml:950
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
@@ -2300,7 +2272,7 @@
"persistente, le es pasado a <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:970
+#: session_api.xml:956
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
@@ -2309,7 +2281,7 @@
"Si se borra un padre, se pasan todos los hijos a <literal>delete()</literal>"
#. Tag: para
-#: session_api.xml:975
+#: session_api.xml:961
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2323,7 +2295,7 @@
"literal>, en cuyo caso se borra el hijo \"huérfano\"."
#. Tag: para
-#: session_api.xml:983
+#: session_api.xml:969
#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
@@ -2343,13 +2315,13 @@
"<literal>Session</literal>."
#. Tag: title
-#: session_api.xml:993
+#: session_api.xml:979
#, no-c-format
msgid "Using metadata"
msgstr "Utilización de metadatos"
#. Tag: para
-#: session_api.xml:995
+#: session_api.xml:981
#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
@@ -2368,7 +2340,7 @@
"las entidades asociadas)."
#. Tag: para
-#: session_api.xml:1002
+#: session_api.xml:988
#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
@@ -2382,7 +2354,7 @@
"metadatos se pueden obtener de la <literal>SessionFactory</literal>."
#. Tag: programlisting
-#: session_api.xml:1007
+#: session_api.xml:993
#, no-c-format
msgid ""
"Cat fritz = ......;\n"
@@ -2402,7 +2374,34 @@
"}"
msgstr ""
+#, fuzzy
#~ msgid ""
+#~ "Hibernate does not offer its own API for direct execution of "
+#~ "<literal>UPDATE</literal> or <literal>DELETE</literal> statements. "
+#~ "Hibernate is a <emphasis>state management</emphasis> service, you do not "
+#~ "have to think in <emphasis>statements</emphasis> to use it. JDBC is a "
+#~ "perfect API for executing SQL statements, you can get a JDBC "
+#~ "<literal>Connection</literal> at any time by calling <literal>session."
+#~ "connection()</literal>. Furthermore, the notion of mass operations "
+#~ "conflicts with object/relational mapping for online transaction "
+#~ "processing-oriented applications. Future versions of Hibernate can, "
+#~ "however, provide special mass operation functions. See <xref linkend="
+#~ "\"batch\"/> for some possible batch operation tricks."
+#~ msgstr ""
+#~ "Hibernate no ofrece su propia API para ejecución directa de declaraciones "
+#~ "<literal>UPDATE</literal> o <literal>DELETE</literal>. Hibernate es un "
+#~ "servicio de <emphasis>administración de estado</emphasis>, no tiene que "
+#~ "pensar en <emphasis>declaraciones</emphasis> para poder utilizarlo. JDBC "
+#~ "es una API perfecta para ejecutar declaraciones SQL; puede obtener una "
+#~ "<literal>Connection</literal> JDBC en cualquier momento llamando a "
+#~ "<literal>session.connection()</literal>. Además, la noción de operaciones "
+#~ "masivas entra en conflicto con el mapeo objeto/relacional en aplicaciones "
+#~ "en línea orientadas al procesamiento de transacciones. Sin embargo, las "
+#~ "versiones futuras de Hibernate podrán proporcionar funciones de operación "
+#~ "masiva especiales. Consulte <xref linkend=\"batch\"/> para obtener "
+#~ "algunos trucos posibles para la operación en lote. "
+
+#~ msgid ""
#~ "A special cascade style, <literal>delete-orphan</literal>, applies only "
#~ "to one-to-many associations, and indicates that the <literal>delete()</"
#~ "literal> operation should be applied to any child object that is removed "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/session_api.po 2010-07-21 05:39:40 UTC (rev 19988)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/session_api.po 2010-07-21 05:44:34 UTC (rev 19989)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: session_api\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-20 21:02+0000\n"
+"POT-Creation-Date: 2010-07-21 05:43+0000\n"
"PO-Revision-Date: 2010-01-05 09:57+1000\n"
"Last-Translator: Corina Roe <croe(a)redhat.com>\n"
"Language-Team: French <i18(a)redhat.com>\n"
@@ -1245,42 +1245,14 @@
"session. Ainsi Hibernate offre une autre approche, en utilisant des "
"instances détachées. "
-#. Tag: para
-#: session_api.xml:481
-#, fuzzy, no-c-format
-msgid ""
-"Hibernate does not offer its own API for direct execution of "
-"<literal>UPDATE</literal> or <literal>DELETE</literal> statements. Hibernate "
-"is a <emphasis>state management</emphasis> service, you do not have to think "
-"in <emphasis>statements</emphasis> to use it. JDBC is a perfect API for "
-"executing SQL statements, you can get a JDBC <literal>Connection</literal> "
-"at any time by calling <literal>session.connection()</literal>. Furthermore, "
-"the notion of mass operations conflicts with object/relational mapping for "
-"online transaction processing-oriented applications. Future versions of "
-"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
-msgstr ""
-"Notez que Hibernate n'offre par sa propre API pour l'exécution directe "
-"d'expressions <literal>UPDATE</literal> ou <literal>DELETE</literal>. "
-"Hibernate est un service de <emphasis>gestion d'état</emphasis>, vous n'avez "
-"pas à penser aux <emphasis>expressions</emphasis> pour l'utiliser. JDBC est "
-"une API parfaite pour exécuter des expressions SQL, vous pouvez obtenir une "
-"<literal>Connection</literal> JDBC à tout moment en appelant "
-"<literal>session.connection()</literal>. En outre, la notion d'opérations de "
-"masse entre en conflit avec le mapping objet/relationnel pour les "
-"applications orientées processus de transactions en ligne. Les futures "
-"versions de Hibernate pourront cependant fournir des fonctions particulières "
-"d'opération de masse. Voir <xref linkend=\"batch\" /> pour des astuces "
-"possibles d'opérations groupées. "
-
#. Tag: title
-#: session_api.xml:497
+#: session_api.xml:483
#, no-c-format
msgid "Modifying detached objects"
msgstr "Modifier des objets détachés"
#. Tag: para
-#: session_api.xml:499
+#: session_api.xml:485
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1297,7 +1269,7 @@
"versionnées pour assurer l'isolation des \"longues\" unités de travail."
#. Tag: para
-#: session_api.xml:505
+#: session_api.xml:491
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
@@ -1309,7 +1281,7 @@
"<literal>Session.merge()</literal> :"
#. Tag: programlisting
-#: session_api.xml:509
+#: session_api.xml:495
#, no-c-format
msgid ""
"// in the first session\n"
@@ -1326,7 +1298,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:511
+#: session_api.xml:497
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
@@ -1338,7 +1310,7 @@
"l'application a essayé de le rattacher, une exception aurait été levée."
#. Tag: para
-#: session_api.xml:516
+#: session_api.xml:502
#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
@@ -1359,7 +1331,7 @@
"exécutée. "
#. Tag: para
-#: session_api.xml:524
+#: session_api.xml:510
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
@@ -1376,7 +1348,7 @@
"\"objectstate-transitive\" /> pour plus d'informations."
#. Tag: para
-#: session_api.xml:530
+#: session_api.xml:516
#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
@@ -1388,7 +1360,7 @@
"doit être non modifiée."
#. Tag: programlisting
-#: session_api.xml:534
+#: session_api.xml:520
#, no-c-format
msgid ""
"//just reassociate:\n"
@@ -1400,7 +1372,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:536
+#: session_api.xml:522
#, no-c-format
msgid ""
"Note that <literal>lock()</literal> can be used with various "
@@ -1414,7 +1386,7 @@
"n'est pas le seul cas d'utilisation pour <literal>lock()</literal>. "
#. Tag: para
-#: session_api.xml:541
+#: session_api.xml:527
#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
@@ -1424,13 +1396,13 @@
"linkend=\"transactions-optimistic\" />."
#. Tag: title
-#: session_api.xml:546
+#: session_api.xml:532
#, no-c-format
msgid "Automatic state detection"
msgstr "Détection automatique d'un état"
#. Tag: para
-#: session_api.xml:548
+#: session_api.xml:534
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1445,7 +1417,7 @@
"literal> implémente cette fonctionnalité."
#. Tag: programlisting
-#: session_api.xml:554
+#: session_api.xml:540
#, no-c-format
msgid ""
"// in the first session\n"
@@ -1463,7 +1435,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:556
+#: session_api.xml:542
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1481,7 +1453,7 @@
"applications n'utiliseront jamais ces méthodes."
#. Tag: para
-#: session_api.xml:563
+#: session_api.xml:549
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
@@ -1491,31 +1463,31 @@
"literal> sont utilisées dans le scénario suivant :"
#. Tag: para
-#: session_api.xml:569
+#: session_api.xml:555
#, no-c-format
msgid "the application loads an object in the first session"
msgstr "l'application charge un objet dans la première session"
#. Tag: para
-#: session_api.xml:573
+#: session_api.xml:559
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr "l'objet est passé à la couche utilisateur"
#. Tag: para
-#: session_api.xml:577
+#: session_api.xml:563
#, no-c-format
msgid "some modifications are made to the object"
msgstr "certaines modifications sont effectuées sur l'objet"
#. Tag: para
-#: session_api.xml:581
+#: session_api.xml:567
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "l'objet est retourné à la couche logique métier"
#. Tag: para
-#: session_api.xml:585
+#: session_api.xml:571
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
@@ -1525,19 +1497,19 @@
"literal> dans une seconde session"
#. Tag: para
-#: session_api.xml:590
+#: session_api.xml:576
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr "<literal>saveOrUpdate()</literal> s'utilise dans le cas suivant :"
#. Tag: para
-#: session_api.xml:594
+#: session_api.xml:580
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr "si l'objet est déjà persistant dans cette session, ne rien faire"
#. Tag: para
-#: session_api.xml:599
+#: session_api.xml:585
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
@@ -1547,7 +1519,7 @@
"exception"
#. Tag: para
-#: session_api.xml:604
+#: session_api.xml:590
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
@@ -1555,7 +1527,7 @@
"literal>"
#. Tag: para
-#: session_api.xml:609
+#: session_api.xml:595
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
@@ -1565,7 +1537,7 @@
"instancié, appeler <literal>save()</literal>"
#. Tag: para
-#: session_api.xml:614
+#: session_api.xml:600
#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
@@ -1579,19 +1551,19 @@
"instancié, appeler <literal>save()</literal> "
#. Tag: para
-#: session_api.xml:622
+#: session_api.xml:608
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr "sinon mettre à jour l'objet avec <literal>update()</literal>"
#. Tag: para
-#: session_api.xml:626
+#: session_api.xml:612
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr "et <literal>merge()</literal> est très différent :"
#. Tag: para
-#: session_api.xml:630
+#: session_api.xml:616
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -1603,7 +1575,7 @@
"persistante"
#. Tag: para
-#: session_api.xml:636
+#: session_api.xml:622
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
@@ -1614,13 +1586,13 @@
"persistante"
#. Tag: para
-#: session_api.xml:642
+#: session_api.xml:628
#, no-c-format
msgid "the persistent instance is returned"
msgstr "l'instance persistante est retournée"
#. Tag: para
-#: session_api.xml:646
+#: session_api.xml:632
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
@@ -1629,13 +1601,13 @@
"l'instance donnée ne devient pas associée à la session, elle reste détachée"
#. Tag: title
-#: session_api.xml:653
+#: session_api.xml:639
#, no-c-format
msgid "Deleting persistent objects"
msgstr "Suppression d'objets persistants"
#. Tag: para
-#: session_api.xml:655
+#: session_api.xml:641
#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
@@ -1649,13 +1621,13 @@
"()</literal> comme rendant une instance persistante éphémère. "
#. Tag: programlisting
-#: session_api.xml:660
+#: session_api.xml:646
#, no-c-format
msgid "sess.delete(cat);"
msgstr ""
#. Tag: para
-#: session_api.xml:662
+#: session_api.xml:648
#, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
@@ -1670,13 +1642,13 @@
"parent, mais oubliez d'effacer les enfants. "
#. Tag: title
-#: session_api.xml:670
+#: session_api.xml:656
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "Réplication d'objets entre deux entrepôts de données"
#. Tag: para
-#: session_api.xml:672
+#: session_api.xml:658
#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
@@ -1688,7 +1660,7 @@
"regénérer les valeurs des identifiants. "
#. Tag: programlisting
-#: session_api.xml:676
+#: session_api.xml:662
#, no-c-format
msgid ""
"//retrieve a cat from one database\n"
@@ -1707,7 +1679,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:678
+#: session_api.xml:664
#, no-c-format
msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
@@ -1718,7 +1690,7 @@
"données. "
#. Tag: para
-#: session_api.xml:684
+#: session_api.xml:670
#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
@@ -1728,7 +1700,7 @@
"ligne existante dans la base de données avec le même identifiant "
#. Tag: para
-#: session_api.xml:689
+#: session_api.xml:675
#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
@@ -1738,7 +1710,7 @@
"existante dans la base de données avec le même identifiant "
#. Tag: para
-#: session_api.xml:694
+#: session_api.xml:680
#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
@@ -1748,7 +1720,7 @@
"une ligne dans la base de données avec le même identifiant "
#. Tag: para
-#: session_api.xml:700
+#: session_api.xml:686
#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
@@ -1760,7 +1732,7 @@
"ignore l'objet "
#. Tag: para
-#: session_api.xml:706
+#: session_api.xml:692
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1775,13 +1747,13 @@
"ACID, et plus."
#. Tag: title
-#: session_api.xml:713
+#: session_api.xml:699
#, no-c-format
msgid "Flushing the Session"
msgstr "Flush de la session"
#. Tag: para
-#: session_api.xml:715
+#: session_api.xml:701
#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
@@ -1795,32 +1767,32 @@
"survient par défaut aux points suivants : "
#. Tag: para
-#: session_api.xml:723
+#: session_api.xml:709
#, no-c-format
msgid "before some query executions"
msgstr "avant certaines exécutions de requête"
#. Tag: para
-#: session_api.xml:727
+#: session_api.xml:713
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr ""
"lors d'un appel à <literal>org.hibernate.Transaction.commit()</literal>"
#. Tag: para
-#: session_api.xml:732
+#: session_api.xml:718
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "lors d'un appel à <literal>Session.flush()</literal>"
#. Tag: para
-#: session_api.xml:736
+#: session_api.xml:722
#, no-c-format
msgid "The SQL statements are issued in the following order:"
msgstr "Les expressions SQL sont effectuées dans l'ordre suivant : "
#. Tag: para
-#: session_api.xml:740
+#: session_api.xml:726
#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
@@ -1830,31 +1802,31 @@
"correspondants sauvegardés par l'appel à <literal>Session.save()</literal> "
#. Tag: para
-#: session_api.xml:745
+#: session_api.xml:731
#, no-c-format
msgid "all entity updates"
msgstr "mise à jour des entités"
#. Tag: para
-#: session_api.xml:749
+#: session_api.xml:735
#, no-c-format
msgid "all collection deletions"
msgstr "suppression des collections"
#. Tag: para
-#: session_api.xml:753
+#: session_api.xml:739
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr "suppression, mise à jour et insertion des éléments des collections"
#. Tag: para
-#: session_api.xml:757
+#: session_api.xml:743
#, no-c-format
msgid "all collection insertions"
msgstr "insertion des collections"
#. Tag: para
-#: session_api.xml:761
+#: session_api.xml:747
#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
@@ -1865,7 +1837,7 @@
"</literal> "
#. Tag: para
-#: session_api.xml:766
+#: session_api.xml:752
#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
@@ -1875,7 +1847,7 @@
"literal> d'identifiants sont insérés lorsqu'ils sont sauvegardés."
#. Tag: para
-#: session_api.xml:769
+#: session_api.xml:755
#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
@@ -1892,7 +1864,7 @@
"jamais de données périmées, ni des données fausses. "
#. Tag: para
-#: session_api.xml:776
+#: session_api.xml:762
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -1915,7 +1887,7 @@
"moment (voir <xref linkend=\"transactions-optimistic-longsession\" />)."
#. Tag: programlisting
-#: session_api.xml:786
+#: session_api.xml:772
#, no-c-format
msgid ""
"sess = sf.openSession();\n"
@@ -1935,7 +1907,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:788
+#: session_api.xml:774
#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
@@ -1949,13 +1921,13 @@
"Hibernate, le sujet sera donc abordé dans <xref linkend=\"transactions\" />."
#. Tag: title
-#: session_api.xml:795
+#: session_api.xml:781
#, no-c-format
msgid "Transitive persistence"
msgstr "Persistance transitive"
#. Tag: para
-#: session_api.xml:797
+#: session_api.xml:783
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
@@ -1967,7 +1939,7 @@
"est une relation parent/enfant. Considérez l'exemple suivant :"
#. Tag: para
-#: session_api.xml:802
+#: session_api.xml:788
#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
@@ -1991,7 +1963,7 @@
"de données. "
#. Tag: para
-#: session_api.xml:812
+#: session_api.xml:798
#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
@@ -2012,7 +1984,7 @@
"accessibilité</emphasis> par défaut. "
#. Tag: para
-#: session_api.xml:820
+#: session_api.xml:806
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -2032,25 +2004,25 @@
"l'indiquer dans le document de mappage. Par exemple :"
#. Tag: programlisting
-#: session_api.xml:828
+#: session_api.xml:814
#, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist\"/>"
msgstr ""
#. Tag: para
-#: session_api.xml:830
+#: session_api.xml:816
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr "Les styles de cascade peuvent être combinés :"
#. Tag: programlisting
-#: session_api.xml:832
+#: session_api.xml:818
#, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
msgstr ""
#. Tag: para
-#: session_api.xml:834
+#: session_api.xml:820
#, no-c-format
msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
@@ -2064,7 +2036,7 @@
"literal> spécifie qu'aucune opération ne sera cascadée. "
#. Tag: para
-#: session_api.xml:839
+#: session_api.xml:825
#, no-c-format
msgid ""
"In case you are using annotatons you probably have noticed the "
@@ -2075,7 +2047,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:848
+#: session_api.xml:834
#, no-c-format
msgid ""
"<literal>CascadeType.PERSIST</literal>: cascades the persist (create) "
@@ -2084,7 +2056,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:854
+#: session_api.xml:840
#, no-c-format
msgid ""
"<literal>CascadeType.MERGE</literal>: cascades the merge operation to "
@@ -2092,7 +2064,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:860
+#: session_api.xml:846
#, no-c-format
msgid ""
"<literal>CascadeType.REMOVE</literal>: cascades the remove operation to "
@@ -2100,7 +2072,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:865
+#: session_api.xml:851
#, no-c-format
msgid ""
"<literal>CascadeType.REFRESH:</literal> cascades the refresh operation to "
@@ -2108,7 +2080,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:870
+#: session_api.xml:856
#, no-c-format
msgid ""
"<literal>CascadeType.DETACH:</literal> cascades the detach operation to "
@@ -2116,13 +2088,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:875
+#: session_api.xml:861
#, fuzzy, no-c-format
msgid "<literal>CascadeType.ALL</literal>: all of the above"
msgstr "<literal>saveOrUpdate()</literal> s'utilise dans le cas suivant :"
#. Tag: para
-#: session_api.xml:880
+#: session_api.xml:866
#, no-c-format
msgid ""
"CascadeType.ALL also covers Hibernate specific operations like save-update, "
@@ -2130,7 +2102,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:884
+#: session_api.xml:870
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -2147,13 +2119,13 @@
msgstr ""
#. Tag: title
-#: session_api.xml:897
+#: session_api.xml:883
#, no-c-format
msgid "<literal>@OneToMany</literal> with <literal>orphanRemoval</literal>"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:900
+#: session_api.xml:886
#, no-c-format
msgid ""
"@Entity \n"
@@ -2177,13 +2149,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:903
+#: session_api.xml:889
#, no-c-format
msgid "Recommendations:"
msgstr "Recommandations :"
#. Tag: para
-#: session_api.xml:907
+#: session_api.xml:893
#, fuzzy, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a many-to-one or many-to-"
@@ -2199,7 +2171,7 @@
"literal>. "
#. Tag: para
-#: session_api.xml:915
+#: session_api.xml:901
#, fuzzy, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
@@ -2212,7 +2184,7 @@
"spécifiant <literal>cascade=\"all,delete-orphan\"</literal>. "
#. Tag: para
-#: session_api.xml:923
+#: session_api.xml:909
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2227,7 +2199,7 @@
"literal>. "
#. Tag: para
-#: session_api.xml:931
+#: session_api.xml:917
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2242,7 +2214,7 @@
"jour/suppression de l'enfant ou des enfants."
#. Tag: para
-#: session_api.xml:937
+#: session_api.xml:923
#, fuzzy, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
@@ -2262,7 +2234,7 @@
"opérations de cascade pour une relation parent/enfant est la suivante : "
#. Tag: para
-#: session_api.xml:948
+#: session_api.xml:934
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
@@ -2272,7 +2244,7 @@
"passés à <literal>persist()</literal>"
#. Tag: para
-#: session_api.xml:953
+#: session_api.xml:939
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
@@ -2282,7 +2254,7 @@
"passés à <literal>merge()</literal>"
#. Tag: para
-#: session_api.xml:958
+#: session_api.xml:944
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
@@ -2294,7 +2266,7 @@
"à <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:964
+#: session_api.xml:950
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
@@ -2304,7 +2276,7 @@
"il est passé à <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:970
+#: session_api.xml:956
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
@@ -2314,7 +2286,7 @@
"literal>"
#. Tag: para
-#: session_api.xml:975
+#: session_api.xml:961
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2328,7 +2300,7 @@
"literal> soit paramétré, auquel cas l'enfant \"orphelin\" est supprimé."
#. Tag: para
-#: session_api.xml:983
+#: session_api.xml:969
#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
@@ -2347,13 +2319,13 @@
"associées accessibles lors du flush de la <literal>Session</literal>. "
#. Tag: title
-#: session_api.xml:993
+#: session_api.xml:979
#, no-c-format
msgid "Using metadata"
msgstr "Utilisation des méta-données"
#. Tag: para
-#: session_api.xml:995
+#: session_api.xml:981
#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
@@ -2372,7 +2344,7 @@
"les types de valeurs immutables et, éventuellement, les entités associées). "
#. Tag: para
-#: session_api.xml:1002
+#: session_api.xml:988
#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
@@ -2386,7 +2358,7 @@
"peuvent être obtenues à partir de la <literal>SessionFactory</literal>. "
#. Tag: programlisting
-#: session_api.xml:1007
+#: session_api.xml:993
#, no-c-format
msgid ""
"Cat fritz = ......;\n"
@@ -2406,7 +2378,34 @@
"}"
msgstr ""
+#, fuzzy
#~ msgid ""
+#~ "Hibernate does not offer its own API for direct execution of "
+#~ "<literal>UPDATE</literal> or <literal>DELETE</literal> statements. "
+#~ "Hibernate is a <emphasis>state management</emphasis> service, you do not "
+#~ "have to think in <emphasis>statements</emphasis> to use it. JDBC is a "
+#~ "perfect API for executing SQL statements, you can get a JDBC "
+#~ "<literal>Connection</literal> at any time by calling <literal>session."
+#~ "connection()</literal>. Furthermore, the notion of mass operations "
+#~ "conflicts with object/relational mapping for online transaction "
+#~ "processing-oriented applications. Future versions of Hibernate can, "
+#~ "however, provide special mass operation functions. See <xref linkend="
+#~ "\"batch\"/> for some possible batch operation tricks."
+#~ msgstr ""
+#~ "Notez que Hibernate n'offre par sa propre API pour l'exécution directe "
+#~ "d'expressions <literal>UPDATE</literal> ou <literal>DELETE</literal>. "
+#~ "Hibernate est un service de <emphasis>gestion d'état</emphasis>, vous "
+#~ "n'avez pas à penser aux <emphasis>expressions</emphasis> pour l'utiliser. "
+#~ "JDBC est une API parfaite pour exécuter des expressions SQL, vous pouvez "
+#~ "obtenir une <literal>Connection</literal> JDBC à tout moment en appelant "
+#~ "<literal>session.connection()</literal>. En outre, la notion d'opérations "
+#~ "de masse entre en conflit avec le mapping objet/relationnel pour les "
+#~ "applications orientées processus de transactions en ligne. Les futures "
+#~ "versions de Hibernate pourront cependant fournir des fonctions "
+#~ "particulières d'opération de masse. Voir <xref linkend=\"batch\" /> pour "
+#~ "des astuces possibles d'opérations groupées. "
+
+#~ msgid ""
#~ "A special cascade style, <literal>delete-orphan</literal>, applies only "
#~ "to one-to-many associations, and indicates that the <literal>delete()</"
#~ "literal> operation should be applied to any child object that is removed "
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/session_api.po 2010-07-21 05:39:40 UTC (rev 19988)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/session_api.po 2010-07-21 05:44:34 UTC (rev 19989)
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-20 21:02+0000\n"
+"POT-Creation-Date: 2010-07-21 05:43+0000\n"
"PO-Revision-Date: 2010-01-07 14:56+1000\n"
"Last-Translator: Xi HUANG <xhuang(a)redhat.com>\n"
"Language-Team: <en(a)li.org>\n"
@@ -1385,41 +1385,14 @@
"ます。そのため、 Hibernate は別の方法を用意しています。それは、 detached イン"
"スタンスを使用する方法です。"
-#. Tag: para
-#: session_api.xml:481
-#, fuzzy, no-c-format
-msgid ""
-"Hibernate does not offer its own API for direct execution of "
-"<literal>UPDATE</literal> or <literal>DELETE</literal> statements. Hibernate "
-"is a <emphasis>state management</emphasis> service, you do not have to think "
-"in <emphasis>statements</emphasis> to use it. JDBC is a perfect API for "
-"executing SQL statements, you can get a JDBC <literal>Connection</literal> "
-"at any time by calling <literal>session.connection()</literal>. Furthermore, "
-"the notion of mass operations conflicts with object/relational mapping for "
-"online transaction processing-oriented applications. Future versions of "
-"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
-msgstr ""
-"Hibernate は、 <literal>UPDATE</literal> 文や <literal>DELETE</literal> 文を"
-"直接実行する API を用意していません。 Hibernate は、 <emphasis>ステートマネー"
-"ジメント</emphasis> サービスであり、それを使うのに <emphasis>ステートメント</"
-"emphasis> のことを開発者が考える必要はありません。 JDBC は SQL 文を実行する完"
-"璧な API であり、 <literal>session.connection()</literal> を呼ぶことでいつで"
-"も、 JDBC <literal>Connection</literal> を開発者は取得できます。さらに、大量"
-"のデータ操作の考え方は、オンライントランザクション処理向きアプリケーションの"
-"オブジェクト/リレーショナルマッピングと衝突します。しかし、 Hibernate の今後"
-"のバージョンでは、大量データを処理する特別な機能を提供するかもしれません。"
-"バッチ操作に利用できるいくつかの工夫については、 <xref linkend=\"batch\"/> を"
-"参照してください。"
-
#. Tag: title
-#: session_api.xml:497
+#: session_api.xml:483
#, no-c-format
msgid "Modifying detached objects"
msgstr "detached オブジェクトの修正"
#. Tag: para
-#: session_api.xml:499
+#: session_api.xml:485
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1435,7 +1408,7 @@
"離性を保証するために、バージョンデータが通常使われます。"
#. Tag: para
-#: session_api.xml:505
+#: session_api.xml:491
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
@@ -1447,7 +1420,7 @@
"モデルに対応します。"
#. Tag: programlisting
-#: session_api.xml:509
+#: session_api.xml:495
#, fuzzy, no-c-format
msgid ""
"// in the first session\n"
@@ -1475,7 +1448,7 @@
"secondSession.update(mate); // update mate"
#. Tag: para
-#: session_api.xml:511
+#: session_api.xml:497
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
@@ -1487,7 +1460,7 @@
"ときに、例外が投げられます。"
#. Tag: para
-#: session_api.xml:516
+#: session_api.xml:502
#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
@@ -1506,7 +1479,7 @@
"のなかで最初に呼ばれるメソッドになります。"
#. Tag: para
-#: session_api.xml:524
+#: session_api.xml:510
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
@@ -1522,7 +1495,7 @@
"を参照してください。"
#. Tag: para
-#: session_api.xml:530
+#: session_api.xml:516
#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
@@ -1534,7 +1507,7 @@
"ん。"
#. Tag: programlisting
-#: session_api.xml:534
+#: session_api.xml:520
#, fuzzy, no-c-format
msgid ""
"//just reassociate:\n"
@@ -1552,7 +1525,7 @@
"sess.lock(pk, LockMode.UPGRADE);"
#. Tag: para
-#: session_api.xml:536
+#: session_api.xml:522
#, no-c-format
msgid ""
"Note that <literal>lock()</literal> can be used with various "
@@ -1566,7 +1539,7 @@
"はありません。"
#. Tag: para
-#: session_api.xml:541
+#: session_api.xml:527
#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
@@ -1576,13 +1549,13 @@
"optimistic\"/> で述べています。"
#. Tag: title
-#: session_api.xml:546
+#: session_api.xml:532
#, no-c-format
msgid "Automatic state detection"
msgstr "自動的な状態検出"
#. Tag: para
-#: session_api.xml:548
+#: session_api.xml:534
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1597,7 +1570,7 @@
"機能を実現したメソッドです。"
#. Tag: programlisting
-#: session_api.xml:554
+#: session_api.xml:540
#, fuzzy, no-c-format
msgid ""
"// in the first session\n"
@@ -1627,7 +1600,7 @@
"id)"
#. Tag: para
-#: session_api.xml:556
+#: session_api.xml:542
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1645,7 +1618,7 @@
"もあります。"
#. Tag: para
-#: session_api.xml:563
+#: session_api.xml:549
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
@@ -1655,31 +1628,31 @@
"のシナリオで使われます:"
#. Tag: para
-#: session_api.xml:569
+#: session_api.xml:555
#, no-c-format
msgid "the application loads an object in the first session"
msgstr "アプリケーションが最初のセッションでオブジェクトをロードします。"
#. Tag: para
-#: session_api.xml:573
+#: session_api.xml:559
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr "オブジェクトが UI 層に送られます。"
#. Tag: para
-#: session_api.xml:577
+#: session_api.xml:563
#, no-c-format
msgid "some modifications are made to the object"
msgstr "オブジェクトに対して変更が加えられます。"
#. Tag: para
-#: session_api.xml:581
+#: session_api.xml:567
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "オブジェクトがビジネスロジック層に送られます。"
#. Tag: para
-#: session_api.xml:585
+#: session_api.xml:571
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
@@ -1689,20 +1662,20 @@
"とで、これらの変更を永続化します。"
#. Tag: para
-#: session_api.xml:590
+#: session_api.xml:576
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr "<literal>saveOrUpdate()</literal> は以下のことを行います:"
#. Tag: para
-#: session_api.xml:594
+#: session_api.xml:580
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr ""
"オブジェクトがこのセッションで、すでに永続化されていれば、何もしません。"
#. Tag: para
-#: session_api.xml:599
+#: session_api.xml:585
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
@@ -1712,14 +1685,14 @@
"例外を投げます。"
#. Tag: para
-#: session_api.xml:604
+#: session_api.xml:590
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
"オブジェクトの識別子が値を持たないならば、 <literal>save()</literal> します。"
#. Tag: para
-#: session_api.xml:609
+#: session_api.xml:595
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
@@ -1729,7 +1702,7 @@
"トのための値である場合、そのオブジェクトを <literal>save()</literal> します。"
#. Tag: para
-#: session_api.xml:614
+#: session_api.xml:600
#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
@@ -1743,20 +1716,20 @@
"ある場合、そのオブジェクトを <literal>save()</literal> します。"
#. Tag: para
-#: session_api.xml:622
+#: session_api.xml:608
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr ""
"そうでない場合は、そのオブジェクトを <literal>update()</literal> します。"
#. Tag: para
-#: session_api.xml:626
+#: session_api.xml:612
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr "そして、 <literal>merge()</literal> は以下のように非常に異なります:"
#. Tag: para
-#: session_api.xml:630
+#: session_api.xml:616
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -1767,7 +1740,7 @@
"ば、引数で受け取ったオブジェクトの状態を永続化インスタンスにコピーします。"
#. Tag: para
-#: session_api.xml:636
+#: session_api.xml:622
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
@@ -1777,13 +1750,13 @@
"からそれをロードするか、あるいは、新しい永続化インスタンスを作成します。"
#. Tag: para
-#: session_api.xml:642
+#: session_api.xml:628
#, no-c-format
msgid "the persistent instance is returned"
msgstr "永続化インスタンスが返されます。"
#. Tag: para
-#: session_api.xml:646
+#: session_api.xml:632
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
@@ -1793,13 +1766,13 @@
"のままです。"
#. Tag: title
-#: session_api.xml:653
+#: session_api.xml:639
#, no-c-format
msgid "Deleting persistent objects"
msgstr "永続オブジェクトの削除"
#. Tag: para
-#: session_api.xml:655
+#: session_api.xml:641
#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
@@ -1813,13 +1786,13 @@
"transient にするものと考えるのが一番です。"
#. Tag: programlisting
-#: session_api.xml:660
+#: session_api.xml:646
#, fuzzy, no-c-format
msgid "sess.delete(cat);"
msgstr "sess.delete(cat);"
#. Tag: para
-#: session_api.xml:662
+#: session_api.xml:648
#, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
@@ -1833,13 +1806,13 @@
"ジェクトを削除したときに、子供オブジェクトを削除し忘れた場合です。"
#. Tag: title
-#: session_api.xml:670
+#: session_api.xml:656
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "異なる二つのデータストア間でのオブジェクトのレプリケーション"
#. Tag: para
-#: session_api.xml:672
+#: session_api.xml:658
#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
@@ -1850,7 +1823,7 @@
"生成せずにすむと便利な場合があります。"
#. Tag: programlisting
-#: session_api.xml:676
+#: session_api.xml:662
#, fuzzy, no-c-format
msgid ""
"//retrieve a cat from one database\n"
@@ -1882,7 +1855,7 @@
"session2.close();"
#. Tag: para
-#: session_api.xml:678
+#: session_api.xml:664
#, no-c-format
msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
@@ -1893,7 +1866,7 @@
"します。"
#. Tag: para
-#: session_api.xml:684
+#: session_api.xml:670
#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
@@ -1903,7 +1876,7 @@
"に存在するなら、そのオブジェクトを無視します。"
#. Tag: para
-#: session_api.xml:689
+#: session_api.xml:675
#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
@@ -1913,7 +1886,7 @@
"て上書きします。"
#. Tag: para
-#: session_api.xml:694
+#: session_api.xml:680
#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
@@ -1923,7 +1896,7 @@
"スに存在するなら、例外を投げます。"
#. Tag: para
-#: session_api.xml:700
+#: session_api.xml:686
#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
@@ -1935,7 +1908,7 @@
"きします。"
#. Tag: para
-#: session_api.xml:706
+#: session_api.xml:692
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1948,13 +1921,13 @@
"ンザクションのなかで加えられた変更のロールバックなどです。"
#. Tag: title
-#: session_api.xml:713
+#: session_api.xml:699
#, no-c-format
msgid "Flushing the Session"
msgstr "セッションのフラッシュ"
#. Tag: para
-#: session_api.xml:715
+#: session_api.xml:701
#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
@@ -1967,31 +1940,31 @@
"処理 <emphasis>flush</emphasis> は、デフォルトでは次のときに起こります。"
#. Tag: para
-#: session_api.xml:723
+#: session_api.xml:709
#, no-c-format
msgid "before some query executions"
msgstr "クエリを実行する前"
#. Tag: para
-#: session_api.xml:727
+#: session_api.xml:713
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr "<literal>org.hibernate.Transaction.commit()</literal> を実行したとき"
#. Tag: para
-#: session_api.xml:732
+#: session_api.xml:718
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "<literal>Session.flush()</literal> を実行したとき"
#. Tag: para
-#: session_api.xml:736
+#: session_api.xml:722
#, no-c-format
msgid "The SQL statements are issued in the following order:"
msgstr "SQL 文は以下の順番で発行されます。"
#. Tag: para
-#: session_api.xml:740
+#: session_api.xml:726
#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
@@ -2001,31 +1974,31 @@
"てセーブしたオブジェクトの順に実行していきます。"
#. Tag: para
-#: session_api.xml:745
+#: session_api.xml:731
#, no-c-format
msgid "all entity updates"
msgstr "すべてのエンティティの更新"
#. Tag: para
-#: session_api.xml:749
+#: session_api.xml:735
#, no-c-format
msgid "all collection deletions"
msgstr "すべてのコレクションの削除"
#. Tag: para
-#: session_api.xml:753
+#: session_api.xml:739
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr "すべてのコレクションの要素に対する削除、更新、挿入"
#. Tag: para
-#: session_api.xml:757
+#: session_api.xml:743
#, no-c-format
msgid "all collection insertions"
msgstr "すべてのコレクションの挿入"
#. Tag: para
-#: session_api.xml:761
+#: session_api.xml:747
#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
@@ -2035,7 +2008,7 @@
"使って削除したオブジェクトの順に実行していきます。"
#. Tag: para
-#: session_api.xml:766
+#: session_api.xml:752
#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
@@ -2045,7 +2018,7 @@
"は、それらがセーブされたときに挿入されます。)"
#. Tag: para
-#: session_api.xml:769
+#: session_api.xml:755
#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
@@ -2061,7 +2034,7 @@
"データや間違ったデータ返さないことを保証しています。"
#. Tag: para
-#: session_api.xml:776
+#: session_api.xml:762
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -2083,7 +2056,7 @@
"してください)。"
#. Tag: programlisting
-#: session_api.xml:786
+#: session_api.xml:772
#, fuzzy, no-c-format
msgid ""
"sess = sf.openSession();\n"
@@ -2117,7 +2090,7 @@
"sess.close();"
#. Tag: para
-#: session_api.xml:788
+#: session_api.xml:774
#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
@@ -2131,13 +2104,13 @@
"明します。"
#. Tag: title
-#: session_api.xml:795
+#: session_api.xml:781
#, no-c-format
msgid "Transitive persistence"
msgstr "連鎖的な永続化"
#. Tag: para
-#: session_api.xml:797
+#: session_api.xml:783
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
@@ -2149,7 +2122,7 @@
"は、親子関係を扱うケースです。以下の例を考えてみましょう:"
#. Tag: para
-#: session_api.xml:802
+#: session_api.xml:788
#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
@@ -2170,7 +2143,7 @@
"を共有できないので、データベースからその子供を削除します。"
#. Tag: para
-#: session_api.xml:812
+#: session_api.xml:798
#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
@@ -2190,7 +2163,7 @@
"よる永続化</emphasis> をデフォルトでは実行しません。"
#. Tag: para
-#: session_api.xml:820
+#: session_api.xml:806
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -2210,25 +2183,25 @@
"ばなりません。例えば、以下のようにします:"
#. Tag: programlisting
-#: session_api.xml:828
+#: session_api.xml:814
#, fuzzy, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist\"/>"
msgstr "<one-to-one name=\"person\" cascade=\"persist\"/>"
#. Tag: para
-#: session_api.xml:830
+#: session_api.xml:816
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr "カスケードスタイルは、組み合わせることができます:"
#. Tag: programlisting
-#: session_api.xml:832
+#: session_api.xml:818
#, fuzzy, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
msgstr "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
#. Tag: para
-#: session_api.xml:834
+#: session_api.xml:820
#, no-c-format
msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
@@ -2242,7 +2215,7 @@
"します。"
#. Tag: para
-#: session_api.xml:839
+#: session_api.xml:825
#, no-c-format
msgid ""
"In case you are using annotatons you probably have noticed the "
@@ -2253,7 +2226,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:848
+#: session_api.xml:834
#, no-c-format
msgid ""
"<literal>CascadeType.PERSIST</literal>: cascades the persist (create) "
@@ -2262,7 +2235,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:854
+#: session_api.xml:840
#, no-c-format
msgid ""
"<literal>CascadeType.MERGE</literal>: cascades the merge operation to "
@@ -2270,7 +2243,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:860
+#: session_api.xml:846
#, no-c-format
msgid ""
"<literal>CascadeType.REMOVE</literal>: cascades the remove operation to "
@@ -2278,7 +2251,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:865
+#: session_api.xml:851
#, no-c-format
msgid ""
"<literal>CascadeType.REFRESH:</literal> cascades the refresh operation to "
@@ -2286,7 +2259,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:870
+#: session_api.xml:856
#, no-c-format
msgid ""
"<literal>CascadeType.DETACH:</literal> cascades the detach operation to "
@@ -2294,13 +2267,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:875
+#: session_api.xml:861
#, fuzzy, no-c-format
msgid "<literal>CascadeType.ALL</literal>: all of the above"
msgstr "<literal>saveOrUpdate()</literal> は以下のことを行います:"
#. Tag: para
-#: session_api.xml:880
+#: session_api.xml:866
#, no-c-format
msgid ""
"CascadeType.ALL also covers Hibernate specific operations like save-update, "
@@ -2308,7 +2281,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:884
+#: session_api.xml:870
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -2325,13 +2298,13 @@
msgstr ""
#. Tag: title
-#: session_api.xml:897
+#: session_api.xml:883
#, no-c-format
msgid "<literal>@OneToMany</literal> with <literal>orphanRemoval</literal>"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:900
+#: session_api.xml:886
#, no-c-format
msgid ""
"@Entity \n"
@@ -2355,13 +2328,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:903
+#: session_api.xml:889
#, no-c-format
msgid "Recommendations:"
msgstr "おすすめ:"
#. Tag: para
-#: session_api.xml:907
+#: session_api.xml:893
#, fuzzy, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a many-to-one or many-to-"
@@ -2376,7 +2349,7 @@
"literal> 関連に対しては、カスケードが役に立つことがあります。"
#. Tag: para
-#: session_api.xml:915
+#: session_api.xml:901
#, fuzzy, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
@@ -2389,7 +2362,7 @@
"を <emphasis>ライフサイクルオブジェクト</emphasis> にします。"
#. Tag: para
-#: session_api.xml:923
+#: session_api.xml:909
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2403,7 +2376,7 @@
"literal> を使うことを考えましょう。"
#. Tag: para
-#: session_api.xml:931
+#: session_api.xml:917
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2416,7 +2389,7 @@
"のセーブ/更新/削除が、子のセーブ/更新/削除を引き起こす関係のことです。"
#. Tag: para
-#: session_api.xml:937
+#: session_api.xml:923
#, fuzzy, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
@@ -2435,7 +2408,7 @@
"なります:"
#. Tag: para
-#: session_api.xml:948
+#: session_api.xml:934
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
@@ -2445,7 +2418,7 @@
"<literal>persist()</literal> に渡されます。"
#. Tag: para
-#: session_api.xml:953
+#: session_api.xml:939
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
@@ -2455,7 +2428,7 @@
"literal> に渡されます。"
#. Tag: para
-#: session_api.xml:958
+#: session_api.xml:944
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
@@ -2467,7 +2440,7 @@
"<literal>saveOrUpdate()</literal> に渡されます。"
#. Tag: para
-#: session_api.xml:964
+#: session_api.xml:950
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
@@ -2477,7 +2450,7 @@
"<literal>saveOrUpdate()</literal> に渡されます。"
#. Tag: para
-#: session_api.xml:970
+#: session_api.xml:956
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
@@ -2487,7 +2460,7 @@
"す。"
#. Tag: para
-#: session_api.xml:975
+#: session_api.xml:961
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2501,7 +2474,7 @@
"きます。この場合、「親のない」子は削除されます。"
#. Tag: para
-#: session_api.xml:983
+#: session_api.xml:969
#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
@@ -2520,13 +2493,13 @@
"エンティティに伝播します。"
#. Tag: title
-#: session_api.xml:993
+#: session_api.xml:979
#, no-c-format
msgid "Using metadata"
msgstr "メタデータの使用"
#. Tag: para
-#: session_api.xml:995
+#: session_api.xml:981
#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
@@ -2545,7 +2518,7 @@
"るものです。"
#. Tag: para
-#: session_api.xml:1002
+#: session_api.xml:988
#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
@@ -2559,7 +2532,7 @@
"スタンスは、 <literal>SessionFactory</literal> から得られます。"
#. Tag: programlisting
-#: session_api.xml:1007
+#: session_api.xml:993
#, fuzzy, no-c-format
msgid ""
"Cat fritz = ......;\n"
@@ -2594,7 +2567,33 @@
" }\n"
"}"
+#, fuzzy
#~ msgid ""
+#~ "Hibernate does not offer its own API for direct execution of "
+#~ "<literal>UPDATE</literal> or <literal>DELETE</literal> statements. "
+#~ "Hibernate is a <emphasis>state management</emphasis> service, you do not "
+#~ "have to think in <emphasis>statements</emphasis> to use it. JDBC is a "
+#~ "perfect API for executing SQL statements, you can get a JDBC "
+#~ "<literal>Connection</literal> at any time by calling <literal>session."
+#~ "connection()</literal>. Furthermore, the notion of mass operations "
+#~ "conflicts with object/relational mapping for online transaction "
+#~ "processing-oriented applications. Future versions of Hibernate can, "
+#~ "however, provide special mass operation functions. See <xref linkend="
+#~ "\"batch\"/> for some possible batch operation tricks."
+#~ msgstr ""
+#~ "Hibernate は、 <literal>UPDATE</literal> 文や <literal>DELETE</literal> 文"
+#~ "を直接実行する API を用意していません。 Hibernate は、 <emphasis>ステート"
+#~ "マネージメント</emphasis> サービスであり、それを使うのに <emphasis>ステー"
+#~ "トメント</emphasis> のことを開発者が考える必要はありません。 JDBC は SQL "
+#~ "文を実行する完璧な API であり、 <literal>session.connection()</literal> を"
+#~ "呼ぶことでいつでも、 JDBC <literal>Connection</literal> を開発者は取得でき"
+#~ "ます。さらに、大量のデータ操作の考え方は、オンライントランザクション処理向"
+#~ "きアプリケーションのオブジェクト/リレーショナルマッピングと衝突します。し"
+#~ "かし、 Hibernate の今後のバージョンでは、大量データを処理する特別な機能を"
+#~ "提供するかもしれません。バッチ操作に利用できるいくつかの工夫については、 "
+#~ "<xref linkend=\"batch\"/> を参照してください。"
+
+#~ msgid ""
#~ "A special cascade style, <literal>delete-orphan</literal>, applies only "
#~ "to one-to-many associations, and indicates that the <literal>delete()</"
#~ "literal> operation should be applied to any child object that is removed "
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/session_api.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/session_api.pot 2010-07-21 05:39:40 UTC (rev 19988)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/session_api.pot 2010-07-21 05:44:34 UTC (rev 19989)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-20 21:02+0000\n"
+"POT-Creation-Date: 2010-07-21 05:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
@@ -783,32 +783,26 @@
msgid "Sometimes this programming model is inefficient, as it requires in the same session both an SQL <literal>SELECT</literal> to load an object and an SQL <literal>UPDATE</literal> to persist its updated state. Hibernate offers an alternate approach by using detached instances."
msgstr ""
-#. Tag: para
-#: session_api.xml:481
-#, no-c-format
-msgid "Hibernate does not offer its own API for direct execution of <literal>UPDATE</literal> or <literal>DELETE</literal> statements. Hibernate is a <emphasis>state management</emphasis> service, you do not have to think in <emphasis>statements</emphasis> to use it. JDBC is a perfect API for executing SQL statements, you can get a JDBC <literal>Connection</literal> at any time by calling <literal>session.connection()</literal>. Furthermore, the notion of mass operations conflicts with object/relational mapping for online transaction processing-oriented applications. Future versions of Hibernate can, however, provide special mass operation functions. See <xref linkend=\"batch\"/> for some possible batch operation tricks."
-msgstr ""
-
#. Tag: title
-#: session_api.xml:497
+#: session_api.xml:483
#, no-c-format
msgid "Modifying detached objects"
msgstr ""
#. Tag: para
-#: session_api.xml:499
+#: session_api.xml:485
#, no-c-format
msgid "Many applications need to retrieve an object in one transaction, send it to the UI layer for manipulation, then save the changes in a new transaction. Applications that use this kind of approach in a high-concurrency environment usually use versioned data to ensure isolation for the \"long\" unit of work."
msgstr ""
#. Tag: para
-#: session_api.xml:505
+#: session_api.xml:491
#, no-c-format
msgid "Hibernate supports this model by providing for reattachment of detached instances using the <literal>Session.update()</literal> or <literal>Session.merge()</literal> methods:"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:509
+#: session_api.xml:495
#, no-c-format
msgid ""
"// in the first session\n"
@@ -825,31 +819,31 @@
msgstr ""
#. Tag: para
-#: session_api.xml:511
+#: session_api.xml:497
#, no-c-format
msgid "If the <literal>Cat</literal> with identifier <literal>catId</literal> had already been loaded by <literal>secondSession</literal> when the application tried to reattach it, an exception would have been thrown."
msgstr ""
#. Tag: para
-#: session_api.xml:516
+#: session_api.xml:502
#, no-c-format
msgid "Use <literal>update()</literal> if you are certain that the session does not contain an already persistent instance with the same identifier. Use <literal>merge()</literal> if you want to merge your modifications at any time without consideration of the state of the session. In other words, <literal>update()</literal> is usually the first method you would call in a fresh session, ensuring that the reattachment of your detached instances is the first operation that is executed."
msgstr ""
#. Tag: para
-#: session_api.xml:524
+#: session_api.xml:510
#, no-c-format
msgid "The application should individually <literal>update()</literal> detached instances that are reachable from the given detached instance <emphasis>only</emphasis> if it wants their state to be updated. This can be automated using <emphasis>transitive persistence</emphasis>. See <xref linkend=\"objectstate-transitive\"/> for more information."
msgstr ""
#. Tag: para
-#: session_api.xml:530
+#: session_api.xml:516
#, no-c-format
msgid "The <literal>lock()</literal> method also allows an application to reassociate an object with a new session. However, the detached instance has to be unmodified."
msgstr ""
#. Tag: programlisting
-#: session_api.xml:534
+#: session_api.xml:520
#, no-c-format
msgid ""
"//just reassociate:\n"
@@ -861,31 +855,31 @@
msgstr ""
#. Tag: para
-#: session_api.xml:536
+#: session_api.xml:522
#, no-c-format
msgid "Note that <literal>lock()</literal> can be used with various <literal>LockMode</literal>s. See the API documentation and the chapter on transaction handling for more information. Reattachment is not the only usecase for <literal>lock()</literal>."
msgstr ""
#. Tag: para
-#: session_api.xml:541
+#: session_api.xml:527
#, no-c-format
msgid "Other models for long units of work are discussed in <xref linkend=\"transactions-optimistic\"/>."
msgstr ""
#. Tag: title
-#: session_api.xml:546
+#: session_api.xml:532
#, no-c-format
msgid "Automatic state detection"
msgstr ""
#. Tag: para
-#: session_api.xml:548
+#: session_api.xml:534
#, no-c-format
msgid "Hibernate users have requested a general purpose method that either saves a transient instance by generating a new identifier or updates/reattaches the detached instances associated with its current identifier. The <literal>saveOrUpdate()</literal> method implements this functionality."
msgstr ""
#. Tag: programlisting
-#: session_api.xml:554
+#: session_api.xml:540
#, no-c-format
msgid ""
"// in the first session\n"
@@ -901,157 +895,157 @@
msgstr ""
#. Tag: para
-#: session_api.xml:556
+#: session_api.xml:542
#, no-c-format
msgid "The usage and semantics of <literal>saveOrUpdate()</literal> seems to be confusing for new users. Firstly, so long as you are not trying to use instances from one session in another new session, you should not need to use <literal>update()</literal>, <literal>saveOrUpdate()</literal>, or <literal>merge()</literal>. Some whole applications will never use either of these methods."
msgstr ""
#. Tag: para
-#: session_api.xml:563
+#: session_api.xml:549
#, no-c-format
msgid "Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are used in the following scenario:"
msgstr ""
#. Tag: para
-#: session_api.xml:569
+#: session_api.xml:555
#, no-c-format
msgid "the application loads an object in the first session"
msgstr ""
#. Tag: para
-#: session_api.xml:573
+#: session_api.xml:559
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr ""
#. Tag: para
-#: session_api.xml:577
+#: session_api.xml:563
#, no-c-format
msgid "some modifications are made to the object"
msgstr ""
#. Tag: para
-#: session_api.xml:581
+#: session_api.xml:567
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr ""
#. Tag: para
-#: session_api.xml:585
+#: session_api.xml:571
#, no-c-format
msgid "the application persists these modifications by calling <literal>update()</literal> in a second session"
msgstr ""
#. Tag: para
-#: session_api.xml:590
+#: session_api.xml:576
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr ""
#. Tag: para
-#: session_api.xml:594
+#: session_api.xml:580
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr ""
#. Tag: para
-#: session_api.xml:599
+#: session_api.xml:585
#, no-c-format
msgid "if another object associated with the session has the same identifier, throw an exception"
msgstr ""
#. Tag: para
-#: session_api.xml:604
+#: session_api.xml:590
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
#. Tag: para
-#: session_api.xml:609
+#: session_api.xml:595
#, no-c-format
msgid "if the object's identifier has the value assigned to a newly instantiated object, <literal>save()</literal> it"
msgstr ""
#. Tag: para
-#: session_api.xml:614
+#: session_api.xml:600
#, no-c-format
msgid "if the object is versioned by a <literal><version></literal> or <literal><timestamp></literal>, and the version property value is the same value assigned to a newly instantiated object, <literal>save()</literal> it"
msgstr ""
#. Tag: para
-#: session_api.xml:622
+#: session_api.xml:608
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr ""
#. Tag: para
-#: session_api.xml:626
+#: session_api.xml:612
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr ""
#. Tag: para
-#: session_api.xml:630
+#: session_api.xml:616
#, no-c-format
msgid "if there is a persistent instance with the same identifier currently associated with the session, copy the state of the given object onto the persistent instance"
msgstr ""
#. Tag: para
-#: session_api.xml:636
+#: session_api.xml:622
#, no-c-format
msgid "if there is no persistent instance currently associated with the session, try to load it from the database, or create a new persistent instance"
msgstr ""
#. Tag: para
-#: session_api.xml:642
+#: session_api.xml:628
#, no-c-format
msgid "the persistent instance is returned"
msgstr ""
#. Tag: para
-#: session_api.xml:646
+#: session_api.xml:632
#, no-c-format
msgid "the given instance does not become associated with the session, it remains detached"
msgstr ""
#. Tag: title
-#: session_api.xml:653
+#: session_api.xml:639
#, no-c-format
msgid "Deleting persistent objects"
msgstr ""
#. Tag: para
-#: session_api.xml:655
+#: session_api.xml:641
#, no-c-format
msgid "<literal>Session.delete()</literal> will remove an object's state from the database. Your application, however, can still hold a reference to a deleted object. It is best to think of <literal>delete()</literal> as making a persistent instance, transient."
msgstr ""
#. Tag: programlisting
-#: session_api.xml:660
+#: session_api.xml:646
#, no-c-format
msgid "sess.delete(cat);"
msgstr ""
#. Tag: para
-#: session_api.xml:662
+#: session_api.xml:648
#, no-c-format
msgid "You can delete objects in any order, without risk of foreign key constraint violations. It is still possible to violate a <literal>NOT NULL</literal> constraint on a foreign key column by deleting objects in the wrong order, e.g. if you delete the parent, but forget to delete the children."
msgstr ""
#. Tag: title
-#: session_api.xml:670
+#: session_api.xml:656
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr ""
#. Tag: para
-#: session_api.xml:672
+#: session_api.xml:658
#, no-c-format
msgid "It is sometimes useful to be able to take a graph of persistent instances and make them persistent in a different datastore, without regenerating identifier values."
msgstr ""
#. Tag: programlisting
-#: session_api.xml:676
+#: session_api.xml:662
#, no-c-format
msgid ""
"//retrieve a cat from one database\n"
@@ -1070,133 +1064,133 @@
msgstr ""
#. Tag: para
-#: session_api.xml:678
+#: session_api.xml:664
#, no-c-format
msgid "The <literal>ReplicationMode</literal> determines how <literal>replicate()</literal> will deal with conflicts with existing rows in the database:"
msgstr ""
#. Tag: para
-#: session_api.xml:684
+#: session_api.xml:670
#, no-c-format
msgid "<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is an existing database row with the same identifier"
msgstr ""
#. Tag: para
-#: session_api.xml:689
+#: session_api.xml:675
#, no-c-format
msgid "<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing database row with the same identifier"
msgstr ""
#. Tag: para
-#: session_api.xml:694
+#: session_api.xml:680
#, no-c-format
msgid "<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there is an existing database row with the same identifier"
msgstr ""
#. Tag: para
-#: session_api.xml:700
+#: session_api.xml:686
#, no-c-format
msgid "<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its version number is earlier than the version number of the object, or ignore the object otherwise"
msgstr ""
#. Tag: para
-#: session_api.xml:706
+#: session_api.xml:692
#, no-c-format
msgid "Usecases for this feature include reconciling data entered into different database instances, upgrading system configuration information during product upgrades, rolling back changes made during non-ACID transactions and more."
msgstr ""
#. Tag: title
-#: session_api.xml:713
+#: session_api.xml:699
#, no-c-format
msgid "Flushing the Session"
msgstr ""
#. Tag: para
-#: session_api.xml:715
+#: session_api.xml:701
#, no-c-format
msgid "Sometimes the <literal>Session</literal> will execute the SQL statements needed to synchronize the JDBC connection's state with the state of objects held in memory. This process, called <emphasis>flush</emphasis>, occurs by default at the following points:"
msgstr ""
#. Tag: para
-#: session_api.xml:723
+#: session_api.xml:709
#, no-c-format
msgid "before some query executions"
msgstr ""
#. Tag: para
-#: session_api.xml:727
+#: session_api.xml:713
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:732
+#: session_api.xml:718
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:736
+#: session_api.xml:722
#, no-c-format
msgid "The SQL statements are issued in the following order:"
msgstr ""
#. Tag: para
-#: session_api.xml:740
+#: session_api.xml:726
#, no-c-format
msgid "all entity insertions in the same order the corresponding objects were saved using <literal>Session.save()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:745
+#: session_api.xml:731
#, no-c-format
msgid "all entity updates"
msgstr ""
#. Tag: para
-#: session_api.xml:749
+#: session_api.xml:735
#, no-c-format
msgid "all collection deletions"
msgstr ""
#. Tag: para
-#: session_api.xml:753
+#: session_api.xml:739
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr ""
#. Tag: para
-#: session_api.xml:757
+#: session_api.xml:743
#, no-c-format
msgid "all collection insertions"
msgstr ""
#. Tag: para
-#: session_api.xml:761
+#: session_api.xml:747
#, no-c-format
msgid "all entity deletions in the same order the corresponding objects were deleted using <literal>Session.delete()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:766
+#: session_api.xml:752
#, no-c-format
msgid "An exception is that objects using <literal>native</literal> ID generation are inserted when they are saved."
msgstr ""
#. Tag: para
-#: session_api.xml:769
+#: session_api.xml:755
#, no-c-format
msgid "Except when you explicitly <literal>flush()</literal>, there are absolutely no guarantees about <emphasis>when</emphasis> the <literal>Session</literal> executes the JDBC calls, only the <emphasis>order</emphasis> in which they are executed. However, Hibernate does guarantee that the <literal>Query.list(..)</literal> will never return stale or incorrect data."
msgstr ""
#. Tag: para
-#: session_api.xml:776
+#: session_api.xml:762
#, no-c-format
msgid "It is possible to change the default behavior so that flush occurs less frequently. The <literal>FlushMode</literal> class defines three different modes: only flush at commit time when the Hibernate <literal>Transaction</literal> API is used, flush automatically using the explained routine, or never flush unless <literal>flush()</literal> is called explicitly. The last mode is useful for long running units of work, where a <literal>Session</literal> is kept open and disconnected for a long time (see <xref linkend=\"transactions-optimistic-longsession\"/>)."
msgstr ""
#. Tag: programlisting
-#: session_api.xml:786
+#: session_api.xml:772
#, no-c-format
msgid ""
"sess = sf.openSession();\n"
@@ -1216,127 +1210,127 @@
msgstr ""
#. Tag: para
-#: session_api.xml:788
+#: session_api.xml:774
#, no-c-format
msgid "During flush, an exception might occur (e.g. if a DML operation violates a constraint). Since handling exceptions involves some understanding of Hibernate's transactional behavior, we discuss it in <xref linkend=\"transactions\"/>."
msgstr ""
#. Tag: title
-#: session_api.xml:795
+#: session_api.xml:781
#, no-c-format
msgid "Transitive persistence"
msgstr ""
#. Tag: para
-#: session_api.xml:797
+#: session_api.xml:783
#, no-c-format
msgid "It is quite cumbersome to save, delete, or reattach individual objects, especially if you deal with a graph of associated objects. A common case is a parent/child relationship. Consider the following example:"
msgstr ""
#. Tag: para
-#: session_api.xml:802
+#: session_api.xml:788
#, no-c-format
msgid "If the children in a parent/child relationship would be value typed (e.g. a collection of addresses or strings), their life cycle would depend on the parent and no further action would be required for convenient \"cascading\" of state changes. When the parent is saved, the value-typed child objects are saved and when the parent is deleted, the children will be deleted, etc. This works for operations such as the removal of a child from the collection. Since value-typed objects cannot have shared references, Hibernate will detect this and delete the child from the database."
msgstr ""
#. Tag: para
-#: session_api.xml:812
+#: session_api.xml:798
#, no-c-format
msgid "Now consider the same scenario with parent and child objects being entities, not value-types (e.g. categories and items, or parent and child cats). Entities have their own life cycle and support shared references. Removing an entity from the collection does not mean it can be deleted), and there is by default no cascading of state from one entity to any other associated entities. Hibernate does not implement <emphasis>persistence by reachability</emphasis> by default."
msgstr ""
#. Tag: para
-#: session_api.xml:820
+#: session_api.xml:806
#, no-c-format
msgid "For each basic operation of the Hibernate session - including <literal>persist(), merge(), saveOrUpdate(), delete(), lock(), refresh(), evict(), replicate()</literal> - there is a corresponding cascade style. Respectively, the cascade styles are named <literal>create, merge, save-update, delete, lock, refresh, evict, replicate</literal>. If you want an operation to be cascaded along an association, you must indicate that in the mapping document. For example:"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:828
+#: session_api.xml:814
#, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist\"/>"
msgstr ""
#. Tag: para
-#: session_api.xml:830
+#: session_api.xml:816
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:832
+#: session_api.xml:818
#, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
msgstr ""
#. Tag: para
-#: session_api.xml:834
+#: session_api.xml:820
#, no-c-format
msgid "You can even use <literal>cascade=\"all\"</literal> to specify that <emphasis>all</emphasis> operations should be cascaded along the association. The default <literal>cascade=\"none\"</literal> specifies that no operations are to be cascaded."
msgstr ""
#. Tag: para
-#: session_api.xml:839
+#: session_api.xml:825
#, no-c-format
msgid "In case you are using annotatons you probably have noticed the <literal>cascade</literal> attribute taking an array of <classname>CascadeType</classname> as a value. The cascade concept in JPA is very is similar to the transitive persistence and cascading of operations as described above, but with slightly different semantics and cascading types:"
msgstr ""
#. Tag: para
-#: session_api.xml:848
+#: session_api.xml:834
#, no-c-format
msgid "<literal>CascadeType.PERSIST</literal>: cascades the persist (create) operation to associated entities persist() is called or if the entity is managed"
msgstr ""
#. Tag: para
-#: session_api.xml:854
+#: session_api.xml:840
#, no-c-format
msgid "<literal>CascadeType.MERGE</literal>: cascades the merge operation to associated entities if merge() is called or if the entity is managed"
msgstr ""
#. Tag: para
-#: session_api.xml:860
+#: session_api.xml:846
#, no-c-format
msgid "<literal>CascadeType.REMOVE</literal>: cascades the remove operation to associated entities if delete() is called"
msgstr ""
#. Tag: para
-#: session_api.xml:865
+#: session_api.xml:851
#, no-c-format
msgid "<literal>CascadeType.REFRESH:</literal> cascades the refresh operation to associated entities if refresh() is called"
msgstr ""
#. Tag: para
-#: session_api.xml:870
+#: session_api.xml:856
#, no-c-format
msgid "<literal>CascadeType.DETACH:</literal> cascades the detach operation to associated entities if detach() is called"
msgstr ""
#. Tag: para
-#: session_api.xml:875
+#: session_api.xml:861
#, no-c-format
msgid "<literal>CascadeType.ALL</literal>: all of the above"
msgstr ""
#. Tag: para
-#: session_api.xml:880
+#: session_api.xml:866
#, no-c-format
msgid "CascadeType.ALL also covers Hibernate specific operations like save-update, lock etc..."
msgstr ""
#. Tag: para
-#: session_api.xml:884
+#: session_api.xml:870
#, no-c-format
msgid "A special cascade style, <literal>delete-orphan</literal>, applies only to one-to-many associations, and indicates that the <literal>delete()</literal> operation should be applied to any child object that is removed from the association. Using annotations there is no <literal>CascadeType.DELETE-ORPHAN</literal> equivalent. Instead you can use the attribute <literal>orphanRemoval as seen in </literal><xref linkend=\"example-one-to-many-with-orphan-removal\"/>. If an entity is removed from a <classname>@OneToMany</classname> collection or an associated entity is dereferenced from a <classname>@OneToOne</classname> association, this associated entity can be marked for deletion if <literal>orphanRemoval</literal> is set to true."
msgstr ""
#. Tag: title
-#: session_api.xml:897
+#: session_api.xml:883
#, no-c-format
msgid "<literal>@OneToMany</literal> with <literal>orphanRemoval</literal>"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:900
+#: session_api.xml:886
#, no-c-format
msgid ""
"@Entity \n"
@@ -1360,103 +1354,103 @@
msgstr ""
#. Tag: para
-#: session_api.xml:903
+#: session_api.xml:889
#, no-c-format
msgid "Recommendations:"
msgstr ""
#. Tag: para
-#: session_api.xml:907
+#: session_api.xml:893
#, no-c-format
msgid "It does not usually make sense to enable cascade on a many-to-one or many-to-many association. In fact the <literal>@ManyToOne</literal> and <literal>@ManyToMany</literal> don't even offer a <literal>orphanRemoval</literal> attribute. Cascading is often useful for one-to-one and one-to-many associations."
msgstr ""
#. Tag: para
-#: session_api.xml:915
+#: session_api.xml:901
#, no-c-format
msgid "If the child object's lifespan is bounded by the lifespan of the parent object, make it a <emphasis>life cycle object</emphasis> by specifying <literal>cascade=\"all,delete-orphan\"(<literal>@OneToMany(cascade=CascadeType.ALL, orphanRemoval=true)</literal>)</literal>."
msgstr ""
#. Tag: para
-#: session_api.xml:923
+#: session_api.xml:909
#, no-c-format
msgid "Otherwise, you might not need cascade at all. But if you think that you will often be working with the parent and children together in the same transaction, and you want to save yourself some typing, consider using <literal>cascade=\"persist,merge,save-update\"</literal>."
msgstr ""
#. Tag: para
-#: session_api.xml:931
+#: session_api.xml:917
#, no-c-format
msgid "Mapping an association (either a single valued association, or a collection) with <literal>cascade=\"all\"</literal> marks the association as a <emphasis>parent/child</emphasis> style relationship where save/update/delete of the parent results in save/update/delete of the child or children."
msgstr ""
#. Tag: para
-#: session_api.xml:937
+#: session_api.xml:923
#, no-c-format
msgid "Furthermore, a mere reference to a child from a persistent parent will result in save/update of the child. This metaphor is incomplete, however. A child which becomes unreferenced by its parent is <emphasis>not</emphasis> automatically deleted, except in the case of a one-to-many association mapped with <literal>cascade=\"delete-orphan\"</literal>. The precise semantics of cascading operations for a parent/child relationship are as follows:"
msgstr ""
#. Tag: para
-#: session_api.xml:948
+#: session_api.xml:934
#, no-c-format
msgid "If a parent is passed to <literal>persist()</literal>, all children are passed to <literal>persist()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:953
+#: session_api.xml:939
#, no-c-format
msgid "If a parent is passed to <literal>merge()</literal>, all children are passed to <literal>merge()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:958
+#: session_api.xml:944
#, no-c-format
msgid "If a parent is passed to <literal>save()</literal>, <literal>update()</literal> or <literal>saveOrUpdate()</literal>, all children are passed to <literal>saveOrUpdate()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:964
+#: session_api.xml:950
#, no-c-format
msgid "If a transient or detached child becomes referenced by a persistent parent, it is passed to <literal>saveOrUpdate()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:970
+#: session_api.xml:956
#, no-c-format
msgid "If a parent is deleted, all children are passed to <literal>delete()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:975
+#: session_api.xml:961
#, no-c-format
msgid "If a child is dereferenced by a persistent parent, <emphasis>nothing special happens</emphasis> - the application should explicitly delete the child if necessary - unless <literal>cascade=\"delete-orphan\"</literal>, in which case the \"orphaned\" child is deleted."
msgstr ""
#. Tag: para
-#: session_api.xml:983
+#: session_api.xml:969
#, no-c-format
msgid "Finally, note that cascading of operations can be applied to an object graph at <emphasis>call time</emphasis> or at <emphasis>flush time</emphasis>. All operations, if enabled, are cascaded to associated entities reachable when the operation is executed. However, <literal>save-update</literal> and <literal>delete-orphan</literal> are transitive for all associated entities reachable during flush of the <literal>Session</literal>."
msgstr ""
#. Tag: title
-#: session_api.xml:993
+#: session_api.xml:979
#, no-c-format
msgid "Using metadata"
msgstr ""
#. Tag: para
-#: session_api.xml:995
+#: session_api.xml:981
#, no-c-format
msgid "Hibernate requires a rich meta-level model of all entity and value types. This model can be useful to the application itself. For example, the application might use Hibernate's metadata to implement a \"smart\" deep-copy algorithm that understands which objects should be copied (eg. mutable value types) and which objects that should not (e.g. immutable value types and, possibly, associated entities)."
msgstr ""
#. Tag: para
-#: session_api.xml:1002
+#: session_api.xml:988
#, no-c-format
msgid "Hibernate exposes metadata via the <literal>ClassMetadata</literal> and <literal>CollectionMetadata</literal> interfaces and the <literal>Type</literal> hierarchy. Instances of the metadata interfaces can be obtained from the <literal>SessionFactory</literal>."
msgstr ""
#. Tag: programlisting
-#: session_api.xml:1007
+#: session_api.xml:993
#, no-c-format
msgid ""
"Cat fritz = ......;\n"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/session_api.po 2010-07-21 05:39:40 UTC (rev 19988)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/session_api.po 2010-07-21 05:44:34 UTC (rev 19989)
@@ -108,7 +108,7 @@
msgstr ""
"Project-Id-Version: session_api\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-20 21:02+0000\n"
+"POT-Creation-Date: 2010-07-21 05:43+0000\n"
"PO-Revision-Date: 2010-03-19 10:25+1000\n"
"Last-Translator: \n"
"Language-Team: <en(a)li.org>\n"
@@ -1333,42 +1333,14 @@
"sessão. Por isso, o Hibernate oferece uma abordagem alternativa, usando "
"instâncias desanexadas."
-#. Tag: para
-#: session_api.xml:481
-#, fuzzy, no-c-format
-msgid ""
-"Hibernate does not offer its own API for direct execution of "
-"<literal>UPDATE</literal> or <literal>DELETE</literal> statements. Hibernate "
-"is a <emphasis>state management</emphasis> service, you do not have to think "
-"in <emphasis>statements</emphasis> to use it. JDBC is a perfect API for "
-"executing SQL statements, you can get a JDBC <literal>Connection</literal> "
-"at any time by calling <literal>session.connection()</literal>. Furthermore, "
-"the notion of mass operations conflicts with object/relational mapping for "
-"online transaction processing-oriented applications. Future versions of "
-"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
-msgstr ""
-"Note que o Hibernate não oferece seu próprio API para execução direta de "
-"instruções <literal>UPDATE</literal> ou <literal>DELETE</literal>. O "
-"Hibernate é um serviço de <emphasis>gerenciamento de estado</emphasis> que "
-"você nem precisa se preocupar com <emphasis>instruções</emphasis> para "
-"utilizá-lo. O JDBC é um API perfeito para executar instruções SQL, você pode "
-"ter uma <literal>Connection</literal> JDBC a qualquer momento, chamando "
-"<literal>session.connection()</literal>. Além disso, a noção de operações em "
-"massa conflitua com o mapeamento de objeto/relacional para aplicativos de "
-"transações online com processamento. No entanto, versões futuras do "
-"Hibernate poderão oferecer funções especiais de operação em massa. Veja "
-"<xref linkend=\"batch\" /> para alguns possíveis truques de operação em "
-"lote. "
-
#. Tag: title
-#: session_api.xml:497
+#: session_api.xml:483
#, no-c-format
msgid "Modifying detached objects"
msgstr "Modificando objetos desacoplados"
#. Tag: para
-#: session_api.xml:499
+#: session_api.xml:485
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1384,7 +1356,7 @@
"durante a \"longa\" unidade de trabalho."
#. Tag: para
-#: session_api.xml:505
+#: session_api.xml:491
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
@@ -1396,7 +1368,7 @@
"merge()</literal>:"
#. Tag: programlisting
-#: session_api.xml:509
+#: session_api.xml:495
#, no-c-format
msgid ""
"// in the first session\n"
@@ -1413,7 +1385,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:511
+#: session_api.xml:497
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
@@ -1425,7 +1397,7 @@
"aplicação tentou re-acoplá-lo, teria surgido uma exceção."
#. Tag: para
-#: session_api.xml:516
+#: session_api.xml:502
#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
@@ -1445,7 +1417,7 @@
"executada. "
#. Tag: para
-#: session_api.xml:524
+#: session_api.xml:510
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
@@ -1462,7 +1434,7 @@
"para maiores informações. "
#. Tag: para
-#: session_api.xml:530
+#: session_api.xml:516
#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
@@ -1474,7 +1446,7 @@
"não pode ser modificada."
#. Tag: programlisting
-#: session_api.xml:534
+#: session_api.xml:520
#, no-c-format
msgid ""
"//just reassociate:\n"
@@ -1486,7 +1458,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:536
+#: session_api.xml:522
#, no-c-format
msgid ""
"Note that <literal>lock()</literal> can be used with various "
@@ -1500,7 +1472,7 @@
"único caso de uso para <literal>lock()</literal>. "
#. Tag: para
-#: session_api.xml:541
+#: session_api.xml:527
#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
@@ -1510,13 +1482,13 @@
"linkend=\"transactions-optimistic\" />."
#. Tag: title
-#: session_api.xml:546
+#: session_api.xml:532
#, no-c-format
msgid "Automatic state detection"
msgstr "Detecção automática de estado"
#. Tag: para
-#: session_api.xml:548
+#: session_api.xml:534
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1530,7 +1502,7 @@
"O método <literal>saveOrUpdate()</literal> implementa esta funcionalidade."
#. Tag: programlisting
-#: session_api.xml:554
+#: session_api.xml:540
#, no-c-format
msgid ""
"// in the first session\n"
@@ -1548,7 +1520,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:556
+#: session_api.xml:542
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1566,7 +1538,7 @@
"métodos."
#. Tag: para
-#: session_api.xml:563
+#: session_api.xml:549
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
@@ -1576,31 +1548,31 @@
"literal>são utilizados nos seguintes cenários:"
#. Tag: para
-#: session_api.xml:569
+#: session_api.xml:555
#, no-c-format
msgid "the application loads an object in the first session"
msgstr "a aplicação carrega um objeto na primeira sessão"
#. Tag: para
-#: session_api.xml:573
+#: session_api.xml:559
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr "o objeto é passado para a camada UI"
#. Tag: para
-#: session_api.xml:577
+#: session_api.xml:563
#, no-c-format
msgid "some modifications are made to the object"
msgstr "algumas modificações são feitas ao objeto"
#. Tag: para
-#: session_api.xml:581
+#: session_api.xml:567
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "o objeto é retornado à camada lógica de negócios"
#. Tag: para
-#: session_api.xml:585
+#: session_api.xml:571
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
@@ -1610,19 +1582,19 @@
"literal> em uma segunda sessão."
#. Tag: para
-#: session_api.xml:590
+#: session_api.xml:576
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr "<literal>saveOrUpdate()</literal> faz o seguinte:"
#. Tag: para
-#: session_api.xml:594
+#: session_api.xml:580
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr "se o objeto já estiver persistente nesta sessão, não faça nada"
#. Tag: para
-#: session_api.xml:599
+#: session_api.xml:585
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
@@ -1632,7 +1604,7 @@
"uma exceção"
#. Tag: para
-#: session_api.xml:604
+#: session_api.xml:590
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
@@ -1640,7 +1612,7 @@
"literal> "
#. Tag: para
-#: session_api.xml:609
+#: session_api.xml:595
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
@@ -1650,7 +1622,7 @@
"recentemente instanciado, <literal>salve-o()</literal> "
#. Tag: para
-#: session_api.xml:614
+#: session_api.xml:600
#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
@@ -1664,19 +1636,19 @@
"</literal> o mesmo"
#. Tag: para
-#: session_api.xml:622
+#: session_api.xml:608
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr "do contrário <literal>atualize()</literal> o objeto"
#. Tag: para
-#: session_api.xml:626
+#: session_api.xml:612
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr "e a <literal>mesclagem()</literal> é bastante diferente:"
#. Tag: para
-#: session_api.xml:630
+#: session_api.xml:616
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -1688,7 +1660,7 @@
"persistente."
#. Tag: para
-#: session_api.xml:636
+#: session_api.xml:622
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
@@ -1699,13 +1671,13 @@
"persistente"
#. Tag: para
-#: session_api.xml:642
+#: session_api.xml:628
#, no-c-format
msgid "the persistent instance is returned"
msgstr "a instância persistente é retornada"
#. Tag: para
-#: session_api.xml:646
+#: session_api.xml:632
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
@@ -1715,13 +1687,13 @@
"desanexada"
#. Tag: title
-#: session_api.xml:653
+#: session_api.xml:639
#, no-c-format
msgid "Deleting persistent objects"
msgstr "Apagando objetos persistentes"
#. Tag: para
-#: session_api.xml:655
+#: session_api.xml:641
#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
@@ -1735,13 +1707,13 @@
"uma instância persistente se tornar transiente. "
#. Tag: programlisting
-#: session_api.xml:660
+#: session_api.xml:646
#, no-c-format
msgid "sess.delete(cat);"
msgstr ""
#. Tag: para
-#: session_api.xml:662
+#: session_api.xml:648
#, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
@@ -1756,13 +1728,13 @@
"filho. "
#. Tag: title
-#: session_api.xml:670
+#: session_api.xml:656
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "Replicando objeto entre dois armazenamentos de dados diferentes."
#. Tag: para
-#: session_api.xml:672
+#: session_api.xml:658
#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
@@ -1774,7 +1746,7 @@
"novamente valores de identificador. "
#. Tag: programlisting
-#: session_api.xml:676
+#: session_api.xml:662
#, no-c-format
msgid ""
"//retrieve a cat from one database\n"
@@ -1793,7 +1765,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:678
+#: session_api.xml:664
#, no-c-format
msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
@@ -1803,7 +1775,7 @@
"literal> irá lidar com conflitos em linhas existentes no banco de dados: "
#. Tag: para
-#: session_api.xml:684
+#: session_api.xml:670
#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
@@ -1813,7 +1785,7 @@
"linha de banco de dados existente com o mesmo identificador."
#. Tag: para
-#: session_api.xml:689
+#: session_api.xml:675
#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
@@ -1823,7 +1795,7 @@
"de dados existente com um mesmo identificador."
#. Tag: para
-#: session_api.xml:694
+#: session_api.xml:680
#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
@@ -1833,7 +1805,7 @@
"uma linha de banco de dados existente com o mesmo identificador. "
#. Tag: para
-#: session_api.xml:700
+#: session_api.xml:686
#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
@@ -1845,7 +1817,7 @@
"ignore o objeto."
#. Tag: para
-#: session_api.xml:706
+#: session_api.xml:692
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1859,13 +1831,13 @@
"durante transações não ACID entre outras funções."
#. Tag: title
-#: session_api.xml:713
+#: session_api.xml:699
#, no-c-format
msgid "Flushing the Session"
msgstr "Limpando a Sessão"
#. Tag: para
-#: session_api.xml:715
+#: session_api.xml:701
#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
@@ -1879,31 +1851,31 @@
"ocorre por padrão nos seguintes pontos: "
#. Tag: para
-#: session_api.xml:723
+#: session_api.xml:709
#, no-c-format
msgid "before some query executions"
msgstr "antes de algumas execuções de consultas"
#. Tag: para
-#: session_api.xml:727
+#: session_api.xml:713
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr "a partir de<literal>org.hibernate.Transaction.commit()</literal>"
#. Tag: para
-#: session_api.xml:732
+#: session_api.xml:718
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "a partir de <literal>Session.flush()</literal>"
#. Tag: para
-#: session_api.xml:736
+#: session_api.xml:722
#, no-c-format
msgid "The SQL statements are issued in the following order:"
msgstr "As instruções SQL são editadas na seguinte ordem:"
#. Tag: para
-#: session_api.xml:740
+#: session_api.xml:726
#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
@@ -1913,31 +1885,31 @@
"correspondentes foram salvos usando <literal>Session.save()</literal> "
#. Tag: para
-#: session_api.xml:745
+#: session_api.xml:731
#, no-c-format
msgid "all entity updates"
msgstr "todas as atualizações de entidades"
#. Tag: para
-#: session_api.xml:749
+#: session_api.xml:735
#, no-c-format
msgid "all collection deletions"
msgstr "todas as deleções de coleções"
#. Tag: para
-#: session_api.xml:753
+#: session_api.xml:739
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr "todas as deleções, atualizações e inserções de elementos de coleção."
#. Tag: para
-#: session_api.xml:757
+#: session_api.xml:743
#, no-c-format
msgid "all collection insertions"
msgstr "todas as inserções de coleção"
#. Tag: para
-#: session_api.xml:761
+#: session_api.xml:747
#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
@@ -1947,7 +1919,7 @@
"foram deletados usando <literal>Session.delete()</literal> "
#. Tag: para
-#: session_api.xml:766
+#: session_api.xml:752
#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
@@ -1957,7 +1929,7 @@
"literal> é inserido quando salvo."
#. Tag: para
-#: session_api.xml:769
+#: session_api.xml:755
#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
@@ -1974,7 +1946,7 @@
"retornará dados errados. "
#. Tag: para
-#: session_api.xml:776
+#: session_api.xml:762
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -1997,7 +1969,7 @@
"optimistic-longsession\"/>). "
#. Tag: programlisting
-#: session_api.xml:786
+#: session_api.xml:772
#, no-c-format
msgid ""
"sess = sf.openSession();\n"
@@ -2017,7 +1989,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:788
+#: session_api.xml:774
#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
@@ -2031,13 +2003,13 @@
"isso em <xref linkend=\"transactions\" />."
#. Tag: title
-#: session_api.xml:795
+#: session_api.xml:781
#, no-c-format
msgid "Transitive persistence"
msgstr "Persistência Transitiva"
#. Tag: para
-#: session_api.xml:797
+#: session_api.xml:783
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
@@ -2049,7 +2021,7 @@
"um relacionamento pai/filho. Considere o seguinte exemplo: "
#. Tag: para
-#: session_api.xml:802
+#: session_api.xml:788
#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
@@ -2071,7 +2043,7 @@
"deletar o filho do banco de dados. "
#. Tag: para
-#: session_api.xml:812
+#: session_api.xml:798
#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
@@ -2091,7 +2063,7 @@
"<emphasis>persistência por alcance</emphasis> por padrão. "
#. Tag: para
-#: session_api.xml:820
+#: session_api.xml:806
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -2111,25 +2083,25 @@
"indicar isto no documento de mapeamento. Por exemplo:"
#. Tag: programlisting
-#: session_api.xml:828
+#: session_api.xml:814
#, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist\"/>"
msgstr ""
#. Tag: para
-#: session_api.xml:830
+#: session_api.xml:816
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr "Estilo cascata pode ser combinado:"
#. Tag: programlisting
-#: session_api.xml:832
+#: session_api.xml:818
#, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
msgstr ""
#. Tag: para
-#: session_api.xml:834
+#: session_api.xml:820
#, no-c-format
msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
@@ -2143,7 +2115,7 @@
"nenhuma operação deve estar em cascata. "
#. Tag: para
-#: session_api.xml:839
+#: session_api.xml:825
#, no-c-format
msgid ""
"In case you are using annotatons you probably have noticed the "
@@ -2154,7 +2126,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:848
+#: session_api.xml:834
#, no-c-format
msgid ""
"<literal>CascadeType.PERSIST</literal>: cascades the persist (create) "
@@ -2163,7 +2135,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:854
+#: session_api.xml:840
#, no-c-format
msgid ""
"<literal>CascadeType.MERGE</literal>: cascades the merge operation to "
@@ -2171,7 +2143,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:860
+#: session_api.xml:846
#, no-c-format
msgid ""
"<literal>CascadeType.REMOVE</literal>: cascades the remove operation to "
@@ -2179,7 +2151,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:865
+#: session_api.xml:851
#, no-c-format
msgid ""
"<literal>CascadeType.REFRESH:</literal> cascades the refresh operation to "
@@ -2187,7 +2159,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:870
+#: session_api.xml:856
#, no-c-format
msgid ""
"<literal>CascadeType.DETACH:</literal> cascades the detach operation to "
@@ -2195,13 +2167,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:875
+#: session_api.xml:861
#, fuzzy, no-c-format
msgid "<literal>CascadeType.ALL</literal>: all of the above"
msgstr "<literal>saveOrUpdate()</literal> faz o seguinte:"
#. Tag: para
-#: session_api.xml:880
+#: session_api.xml:866
#, no-c-format
msgid ""
"CascadeType.ALL also covers Hibernate specific operations like save-update, "
@@ -2209,7 +2181,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:884
+#: session_api.xml:870
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -2226,13 +2198,13 @@
msgstr ""
#. Tag: title
-#: session_api.xml:897
+#: session_api.xml:883
#, no-c-format
msgid "<literal>@OneToMany</literal> with <literal>orphanRemoval</literal>"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:900
+#: session_api.xml:886
#, no-c-format
msgid ""
"@Entity \n"
@@ -2256,13 +2228,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:903
+#: session_api.xml:889
#, no-c-format
msgid "Recommendations:"
msgstr "Recomendações:"
#. Tag: para
-#: session_api.xml:907
+#: session_api.xml:893
#, fuzzy, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a many-to-one or many-to-"
@@ -2277,7 +2249,7 @@
"<literal><one-to-many></literal>."
#. Tag: para
-#: session_api.xml:915
+#: session_api.xml:901
#, fuzzy, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
@@ -2290,7 +2262,7 @@
"especificando um <literal>cascade=\"all,delete-orphan\"</literal>."
#. Tag: para
-#: session_api.xml:923
+#: session_api.xml:909
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2304,7 +2276,7 @@
"\"persistir,mesclar,salvar-atualizar\"</literal>."
#. Tag: para
-#: session_api.xml:931
+#: session_api.xml:917
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2319,7 +2291,7 @@
"filho(s)."
#. Tag: para
-#: session_api.xml:937
+#: session_api.xml:923
#, fuzzy, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
@@ -2339,7 +2311,7 @@
"pai/filho, são como as que se seguem: "
#. Tag: para
-#: session_api.xml:948
+#: session_api.xml:934
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
@@ -2349,7 +2321,7 @@
"passados para <literal>persist()</literal>"
#. Tag: para
-#: session_api.xml:953
+#: session_api.xml:939
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
@@ -2359,7 +2331,7 @@
"passados para <literal>merge()</literal>"
#. Tag: para
-#: session_api.xml:958
+#: session_api.xml:944
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
@@ -2371,7 +2343,7 @@
"<literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:964
+#: session_api.xml:950
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
@@ -2381,7 +2353,7 @@
"persistente, ele será passado para <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:970
+#: session_api.xml:956
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
@@ -2391,7 +2363,7 @@
"</literal>"
#. Tag: para
-#: session_api.xml:975
+#: session_api.xml:961
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2405,7 +2377,7 @@
"literal>, nos quais casos o filho \"órfão\" é deletado."
#. Tag: para
-#: session_api.xml:983
+#: session_api.xml:969
#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
@@ -2424,13 +2396,13 @@
"associadas atingíveis durante a limpeza da <literal>Sessão</literal>. "
#. Tag: title
-#: session_api.xml:993
+#: session_api.xml:979
#, no-c-format
msgid "Using metadata"
msgstr "Usando metadados"
#. Tag: para
-#: session_api.xml:995
+#: session_api.xml:981
#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
@@ -2449,7 +2421,7 @@
"associadas). "
#. Tag: para
-#: session_api.xml:1002
+#: session_api.xml:988
#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
@@ -2463,7 +2435,7 @@
"obtidas a partir do <literal>SessionFactory</literal>. "
#. Tag: programlisting
-#: session_api.xml:1007
+#: session_api.xml:993
#, no-c-format
msgid ""
"Cat fritz = ......;\n"
@@ -2483,7 +2455,34 @@
"}"
msgstr ""
+#, fuzzy
#~ msgid ""
+#~ "Hibernate does not offer its own API for direct execution of "
+#~ "<literal>UPDATE</literal> or <literal>DELETE</literal> statements. "
+#~ "Hibernate is a <emphasis>state management</emphasis> service, you do not "
+#~ "have to think in <emphasis>statements</emphasis> to use it. JDBC is a "
+#~ "perfect API for executing SQL statements, you can get a JDBC "
+#~ "<literal>Connection</literal> at any time by calling <literal>session."
+#~ "connection()</literal>. Furthermore, the notion of mass operations "
+#~ "conflicts with object/relational mapping for online transaction "
+#~ "processing-oriented applications. Future versions of Hibernate can, "
+#~ "however, provide special mass operation functions. See <xref linkend="
+#~ "\"batch\"/> for some possible batch operation tricks."
+#~ msgstr ""
+#~ "Note que o Hibernate não oferece seu próprio API para execução direta de "
+#~ "instruções <literal>UPDATE</literal> ou <literal>DELETE</literal>. O "
+#~ "Hibernate é um serviço de <emphasis>gerenciamento de estado</emphasis> "
+#~ "que você nem precisa se preocupar com <emphasis>instruções</emphasis> "
+#~ "para utilizá-lo. O JDBC é um API perfeito para executar instruções SQL, "
+#~ "você pode ter uma <literal>Connection</literal> JDBC a qualquer momento, "
+#~ "chamando <literal>session.connection()</literal>. Além disso, a noção de "
+#~ "operações em massa conflitua com o mapeamento de objeto/relacional para "
+#~ "aplicativos de transações online com processamento. No entanto, versões "
+#~ "futuras do Hibernate poderão oferecer funções especiais de operação em "
+#~ "massa. Veja <xref linkend=\"batch\" /> para alguns possíveis truques de "
+#~ "operação em lote. "
+
+#~ msgid ""
#~ "A special cascade style, <literal>delete-orphan</literal>, applies only "
#~ "to one-to-many associations, and indicates that the <literal>delete()</"
#~ "literal> operation should be applied to any child object that is removed "
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/session_api.po 2010-07-21 05:39:40 UTC (rev 19988)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/session_api.po 2010-07-21 05:44:34 UTC (rev 19989)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: session_api\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-20 21:02+0000\n"
+"POT-Creation-Date: 2010-07-21 05:43+0000\n"
"PO-Revision-Date: 2010-03-16 09:58+1000\n"
"Last-Translator: Xi HUANG <xhuang(a)redhat.com>\n"
"Language-Team: <en(a)li.org>\n"
@@ -1360,39 +1360,14 @@
"literal> 语句(持久化更新的状态)。为此 Hibernate 提供了另一种途径,使用脱管"
"(detached)实例。 "
-#. Tag: para
-#: session_api.xml:481
-#, fuzzy, no-c-format
-msgid ""
-"Hibernate does not offer its own API for direct execution of "
-"<literal>UPDATE</literal> or <literal>DELETE</literal> statements. Hibernate "
-"is a <emphasis>state management</emphasis> service, you do not have to think "
-"in <emphasis>statements</emphasis> to use it. JDBC is a perfect API for "
-"executing SQL statements, you can get a JDBC <literal>Connection</literal> "
-"at any time by calling <literal>session.connection()</literal>. Furthermore, "
-"the notion of mass operations conflicts with object/relational mapping for "
-"online transaction processing-oriented applications. Future versions of "
-"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
-msgstr ""
-"请注意 Hibernate 本身不提供直接执行 <literal>UPDATE</literal> 或 "
-"<literal>DELETE</literal> 语句的 API。Hibernate 提供的是 <emphasis>state "
-"management</emphasis> 服务,你不必考虑要使用的 <emphasis>statements</"
-"emphasis>。JDBC 是出色的执行 SQL 语句的 API,任何时候调用 <literal>session."
-"connection()</literal> 你都可以得到一个 <literal>Connection</literal> 对象。 "
-"此外,在联机事务处理(OLTP)程序中,大量操作(mass operations)与对象/关系映"
-"射的观点是相冲突的。Hibernate 的将来版本可能会提供专门的进行大量操作(mass "
-"operation)的功能。参考 <xref linkend=\"batch\"/>,寻找一些可用的批量"
-"(batch)操作技巧。"
-
#. Tag: title
-#: session_api.xml:497
+#: session_api.xml:483
#, no-c-format
msgid "Modifying detached objects"
msgstr "修改脱管(Detached)对象"
#. Tag: para
-#: session_api.xml:499
+#: session_api.xml:485
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1406,7 +1381,7 @@
"的数据来保证这些“长“工作单元之间的隔离。"
#. Tag: para
-#: session_api.xml:505
+#: session_api.xml:491
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
@@ -1417,7 +1392,7 @@
"merge()</literal> 重新关联脱管实例的办法来支持这种模型。"
#. Tag: programlisting
-#: session_api.xml:509
+#: session_api.xml:495
#, fuzzy, no-c-format
msgid ""
"// in the first session\n"
@@ -1445,7 +1420,7 @@
"secondSession.update(mate); // update mate]]>"
#. Tag: para
-#: session_api.xml:511
+#: session_api.xml:497
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
@@ -1457,7 +1432,7 @@
"联操作(reattach)的时候会抛出一个异常。"
#. Tag: para
-#: session_api.xml:516
+#: session_api.xml:502
#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
@@ -1475,7 +1450,7 @@
"象的操作首先被执行。 "
#. Tag: para
-#: session_api.xml:524
+#: session_api.xml:510
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
@@ -1491,7 +1466,7 @@
"\"objectstate-transitive\"/>。"
#. Tag: para
-#: session_api.xml:530
+#: session_api.xml:516
#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
@@ -1502,7 +1477,7 @@
"不过,该脱管(detached)的对象必须是没有修改过的。"
#. Tag: programlisting
-#: session_api.xml:534
+#: session_api.xml:520
#, fuzzy, no-c-format
msgid ""
"//just reassociate:\n"
@@ -1520,7 +1495,7 @@
"sess.lock(pk, LockMode.UPGRADE);]]>"
#. Tag: para
-#: session_api.xml:536
+#: session_api.xml:522
#, no-c-format
msgid ""
"Note that <literal>lock()</literal> can be used with various "
@@ -1533,7 +1508,7 @@
"联不是 <literal>lock()</literal> 的唯一用途。 "
#. Tag: para
-#: session_api.xml:541
+#: session_api.xml:527
#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
@@ -1543,13 +1518,13 @@
"中讨论。"
#. Tag: title
-#: session_api.xml:546
+#: session_api.xml:532
#, no-c-format
msgid "Automatic state detection"
msgstr "自动状态检测"
#. Tag: para
-#: session_api.xml:548
+#: session_api.xml:534
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1562,7 +1537,7 @@
"<literal>saveOrUpdate()</literal> 方法实现了这个功能。"
#. Tag: programlisting
-#: session_api.xml:554
+#: session_api.xml:540
#, fuzzy, no-c-format
msgid ""
"// in the first session\n"
@@ -1592,7 +1567,7 @@
"id)]]>"
#. Tag: para
-#: session_api.xml:556
+#: session_api.xml:542
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1608,7 +1583,7 @@
"<literal>merge()</literal>。有些程序从来不用这些方法。"
#. Tag: para
-#: session_api.xml:563
+#: session_api.xml:549
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
@@ -1618,31 +1593,31 @@
"literal>:"
#. Tag: para
-#: session_api.xml:569
+#: session_api.xml:555
#, no-c-format
msgid "the application loads an object in the first session"
msgstr "程序在第一个 session 中加载对象"
#. Tag: para
-#: session_api.xml:573
+#: session_api.xml:559
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr "该对象被传递到表现层"
#. Tag: para
-#: session_api.xml:577
+#: session_api.xml:563
#, no-c-format
msgid "some modifications are made to the object"
msgstr "对象发生了一些改动"
#. Tag: para
-#: session_api.xml:581
+#: session_api.xml:567
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "该对象被返回到业务逻辑层"
#. Tag: para
-#: session_api.xml:585
+#: session_api.xml:571
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
@@ -1650,19 +1625,19 @@
msgstr "程序调用第二个 session 的 <literal>update()</literal> 方法持久这些改动"
#. Tag: para
-#: session_api.xml:590
+#: session_api.xml:576
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr "<literal>saveOrUpdate()</literal> 做下面的事:"
#. Tag: para
-#: session_api.xml:594
+#: session_api.xml:580
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr "如果对象已经在本 session 中持久化了,不做任何事"
#. Tag: para
-#: session_api.xml:599
+#: session_api.xml:585
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
@@ -1672,14 +1647,14 @@
"异常"
#. Tag: para
-#: session_api.xml:604
+#: session_api.xml:590
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
"如果对象没有持久化标识(identifier)属性,对其调用 <literal>save()</literal>"
#. Tag: para
-#: session_api.xml:609
+#: session_api.xml:595
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
@@ -1689,7 +1664,7 @@
"<literal>save()</literal>。"
#. Tag: para
-#: session_api.xml:614
+#: session_api.xml:600
#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
@@ -1702,19 +1677,19 @@
"对象,<literal>save()</literal> 它。 "
#. Tag: para
-#: session_api.xml:622
+#: session_api.xml:608
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr "否则 <literal>update()</literal> 这个对象"
#. Tag: para
-#: session_api.xml:626
+#: session_api.xml:612
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr "<literal>merge()</literal> 可非常不同:"
#. Tag: para
-#: session_api.xml:630
+#: session_api.xml:616
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -1725,7 +1700,7 @@
"覆盖旧有的持久实例"
#. Tag: para
-#: session_api.xml:636
+#: session_api.xml:622
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
@@ -1734,13 +1709,13 @@
"如果 session 没有相应的持久实例,则尝试从数据库中加载,或创建新的持久化实例"
#. Tag: para
-#: session_api.xml:642
+#: session_api.xml:628
#, no-c-format
msgid "the persistent instance is returned"
msgstr "最后返回该持久实例"
#. Tag: para
-#: session_api.xml:646
+#: session_api.xml:632
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
@@ -1748,13 +1723,13 @@
msgstr "用户给出的这个对象没有被关联到 session 上,它依旧是脱管的"
#. Tag: title
-#: session_api.xml:653
+#: session_api.xml:639
#, no-c-format
msgid "Deleting persistent objects"
msgstr "删除持久对象"
#. Tag: para
-#: session_api.xml:655
+#: session_api.xml:641
#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
@@ -1768,13 +1743,13 @@
"例。 "
#. Tag: programlisting
-#: session_api.xml:660
+#: session_api.xml:646
#, fuzzy, no-c-format
msgid "sess.delete(cat);"
msgstr "<![CDATA[sess.delete(cat);]]>"
#. Tag: para
-#: session_api.xml:662
+#: session_api.xml:648
#, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
@@ -1787,13 +1762,13 @@
"你删除了父对象,但是忘记删除其子对象。"
#. Tag: title
-#: session_api.xml:670
+#: session_api.xml:656
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "在两个不同数据库间复制对象"
#. Tag: para
-#: session_api.xml:672
+#: session_api.xml:658
#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
@@ -1804,7 +1779,7 @@
"到不同的数据库中的操作。 "
#. Tag: programlisting
-#: session_api.xml:676
+#: session_api.xml:662
#, fuzzy, no-c-format
msgid ""
"//retrieve a cat from one database\n"
@@ -1836,7 +1811,7 @@
"session2.close();]]>"
#. Tag: para
-#: session_api.xml:678
+#: session_api.xml:664
#, no-c-format
msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
@@ -1846,7 +1821,7 @@
"<literal>replicate()</literal> 如何处理。 "
#. Tag: para
-#: session_api.xml:684
+#: session_api.xml:670
#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
@@ -1856,7 +1831,7 @@
"时忽略它"
#. Tag: para
-#: session_api.xml:689
+#: session_api.xml:675
#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
@@ -1866,7 +1841,7 @@
"录"
#. Tag: para
-#: session_api.xml:694
+#: session_api.xml:680
#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
@@ -1876,7 +1851,7 @@
"识符时抛出异常"
#. Tag: para
-#: session_api.xml:700
+#: session_api.xml:686
#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
@@ -1887,7 +1862,7 @@
"盖,否则忽略"
#. Tag: para
-#: session_api.xml:706
+#: session_api.xml:692
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1900,13 +1875,13 @@
"Consistent,Isolated and Durable 的缩写)"
#. Tag: title
-#: session_api.xml:713
+#: session_api.xml:699
#, no-c-format
msgid "Flushing the Session"
msgstr "Session 刷出(flush)"
#. Tag: para
-#: session_api.xml:715
+#: session_api.xml:701
#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
@@ -1919,31 +1894,31 @@
"emphasis>,默认会在下面的时间点执行: "
#. Tag: para
-#: session_api.xml:723
+#: session_api.xml:709
#, no-c-format
msgid "before some query executions"
msgstr "在某些查询执行之前"
#. Tag: para
-#: session_api.xml:727
+#: session_api.xml:713
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr "在调用 <literal>org.hibernate.Transaction.commit()</literal> 的时候"
#. Tag: para
-#: session_api.xml:732
+#: session_api.xml:718
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "在调用 <literal>Session.flush()</literal> 的时候"
#. Tag: para
-#: session_api.xml:736
+#: session_api.xml:722
#, no-c-format
msgid "The SQL statements are issued in the following order:"
msgstr "涉及的 SQL 语句会按照下面的顺序发出执行: "
#. Tag: para
-#: session_api.xml:740
+#: session_api.xml:726
#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
@@ -1953,31 +1928,31 @@
"literal> 的时间顺序 "
#. Tag: para
-#: session_api.xml:745
+#: session_api.xml:731
#, no-c-format
msgid "all entity updates"
msgstr "所有对实体进行更新的语句"
#. Tag: para
-#: session_api.xml:749
+#: session_api.xml:735
#, no-c-format
msgid "all collection deletions"
msgstr "所有进行集合删除的语句"
#. Tag: para
-#: session_api.xml:753
+#: session_api.xml:739
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr "所有对集合元素进行删除,更新或者插入的语句"
#. Tag: para
-#: session_api.xml:757
+#: session_api.xml:743
#, no-c-format
msgid "all collection insertions"
msgstr "所有进行集合插入的语句"
#. Tag: para
-#: session_api.xml:761
+#: session_api.xml:747
#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
@@ -1987,7 +1962,7 @@
"literal> 的时间顺序 "
#. Tag: para
-#: session_api.xml:766
+#: session_api.xml:752
#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
@@ -1997,7 +1972,7 @@
"识)的话,它们一执行 save 就会被插入。"
#. Tag: para
-#: session_api.xml:769
+#: session_api.xml:755
#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
@@ -2012,7 +1987,7 @@
"失效的数据,也不会返回错误数据。 "
#. Tag: para
-#: session_api.xml:776
+#: session_api.xml:762
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -2033,7 +2008,7 @@
"longsession\"/>)。"
#. Tag: programlisting
-#: session_api.xml:786
+#: session_api.xml:772
#, fuzzy, no-c-format
msgid ""
"sess = sf.openSession();\n"
@@ -2067,7 +2042,7 @@
"sess.close();]]>"
#. Tag: para
-#: session_api.xml:788
+#: session_api.xml:774
#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
@@ -2080,13 +2055,13 @@
"\"/> 中讨论。 "
#. Tag: title
-#: session_api.xml:795
+#: session_api.xml:781
#, no-c-format
msgid "Transitive persistence"
msgstr "传播性持久化(transitive persistence)"
#. Tag: para
-#: session_api.xml:797
+#: session_api.xml:783
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
@@ -2097,7 +2072,7 @@
"彼此关联的对象的时候。一个常见的例子是父子关系。考虑下面的例子:"
#. Tag: para
-#: session_api.xml:802
+#: session_api.xml:788
#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
@@ -2117,7 +2092,7 @@
"所以 Hibernate 会在数据库中删除这个子对象。 "
#. Tag: para
-#: session_api.xml:812
+#: session_api.xml:798
#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
@@ -2135,7 +2110,7 @@
"久化(persistence by reachability)</emphasis>的策略。 "
#. Tag: para
-#: session_api.xml:820
+#: session_api.xml:806
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -2154,26 +2129,26 @@
"件中指出这一点。例如:"
#. Tag: programlisting
-#: session_api.xml:828
+#: session_api.xml:814
#, fuzzy, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist\"/>"
msgstr "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
#. Tag: para
-#: session_api.xml:830
+#: session_api.xml:816
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr "级联风格(cascade style)是可组合的:"
#. Tag: programlisting
-#: session_api.xml:832
+#: session_api.xml:818
#, fuzzy, no-c-format
msgid "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
msgstr ""
"<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
#. Tag: para
-#: session_api.xml:834
+#: session_api.xml:820
#, no-c-format
msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
@@ -2186,7 +2161,7 @@
"literal>,即任何操作都不会被级联(cascaded)。 "
#. Tag: para
-#: session_api.xml:839
+#: session_api.xml:825
#, no-c-format
msgid ""
"In case you are using annotatons you probably have noticed the "
@@ -2197,7 +2172,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:848
+#: session_api.xml:834
#, no-c-format
msgid ""
"<literal>CascadeType.PERSIST</literal>: cascades the persist (create) "
@@ -2206,7 +2181,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:854
+#: session_api.xml:840
#, no-c-format
msgid ""
"<literal>CascadeType.MERGE</literal>: cascades the merge operation to "
@@ -2214,7 +2189,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:860
+#: session_api.xml:846
#, no-c-format
msgid ""
"<literal>CascadeType.REMOVE</literal>: cascades the remove operation to "
@@ -2222,7 +2197,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:865
+#: session_api.xml:851
#, no-c-format
msgid ""
"<literal>CascadeType.REFRESH:</literal> cascades the refresh operation to "
@@ -2230,7 +2205,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:870
+#: session_api.xml:856
#, no-c-format
msgid ""
"<literal>CascadeType.DETACH:</literal> cascades the detach operation to "
@@ -2238,13 +2213,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:875
+#: session_api.xml:861
#, fuzzy, no-c-format
msgid "<literal>CascadeType.ALL</literal>: all of the above"
msgstr "<literal>saveOrUpdate()</literal> 做下面的事:"
#. Tag: para
-#: session_api.xml:880
+#: session_api.xml:866
#, no-c-format
msgid ""
"CascadeType.ALL also covers Hibernate specific operations like save-update, "
@@ -2252,7 +2227,7 @@
msgstr ""
#. Tag: para
-#: session_api.xml:884
+#: session_api.xml:870
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -2269,13 +2244,13 @@
msgstr ""
#. Tag: title
-#: session_api.xml:897
+#: session_api.xml:883
#, no-c-format
msgid "<literal>@OneToMany</literal> with <literal>orphanRemoval</literal>"
msgstr ""
#. Tag: programlisting
-#: session_api.xml:900
+#: session_api.xml:886
#, no-c-format
msgid ""
"@Entity \n"
@@ -2299,13 +2274,13 @@
msgstr ""
#. Tag: para
-#: session_api.xml:903
+#: session_api.xml:889
#, no-c-format
msgid "Recommendations:"
msgstr "建议:"
#. Tag: para
-#: session_api.xml:907
+#: session_api.xml:893
#, fuzzy, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a many-to-one or many-to-"
@@ -2320,7 +2295,7 @@
"literal> 关系中比较有用。 "
#. Tag: para
-#: session_api.xml:915
+#: session_api.xml:901
#, fuzzy, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
@@ -2333,7 +2308,7 @@
"(lifecycle object)</emphasis>。 "
#. Tag: para
-#: session_api.xml:923
+#: session_api.xml:909
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2346,7 +2321,7 @@
"\"persist,merge,save-update\"</literal>。"
#. Tag: para
-#: session_api.xml:931
+#: session_api.xml:917
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2360,7 +2335,7 @@
"操作。"
#. Tag: para
-#: session_api.xml:937
+#: session_api.xml:923
#, fuzzy, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
@@ -2379,7 +2354,7 @@
"下: "
#. Tag: para
-#: session_api.xml:948
+#: session_api.xml:934
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
@@ -2389,7 +2364,7 @@
"<literal>persist()</literal>"
#. Tag: para
-#: session_api.xml:953
+#: session_api.xml:939
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
@@ -2399,7 +2374,7 @@
"()</literal>"
#. Tag: para
-#: session_api.xml:958
+#: session_api.xml:944
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
@@ -2411,7 +2386,7 @@
"()</literal>"
#. Tag: para
-#: session_api.xml:964
+#: session_api.xml:950
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
@@ -2421,7 +2396,7 @@
"子对象将会被 <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:970
+#: session_api.xml:956
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
@@ -2429,7 +2404,7 @@
msgstr "如果父对象被删除,那么所有子对象也会被 <literal>delete()</literal>"
#. Tag: para
-#: session_api.xml:975
+#: session_api.xml:961
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2443,7 +2418,7 @@
"调用 delete() 删除子对象。"
#. Tag: para
-#: session_api.xml:983
+#: session_api.xml:969
#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
@@ -2460,13 +2435,13 @@
"flush 的时候才作用到所有可触及的被关联对象上的。 "
#. Tag: title
-#: session_api.xml:993
+#: session_api.xml:979
#, no-c-format
msgid "Using metadata"
msgstr "使用元数据"
#. Tag: para
-#: session_api.xml:995
+#: session_api.xml:981
#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
@@ -2483,7 +2458,7 @@
"某些被关联的实体)。 "
#. Tag: para
-#: session_api.xml:1002
+#: session_api.xml:988
#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
@@ -2497,7 +2472,7 @@
"例。 "
#. Tag: programlisting
-#: session_api.xml:1007
+#: session_api.xml:993
#, fuzzy, no-c-format
msgid ""
"Cat fritz = ......;\n"
@@ -2532,7 +2507,31 @@
" }\n"
"}]]>"
+#, fuzzy
#~ msgid ""
+#~ "Hibernate does not offer its own API for direct execution of "
+#~ "<literal>UPDATE</literal> or <literal>DELETE</literal> statements. "
+#~ "Hibernate is a <emphasis>state management</emphasis> service, you do not "
+#~ "have to think in <emphasis>statements</emphasis> to use it. JDBC is a "
+#~ "perfect API for executing SQL statements, you can get a JDBC "
+#~ "<literal>Connection</literal> at any time by calling <literal>session."
+#~ "connection()</literal>. Furthermore, the notion of mass operations "
+#~ "conflicts with object/relational mapping for online transaction "
+#~ "processing-oriented applications. Future versions of Hibernate can, "
+#~ "however, provide special mass operation functions. See <xref linkend="
+#~ "\"batch\"/> for some possible batch operation tricks."
+#~ msgstr ""
+#~ "请注意 Hibernate 本身不提供直接执行 <literal>UPDATE</literal> 或 "
+#~ "<literal>DELETE</literal> 语句的 API。Hibernate 提供的是 <emphasis>state "
+#~ "management</emphasis> 服务,你不必考虑要使用的 <emphasis>statements</"
+#~ "emphasis>。JDBC 是出色的执行 SQL 语句的 API,任何时候调用 "
+#~ "<literal>session.connection()</literal> 你都可以得到一个 "
+#~ "<literal>Connection</literal> 对象。 此外,在联机事务处理(OLTP)程序中,"
+#~ "大量操作(mass operations)与对象/关系映射的观点是相冲突的。Hibernate 的将"
+#~ "来版本可能会提供专门的进行大量操作(mass operation)的功能。参考 <xref "
+#~ "linkend=\"batch\"/>,寻找一些可用的批量(batch)操作技巧。"
+
+#~ msgid ""
#~ "A special cascade style, <literal>delete-orphan</literal>, applies only "
#~ "to one-to-many associations, and indicates that the <literal>delete()</"
#~ "literal> operation should be applied to any child object that is removed "
14 years, 4 months
Hibernate SVN: r19988 - in core/trunk/documentation/manual/src/main/docbook: en-US/content and 6 other directories.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-07-21 01:39:40 -0400 (Wed, 21 Jul 2010)
New Revision: 19988
Modified:
core/trunk/documentation/manual/src/main/docbook/de-DE/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/en-US/content/architecture.xml
core/trunk/documentation/manual/src/main/docbook/es-ES/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/pot/content/architecture.pot
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/architecture.po
Log:
HHH-5397 - Odds and ends from documentation merge : architecture.xml - removed duplicated discussion of object states
Modified: core/trunk/documentation/manual/src/main/docbook/de-DE/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/de-DE/content/architecture.po 2010-07-21 05:38:09 UTC (rev 19987)
+++ core/trunk/documentation/manual/src/main/docbook/de-DE/content/architecture.po 2010-07-21 05:39:40 UTC (rev 19988)
@@ -275,7 +275,7 @@
msgstr ""
"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-21 05:26+0000\n"
+"POT-Creation-Date: 2010-07-21 05:38+0000\n"
"PO-Revision-Date: 2007-02-26 10:27+1000\n"
"Last-Translator: \n"
"Language-Team: <de(a)li.org>\n"
@@ -430,7 +430,8 @@
"interfacename>. Once the <interfacename>org.hibernate.Session</"
"interfacename> is closed, they will be detached and free to use in any "
"application layer (for example, directly as data transfer objects to and "
-"from presentation). See"
+"from presentation). <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"Kurzlebige, aus einem Thread bestehende Objekte, die persistenten Status und "
"Unternehmensfunktionen beinhalten. Dabei kann es sich um gewöhnliche "
@@ -441,20 +442,21 @@
"Datentransferobjekte einer Präsentation) verwendet werden."
#. Tag: term
-#: architecture.xml:139
+#: architecture.xml:140
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr "Temporäre und abgesetzte Objekte und Collections"
#. Tag: para
-#: architecture.xml:141
+#: architecture.xml:142
#, fuzzy, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<interfacename>org.hibernate.Session</interfacename>. They may have been "
"instantiated by the application and not yet persisted, or they may have been "
"instantiated by a closed <interfacename>org.hibernate.Session</"
-"interfacename>. See"
+"interfacename>. <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"Instanzen persistenter Klassen, die zum aktuellen Zeitpunkt mit keiner "
"<literal>Session</literal> verbunden sind. Sie können von der Anwendung "
@@ -462,13 +464,13 @@
"geschlossenen <literal>Session</literal> instanziiert worden sein."
#. Tag: term
-#: architecture.xml:151
+#: architecture.xml:152
#, fuzzy, no-c-format
msgid "Transaction (<interfacename>org.hibernate.Transaction</interfacename>)"
msgstr "Transaktion (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:153
+#: architecture.xml:154
#, fuzzy, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
@@ -488,7 +490,7 @@
"ist jedoch nie optional!"
#. Tag: term
-#: architecture.xml:164
+#: architecture.xml:165
#, fuzzy, no-c-format
msgid ""
"ConnectionProvider (<interfacename>org.hibernate.connection."
@@ -498,7 +500,7 @@
"literal>)"
#. Tag: para
-#: architecture.xml:166
+#: architecture.xml:167
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
@@ -513,7 +515,7 @@
"ausgesetzt, kann jedoch vom Entwickler erweitert/implementiert werden."
#. Tag: term
-#: architecture.xml:175
+#: architecture.xml:176
#, fuzzy, no-c-format
msgid ""
"TransactionFactory (<interfacename>org.hibernate.TransactionFactory</"
@@ -522,7 +524,7 @@
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:177
+#: architecture.xml:178
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for <interfacename>org.hibernate.Transaction</"
@@ -534,13 +536,13 @@
"implementiert werden."
#. Tag: emphasis
-#: architecture.xml:185
+#: architecture.xml:186
#, fuzzy, no-c-format
msgid "Extension Interfaces"
msgstr "Erweiterungsschnittstellen"
#. Tag: para
-#: architecture.xml:187
+#: architecture.xml:188
#, fuzzy, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
@@ -553,96 +555,13 @@
"der API-Dokumentation."
#. Tag: title
-#: architecture.xml:199
-#, no-c-format
-msgid "Instance states"
-msgstr "Instanzstatus"
-
-#. Tag: para
#: architecture.xml:200
-#, fuzzy, no-c-format
-msgid ""
-"An instance of a persistent class can be in one of three different states. "
-"These states are defined in relation to a <emphasis>persistence context</"
-"emphasis>. The Hibernate <literal>Session</literal> object is the "
-"persistence context. The three different states are as follows:"
-msgstr ""
-"Der Status der Instanz einer persistenten Klasse kann drei Formen haben, die "
-"unter Berücksichtigung eines <emphasis>Persistenzkontexts</emphasis> (sog. "
-"\"Persistence Context\") definiert sind. Das Hibernate <literal>Session</"
-"literal>-Objekt ist der Persistenzkontext:"
-
-#. Tag: term
-#: architecture.xml:208
#, no-c-format
-msgid "transient"
-msgstr "transient"
-
-#. Tag: para
-#: architecture.xml:210
-#, fuzzy, no-c-format
-msgid ""
-"The instance is not associated with any persistence context. It has no "
-"persistent identity or primary key value."
-msgstr ""
-"Die Instanz ist nicht (und war auch nie) mit einem Persistenzkontext "
-"assoziiert. Sie besitzt keine persistente Identität (Wert des primären "
-"Kernbegriffs)."
-
-#. Tag: term
-#: architecture.xml:218
-#, no-c-format
-msgid "persistent"
-msgstr "persistent"
-
-#. Tag: para
-#: architecture.xml:220
-#, fuzzy, no-c-format
-msgid ""
-"The instance is currently associated with a persistence context. It has a "
-"persistent identity (primary key value) and can have a corresponding row in "
-"the database. For a particular persistence context, Hibernate "
-"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
-"Java identity in relation to the in-memory location of the object."
-msgstr ""
-"Die Instanz wird zum aktuellen Zeitpunkt mit einem Persistenzkontext "
-"assoziiert. Sie besitzt eine persistente Identität (Wert des primären "
-"Kernbegriffs) und möglicherweise eine korrespondierende Reihe in der "
-"Datenbank. Für einen bestimmten Persistenzkontext <emphasis>garantiert</"
-"emphasis> Hibernate, dass die persistente Identität äquivalent zur Java "
-"Identität (Speicherstelle des Objekts) ist."
-
-#. Tag: term
-#: architecture.xml:232
-#, no-c-format
-msgid "detached"
-msgstr "detached (\"abgesetzt\")"
-
-#. Tag: para
-#: architecture.xml:234
-#, fuzzy, no-c-format
-msgid ""
-"The instance was once associated with a persistence context, but that "
-"context was closed, or the instance was serialized to another process. It "
-"has a persistent identity and can have a corresponding row in the database. "
-"For detached instances, Hibernate does not guarantee the relationship "
-"between persistent identity and Java identity."
-msgstr ""
-"Die Instanz war vormals mit einem Persistenzkontext assoziiert, aber der "
-"Kontext wurde geschlossen oder die Instanz in einem anderen Vorgang "
-"serialisiert. Sie besitzt eine persistente Identität und möglicherweise eine "
-"korrespondierende Reihe in der Datenbank. Für Instanzen im abgesetzten "
-"Status (\"detached\") garantiert Hibernate keine Verbindung zwischen "
-"persistenter Identität und Java-Identität."
-
-#. Tag: title
-#: architecture.xml:249
-#, no-c-format
msgid "JMX Integration"
msgstr "JMX-Integration"
#. Tag: para
-#: architecture.xml:251
+#: architecture.xml:202
#, fuzzy, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
@@ -656,7 +575,7 @@
"bereitgestellt."
#. Tag: para
-#: architecture.xml:257
+#: architecture.xml:208
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
@@ -667,13 +586,13 @@
"Statistiken, siehe <xref linkend=\"configuration-optional-statistics\"/>."
#. Tag: title
-#: architecture.xml:264
+#: architecture.xml:215
#, fuzzy, no-c-format
msgid "Contextual sessions"
msgstr "Kontextbezogene Sessions"
#. Tag: para
-#: architecture.xml:265
+#: architecture.xml:216
#, fuzzy, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
@@ -699,7 +618,7 @@
"basierte kontextbezogene Sessions bereitstellen."
#. Tag: para
-#: architecture.xml:274
+#: architecture.xml:225
#, fuzzy, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
@@ -726,7 +645,7 @@
"benötigen dürften."
#. Tag: para
-#: architecture.xml:284
+#: architecture.xml:235
#, fuzzy, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
@@ -745,7 +664,7 @@
"Gültigkeitsbereich und Kontext zu ermöglichen."
#. Tag: para
-#: architecture.xml:291
+#: architecture.xml:242
#, fuzzy, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
@@ -763,7 +682,7 @@
"Implementierungen dieses Interface geliefert."
#. Tag: para
-#: architecture.xml:301
+#: architecture.xml:252
#, fuzzy, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
@@ -778,7 +697,7 @@
"finden Sie in Javadocs."
#. Tag: para
-#: architecture.xml:309
+#: architecture.xml:260
#, fuzzy, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
@@ -789,7 +708,7 @@
"finden Sie weitere Informationen in Javadocs."
#. Tag: para
-#: architecture.xml:315
+#: architecture.xml:266
#, fuzzy, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
@@ -804,7 +723,7 @@
"geräumt oder geschlossen."
#. Tag: para
-#: architecture.xml:324
+#: architecture.xml:275
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -835,7 +754,7 @@
"Code-Beispiele finden Sie unter <xref linkend=\"transactions\"/>."
#. Tag: para
-#: architecture.xml:336
+#: architecture.xml:287
#, fuzzy, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
@@ -861,8 +780,71 @@
"Implementierungen, jedoch existieren drei entsprechende Kurznamen \"jta\", "
"\"thread\" sowie \"managed\"."
+#~ msgid "Instance states"
+#~ msgstr "Instanzstatus"
+
#, fuzzy
#~ msgid ""
+#~ "An instance of a persistent class can be in one of three different "
+#~ "states. These states are defined in relation to a <emphasis>persistence "
+#~ "context</emphasis>. The Hibernate <literal>Session</literal> object is "
+#~ "the persistence context. The three different states are as follows:"
+#~ msgstr ""
+#~ "Der Status der Instanz einer persistenten Klasse kann drei Formen haben, "
+#~ "die unter Berücksichtigung eines <emphasis>Persistenzkontexts</emphasis> "
+#~ "(sog. \"Persistence Context\") definiert sind. Das Hibernate "
+#~ "<literal>Session</literal>-Objekt ist der Persistenzkontext:"
+
+#~ msgid "transient"
+#~ msgstr "transient"
+
+#, fuzzy
+#~ msgid ""
+#~ "The instance is not associated with any persistence context. It has no "
+#~ "persistent identity or primary key value."
+#~ msgstr ""
+#~ "Die Instanz ist nicht (und war auch nie) mit einem Persistenzkontext "
+#~ "assoziiert. Sie besitzt keine persistente Identität (Wert des primären "
+#~ "Kernbegriffs)."
+
+#~ msgid "persistent"
+#~ msgstr "persistent"
+
+#, fuzzy
+#~ msgid ""
+#~ "The instance is currently associated with a persistence context. It has a "
+#~ "persistent identity (primary key value) and can have a corresponding row "
+#~ "in the database. For a particular persistence context, Hibernate "
+#~ "<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
+#~ "Java identity in relation to the in-memory location of the object."
+#~ msgstr ""
+#~ "Die Instanz wird zum aktuellen Zeitpunkt mit einem Persistenzkontext "
+#~ "assoziiert. Sie besitzt eine persistente Identität (Wert des primären "
+#~ "Kernbegriffs) und möglicherweise eine korrespondierende Reihe in der "
+#~ "Datenbank. Für einen bestimmten Persistenzkontext <emphasis>garantiert</"
+#~ "emphasis> Hibernate, dass die persistente Identität äquivalent zur Java "
+#~ "Identität (Speicherstelle des Objekts) ist."
+
+#~ msgid "detached"
+#~ msgstr "detached (\"abgesetzt\")"
+
+#, fuzzy
+#~ msgid ""
+#~ "The instance was once associated with a persistence context, but that "
+#~ "context was closed, or the instance was serialized to another process. It "
+#~ "has a persistent identity and can have a corresponding row in the "
+#~ "database. For detached instances, Hibernate does not guarantee the "
+#~ "relationship between persistent identity and Java identity."
+#~ msgstr ""
+#~ "Die Instanz war vormals mit einem Persistenzkontext assoziiert, aber der "
+#~ "Kontext wurde geschlossen oder die Instanz in einem anderen Vorgang "
+#~ "serialisiert. Sie besitzt eine persistente Identität und möglicherweise "
+#~ "eine korrespondierende Reihe in der Datenbank. Für Instanzen im "
+#~ "abgesetzten Status (\"detached\") garantiert Hibernate keine Verbindung "
+#~ "zwischen persistenter Identität und Java-Identität."
+
+#, fuzzy
+#~ msgid ""
#~ "We do not have the scope in this document to provide a more detailed view "
#~ "of all the runtime architectures available; Hibernate is flexible and "
#~ "supports several different approaches. We will, however, show the two "
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/architecture.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/architecture.xml 2010-07-21 05:38:09 UTC (rev 19987)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/architecture.xml 2010-07-21 05:39:40 UTC (rev 19988)
@@ -131,7 +131,8 @@
<interfacename>org.hibernate.Session</interfacename>. Once the
<interfacename>org.hibernate.Session</interfacename> is closed, they will be detached
and free to use in any application layer (for example, directly as data transfer objects
- to and from presentation). See <xref linkend="architecture-states"/>
+ to and from presentation). <xref linkend="objectstate"/> discusses transient,
+ persistent and detached object states.
</para>
</listitem>
</varlistentry>
@@ -143,7 +144,7 @@
<interfacename>org.hibernate.Session</interfacename>. They may have been instantiated by
the application and not yet persisted, or they may have been instantiated by a
closed <interfacename>org.hibernate.Session</interfacename>.
- See <xref linkend="architecture-states"/>
+ <xref linkend="objectstate"/> discusses transient, persistent and detached object states.
</para>
</listitem>
</varlistentry>
@@ -195,56 +196,6 @@
</section>
</section>
- <section id="architecture-states">
- <title>Instance states</title>
- <para>
- An instance of a persistent class can be in one of three different states. These states are
- defined in relation to a <emphasis>persistence context</emphasis>.
- The Hibernate <literal>Session</literal> object is the persistence context. The three different states are as follows:
- </para>
-
- <variablelist spacing="compact">
- <varlistentry>
- <term>transient</term>
- <listitem>
- <para>
- The instance is not associated with
- any persistence context. It has no persistent identity or
- primary key value.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>persistent</term>
- <listitem>
- <para>
- The instance is currently associated with a persistence
- context. It has a persistent identity (primary key value)
- and can have a corresponding row in the database. For a
- particular persistence context, Hibernate
- <emphasis>guarantees</emphasis> that persistent identity
- is equivalent to Java identity in relation to the in-memory location of the
- object.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>detached</term>
- <listitem>
- <para>
- The instance was once associated with a persistence
- context, but that context was closed, or the instance
- was serialized to another process. It has a persistent
- identity and can have a corresponding row in the database.
- For detached instances, Hibernate does not guarantee
- the relationship between persistent identity and
- Java identity.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </section>
-
<section id="architecture-jmx" revision="1">
<title>JMX Integration</title>
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/architecture.po 2010-07-21 05:38:09 UTC (rev 19987)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/architecture.po 2010-07-21 05:39:40 UTC (rev 19988)
@@ -14,7 +14,7 @@
msgstr ""
"Project-Id-Version: architecture\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-21 05:26+0000\n"
+"POT-Creation-Date: 2010-07-21 05:38+0000\n"
"PO-Revision-Date: 2010-03-15 10:16+1000\n"
"Last-Translator: Angela Garcia <agarcia(a)redhat.com>\n"
"Language-Team: <en(a)li.org>\n"
@@ -168,7 +168,8 @@
"interfacename>. Once the <interfacename>org.hibernate.Session</"
"interfacename> is closed, they will be detached and free to use in any "
"application layer (for example, directly as data transfer objects to and "
-"from presentation). See"
+"from presentation). <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"Objetos de corta vida, mono-hebra contienen un estado persistente así como "
"una funcionalidad empresarial. Estos pueden ser JavaBeans/POJOs normales. "
@@ -179,20 +180,21 @@
"desde la presentación)."
#. Tag: term
-#: architecture.xml:139
+#: architecture.xml:140
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr "Objetos y colecciones transitorios y separados"
#. Tag: para
-#: architecture.xml:141
+#: architecture.xml:142
#, fuzzy, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<interfacename>org.hibernate.Session</interfacename>. They may have been "
"instantiated by the application and not yet persisted, or they may have been "
"instantiated by a closed <interfacename>org.hibernate.Session</"
-"interfacename>. See"
+"interfacename>. <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"Instancias de clases persistentes que no se encuentran actualmente asociadas "
"con una <literal>Session</literal>. Pueden haber sido instanciadas por la "
@@ -200,13 +202,13 @@
"por una <literal>Session</literal> cerrada."
#. Tag: term
-#: architecture.xml:151
+#: architecture.xml:152
#, fuzzy, no-c-format
msgid "Transaction (<interfacename>org.hibernate.Transaction</interfacename>)"
msgstr "Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:153
+#: architecture.xml:154
#, fuzzy, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
@@ -226,7 +228,7 @@
"literal>, nunca es opcional."
#. Tag: term
-#: architecture.xml:164
+#: architecture.xml:165
#, fuzzy, no-c-format
msgid ""
"ConnectionProvider (<interfacename>org.hibernate.connection."
@@ -236,7 +238,7 @@
"literal>)"
#. Tag: para
-#: architecture.xml:166
+#: architecture.xml:167
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
@@ -251,7 +253,7 @@
"implementado por el desarrollador."
#. Tag: term
-#: architecture.xml:175
+#: architecture.xml:176
#, fuzzy, no-c-format
msgid ""
"TransactionFactory (<interfacename>org.hibernate.TransactionFactory</"
@@ -260,7 +262,7 @@
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:177
+#: architecture.xml:178
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for <interfacename>org.hibernate.Transaction</"
@@ -272,13 +274,13 @@
"desarrollador. "
#. Tag: emphasis
-#: architecture.xml:185
+#: architecture.xml:186
#, fuzzy, no-c-format
msgid "Extension Interfaces"
msgstr "<emphasis>Interfaces de extensión</emphasis> "
#. Tag: para
-#: architecture.xml:187
+#: architecture.xml:188
#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
@@ -290,95 +292,13 @@
"Para obtener más detalles, vea la documentación de la API."
#. Tag: title
-#: architecture.xml:199
-#, no-c-format
-msgid "Instance states"
-msgstr "Estados de instancia"
-
-#. Tag: para
#: architecture.xml:200
#, no-c-format
-msgid ""
-"An instance of a persistent class can be in one of three different states. "
-"These states are defined in relation to a <emphasis>persistence context</"
-"emphasis>. The Hibernate <literal>Session</literal> object is the "
-"persistence context. The three different states are as follows:"
-msgstr ""
-"Una instancia de una clase persistente puede estar en uno de tres estados "
-"diferentes. Estos estados se definen con respecto a su <emphasis>contexto de "
-"persistencia</emphasis>. El objeto <literal>Session</literal> de Hibernate "
-"es el contexto de persistencia. Los tres estados diferentes son los "
-"siguientes:"
-
-#. Tag: term
-#: architecture.xml:208
-#, no-c-format
-msgid "transient"
-msgstr "transitorio"
-
-#. Tag: para
-#: architecture.xml:210
-#, no-c-format
-msgid ""
-"The instance is not associated with any persistence context. It has no "
-"persistent identity or primary key value."
-msgstr ""
-"La instancia no está asociada con un contexto de persistencia. No tiene "
-"identidad persistente o valor de clave principal."
-
-#. Tag: term
-#: architecture.xml:218
-#, no-c-format
-msgid "persistent"
-msgstr "persistente"
-
-#. Tag: para
-#: architecture.xml:220
-#, no-c-format
-msgid ""
-"The instance is currently associated with a persistence context. It has a "
-"persistent identity (primary key value) and can have a corresponding row in "
-"the database. For a particular persistence context, Hibernate "
-"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
-"Java identity in relation to the in-memory location of the object."
-msgstr ""
-"La instancia se encuentra actualmente asociada con un contexto de "
-"persistencia. Tiene una identidad persistente (valor de clave principal) y "
-"puede tener una fila correspondiente en la base de datos. Para un contexto "
-"de persistencia en particular, Hibernate <emphasis>garantiza</emphasis> que "
-"la identidad persistente es equivalente a la identidad Java en relación con "
-"la ubicación del objeto."
-
-#. Tag: term
-#: architecture.xml:232
-#, no-c-format
-msgid "detached"
-msgstr "separado"
-
-#. Tag: para
-#: architecture.xml:234
-#, no-c-format
-msgid ""
-"The instance was once associated with a persistence context, but that "
-"context was closed, or the instance was serialized to another process. It "
-"has a persistent identity and can have a corresponding row in the database. "
-"For detached instances, Hibernate does not guarantee the relationship "
-"between persistent identity and Java identity."
-msgstr ""
-"La instancia estuvo alguna vez asociada con un contexto de persistencia, "
-"pero ese contexto se cerró, o la instancia fue serializada a otro proceso. "
-"Tiene una identidad persistente y puede tener una fila correspondiente en la "
-"base de datos. Para las instancias separadas, Hibernate no establece ninguna "
-"garantía sobre la relación entre identidad persistente e identidad Java."
-
-#. Tag: title
-#: architecture.xml:249
-#, no-c-format
msgid "JMX Integration"
msgstr "Integración JMX"
#. Tag: para
-#: architecture.xml:251
+#: architecture.xml:202
#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
@@ -392,7 +312,7 @@
"HibernateService</literal>."
#. Tag: para
-#: architecture.xml:257
+#: architecture.xml:208
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
@@ -404,13 +324,13 @@
"optional-statistics\" /> para obtener mayor información."
#. Tag: title
-#: architecture.xml:264
+#: architecture.xml:215
#, no-c-format
msgid "Contextual sessions"
msgstr "Sesiones contextuales"
#. Tag: para
-#: architecture.xml:265
+#: architecture.xml:216
#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
@@ -436,7 +356,7 @@
"contextuales con base proxy/intercepción."
#. Tag: para
-#: architecture.xml:274
+#: architecture.xml:225
#, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
@@ -462,7 +382,7 @@
"todo lo que usted necesita utilizar."
#. Tag: para
-#: architecture.xml:284
+#: architecture.xml:235
#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
@@ -481,7 +401,7 @@
"las sesiones actuales."
#. Tag: para
-#: architecture.xml:291
+#: architecture.xml:242
#, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
@@ -499,7 +419,7 @@
"implementaciones de esta interfaz:"
#. Tag: para
-#: architecture.xml:301
+#: architecture.xml:252
#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
@@ -513,7 +433,7 @@
"sólamente. Refiérase a los Javadocs para obtener más información."
#. Tag: para
-#: architecture.xml:309
+#: architecture.xml:260
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
@@ -524,7 +444,7 @@
"Javadocs para obtener más detalles."
#. Tag: para
-#: architecture.xml:315
+#: architecture.xml:266
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
@@ -539,7 +459,7 @@
"<literal>Session</literal>."
#. Tag: para
-#: architecture.xml:324
+#: architecture.xml:275
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -571,7 +491,7 @@
"ejemplos de código."
#. Tag: para
-#: architecture.xml:336
+#: architecture.xml:287
#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
@@ -596,7 +516,66 @@
"de implementación a utilizar. Sin embargo, para las tres implementaciones "
"incluídas existen tress nombres cortos: \"jta\", \"thread\" y \"managed\"."
+#~ msgid "Instance states"
+#~ msgstr "Estados de instancia"
+
#~ msgid ""
+#~ "An instance of a persistent class can be in one of three different "
+#~ "states. These states are defined in relation to a <emphasis>persistence "
+#~ "context</emphasis>. The Hibernate <literal>Session</literal> object is "
+#~ "the persistence context. The three different states are as follows:"
+#~ msgstr ""
+#~ "Una instancia de una clase persistente puede estar en uno de tres estados "
+#~ "diferentes. Estos estados se definen con respecto a su <emphasis>contexto "
+#~ "de persistencia</emphasis>. El objeto <literal>Session</literal> de "
+#~ "Hibernate es el contexto de persistencia. Los tres estados diferentes son "
+#~ "los siguientes:"
+
+#~ msgid "transient"
+#~ msgstr "transitorio"
+
+#~ msgid ""
+#~ "The instance is not associated with any persistence context. It has no "
+#~ "persistent identity or primary key value."
+#~ msgstr ""
+#~ "La instancia no está asociada con un contexto de persistencia. No tiene "
+#~ "identidad persistente o valor de clave principal."
+
+#~ msgid "persistent"
+#~ msgstr "persistente"
+
+#~ msgid ""
+#~ "The instance is currently associated with a persistence context. It has a "
+#~ "persistent identity (primary key value) and can have a corresponding row "
+#~ "in the database. For a particular persistence context, Hibernate "
+#~ "<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
+#~ "Java identity in relation to the in-memory location of the object."
+#~ msgstr ""
+#~ "La instancia se encuentra actualmente asociada con un contexto de "
+#~ "persistencia. Tiene una identidad persistente (valor de clave principal) "
+#~ "y puede tener una fila correspondiente en la base de datos. Para un "
+#~ "contexto de persistencia en particular, Hibernate <emphasis>garantiza</"
+#~ "emphasis> que la identidad persistente es equivalente a la identidad Java "
+#~ "en relación con la ubicación del objeto."
+
+#~ msgid "detached"
+#~ msgstr "separado"
+
+#~ msgid ""
+#~ "The instance was once associated with a persistence context, but that "
+#~ "context was closed, or the instance was serialized to another process. It "
+#~ "has a persistent identity and can have a corresponding row in the "
+#~ "database. For detached instances, Hibernate does not guarantee the "
+#~ "relationship between persistent identity and Java identity."
+#~ msgstr ""
+#~ "La instancia estuvo alguna vez asociada con un contexto de persistencia, "
+#~ "pero ese contexto se cerró, o la instancia fue serializada a otro "
+#~ "proceso. Tiene una identidad persistente y puede tener una fila "
+#~ "correspondiente en la base de datos. Para las instancias separadas, "
+#~ "Hibernate no establece ninguna garantía sobre la relación entre identidad "
+#~ "persistente e identidad Java."
+
+#~ msgid ""
#~ "We do not have the scope in this document to provide a more detailed view "
#~ "of all the runtime architectures available; Hibernate is flexible and "
#~ "supports several different approaches. We will, however, show the two "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/architecture.po 2010-07-21 05:38:09 UTC (rev 19987)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/architecture.po 2010-07-21 05:39:40 UTC (rev 19988)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: architecture\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-21 05:26+0000\n"
+"POT-Creation-Date: 2010-07-21 05:38+0000\n"
"PO-Revision-Date: 2010-01-04 16:40+1000\n"
"Last-Translator: Corina Roe <croe(a)redhat.com>\n"
"Language-Team: French <i18(a)redhat.com>\n"
@@ -162,7 +162,8 @@
"interfacename>. Once the <interfacename>org.hibernate.Session</"
"interfacename> is closed, they will be detached and free to use in any "
"application layer (for example, directly as data transfer objects to and "
-"from presentation). See"
+"from presentation). <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"Objets mono-threadés à vie courte, contenant état persistant et fonction "
"commerciale. Ceux-ci sont en général des objets ordinaires de type JavaBean "
@@ -172,20 +173,21 @@
"couche de l'application (par ex. de et vers la présentation)."
#. Tag: term
-#: architecture.xml:139
+#: architecture.xml:140
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr "Objets et collections éphémères (transient) et détachés"
#. Tag: para
-#: architecture.xml:141
+#: architecture.xml:142
#, fuzzy, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<interfacename>org.hibernate.Session</interfacename>. They may have been "
"instantiated by the application and not yet persisted, or they may have been "
"instantiated by a closed <interfacename>org.hibernate.Session</"
-"interfacename>. See"
+"interfacename>. <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"Instances de classes persistantes qui ne sont actuellement pas associées à "
"une <literal>Session</literal>. Elles ont pu être instanciées par "
@@ -193,13 +195,13 @@
"instanciées par une <literal>Session</literal> fermée."
#. Tag: term
-#: architecture.xml:151
+#: architecture.xml:152
#, fuzzy, no-c-format
msgid "Transaction (<interfacename>org.hibernate.Transaction</interfacename>)"
msgstr "Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:153
+#: architecture.xml:154
#, fuzzy, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
@@ -219,7 +221,7 @@
"n'est jamais optionnelle. "
#. Tag: term
-#: architecture.xml:164
+#: architecture.xml:165
#, fuzzy, no-c-format
msgid ""
"ConnectionProvider (<interfacename>org.hibernate.connection."
@@ -229,7 +231,7 @@
"literal>)"
#. Tag: para
-#: architecture.xml:166
+#: architecture.xml:167
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
@@ -244,7 +246,7 @@
"mais peut être étendu/implémenté par le développeur. "
#. Tag: term
-#: architecture.xml:175
+#: architecture.xml:176
#, fuzzy, no-c-format
msgid ""
"TransactionFactory (<interfacename>org.hibernate.TransactionFactory</"
@@ -253,7 +255,7 @@
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:177
+#: architecture.xml:178
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for <interfacename>org.hibernate.Transaction</"
@@ -265,13 +267,13 @@
"développeur. "
#. Tag: emphasis
-#: architecture.xml:185
+#: architecture.xml:186
#, fuzzy, no-c-format
msgid "Extension Interfaces"
msgstr "<emphasis>Interfaces d'extension</emphasis> "
#. Tag: para
-#: architecture.xml:187
+#: architecture.xml:188
#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
@@ -284,95 +286,13 @@
"détails. "
#. Tag: title
-#: architecture.xml:199
-#, no-c-format
-msgid "Instance states"
-msgstr "Etats des instances"
-
-#. Tag: para
#: architecture.xml:200
#, no-c-format
-msgid ""
-"An instance of a persistent class can be in one of three different states. "
-"These states are defined in relation to a <emphasis>persistence context</"
-"emphasis>. The Hibernate <literal>Session</literal> object is the "
-"persistence context. The three different states are as follows:"
-msgstr ""
-"Une instance d'une classe persistante peut être dans l'un des trois états "
-"suivants, définis par rapport à un <emphasis>contexte de persistance</"
-"emphasis>. L'objet <literal>Session</literal> Hibernate correspond à ce "
-"contexte de persistance. Les trois états distincts sont:"
-
-#. Tag: term
-#: architecture.xml:208
-#, no-c-format
-msgid "transient"
-msgstr "éphémère (transient)"
-
-#. Tag: para
-#: architecture.xml:210
-#, no-c-format
-msgid ""
-"The instance is not associated with any persistence context. It has no "
-"persistent identity or primary key value."
-msgstr ""
-"L'instance n'est pas et n'a jamais été associée à un contexte de "
-"persistance. Elle ne possède pas d'identité persistante (valeur de clé "
-"primaire)."
-
-#. Tag: term
-#: architecture.xml:218
-#, no-c-format
-msgid "persistent"
-msgstr "persistant"
-
-#. Tag: para
-#: architecture.xml:220
-#, no-c-format
-msgid ""
-"The instance is currently associated with a persistence context. It has a "
-"persistent identity (primary key value) and can have a corresponding row in "
-"the database. For a particular persistence context, Hibernate "
-"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
-"Java identity in relation to the in-memory location of the object."
-msgstr ""
-"L'instance est associée à un contexte de persistance. Elle possède une "
-"identité persistante (valeur de clé primaire) et, peut-être un "
-"enregistrement correspondant dans la base de données. Pour un contexte de "
-"persistance particulier, Hibernate <emphasis>garantit</emphasis> que "
-"l'identité persistante soit équivalente à l'identité Java (emplacement "
-"mémoire de l'objet). "
-
-#. Tag: term
-#: architecture.xml:232
-#, no-c-format
-msgid "detached"
-msgstr "détaché"
-
-#. Tag: para
-#: architecture.xml:234
-#, no-c-format
-msgid ""
-"The instance was once associated with a persistence context, but that "
-"context was closed, or the instance was serialized to another process. It "
-"has a persistent identity and can have a corresponding row in the database. "
-"For detached instances, Hibernate does not guarantee the relationship "
-"between persistent identity and Java identity."
-msgstr ""
-"L'instance a été associée au contexte de persistance mais ce contexte a été "
-"fermé, ou l'instance a été sérialisée vers un autre processus. Elle possède "
-"une identité persistante et peut-être un enregistrement correspondant dans "
-"la base de données. Pour des instances détachées, Hibernate ne donne aucune "
-"garantie sur la relation entre l'identité persistante et l'identité Java. "
-
-#. Tag: title
-#: architecture.xml:249
-#, no-c-format
msgid "JMX Integration"
msgstr "Intégration JMX"
#. Tag: para
-#: architecture.xml:251
+#: architecture.xml:202
#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
@@ -386,7 +306,7 @@
"literal>. "
#. Tag: para
-#: architecture.xml:257
+#: architecture.xml:208
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
@@ -398,13 +318,13 @@
"linkend=\"configuration-optional-statistics\" />."
#. Tag: title
-#: architecture.xml:264
+#: architecture.xml:215
#, no-c-format
msgid "Contextual sessions"
msgstr "Sessions contextuelles "
#. Tag: para
-#: architecture.xml:265
+#: architecture.xml:216
#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
@@ -430,7 +350,7 @@
"l'utilisation de proxy/interception. "
#. Tag: para
-#: architecture.xml:274
+#: architecture.xml:225
#, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
@@ -456,7 +376,7 @@
"<literal>JTA</literal>. "
#. Tag: para
-#: architecture.xml:284
+#: architecture.xml:235
#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
@@ -475,7 +395,7 @@
"caractéristiques."
#. Tag: para
-#: architecture.xml:291
+#: architecture.xml:242
#, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
@@ -492,7 +412,7 @@
"courante. Hibernate fournit trois implémentations de cette interface :"
#. Tag: para
-#: architecture.xml:301
+#: architecture.xml:252
#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
@@ -506,7 +426,7 @@
"javadocs pour pour plus d'informations. "
#. Tag: para
-#: architecture.xml:309
+#: architecture.xml:260
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
@@ -517,7 +437,7 @@
"javadocs pour plus d'informations. "
#. Tag: para
-#: architecture.xml:315
+#: architecture.xml:266
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
@@ -532,7 +452,7 @@
"ni ne nettoie ou ne ferme une <literal>Session</literal>."
#. Tag: para
-#: architecture.xml:324
+#: architecture.xml:275
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -562,7 +482,7 @@
"et des exemples de code."
#. Tag: para
-#: architecture.xml:336
+#: architecture.xml:287
#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
@@ -588,7 +508,66 @@
"utiliser, toutefois, il y a trois noms brefs correspondants : \"jta\", "
"\"thread\" et \"managed\"."
+#~ msgid "Instance states"
+#~ msgstr "Etats des instances"
+
#~ msgid ""
+#~ "An instance of a persistent class can be in one of three different "
+#~ "states. These states are defined in relation to a <emphasis>persistence "
+#~ "context</emphasis>. The Hibernate <literal>Session</literal> object is "
+#~ "the persistence context. The three different states are as follows:"
+#~ msgstr ""
+#~ "Une instance d'une classe persistante peut être dans l'un des trois états "
+#~ "suivants, définis par rapport à un <emphasis>contexte de persistance</"
+#~ "emphasis>. L'objet <literal>Session</literal> Hibernate correspond à ce "
+#~ "contexte de persistance. Les trois états distincts sont:"
+
+#~ msgid "transient"
+#~ msgstr "éphémère (transient)"
+
+#~ msgid ""
+#~ "The instance is not associated with any persistence context. It has no "
+#~ "persistent identity or primary key value."
+#~ msgstr ""
+#~ "L'instance n'est pas et n'a jamais été associée à un contexte de "
+#~ "persistance. Elle ne possède pas d'identité persistante (valeur de clé "
+#~ "primaire)."
+
+#~ msgid "persistent"
+#~ msgstr "persistant"
+
+#~ msgid ""
+#~ "The instance is currently associated with a persistence context. It has a "
+#~ "persistent identity (primary key value) and can have a corresponding row "
+#~ "in the database. For a particular persistence context, Hibernate "
+#~ "<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
+#~ "Java identity in relation to the in-memory location of the object."
+#~ msgstr ""
+#~ "L'instance est associée à un contexte de persistance. Elle possède une "
+#~ "identité persistante (valeur de clé primaire) et, peut-être un "
+#~ "enregistrement correspondant dans la base de données. Pour un contexte de "
+#~ "persistance particulier, Hibernate <emphasis>garantit</emphasis> que "
+#~ "l'identité persistante soit équivalente à l'identité Java (emplacement "
+#~ "mémoire de l'objet). "
+
+#~ msgid "detached"
+#~ msgstr "détaché"
+
+#~ msgid ""
+#~ "The instance was once associated with a persistence context, but that "
+#~ "context was closed, or the instance was serialized to another process. It "
+#~ "has a persistent identity and can have a corresponding row in the "
+#~ "database. For detached instances, Hibernate does not guarantee the "
+#~ "relationship between persistent identity and Java identity."
+#~ msgstr ""
+#~ "L'instance a été associée au contexte de persistance mais ce contexte a "
+#~ "été fermé, ou l'instance a été sérialisée vers un autre processus. Elle "
+#~ "possède une identité persistante et peut-être un enregistrement "
+#~ "correspondant dans la base de données. Pour des instances détachées, "
+#~ "Hibernate ne donne aucune garantie sur la relation entre l'identité "
+#~ "persistante et l'identité Java. "
+
+#~ msgid ""
#~ "We do not have the scope in this document to provide a more detailed view "
#~ "of all the runtime architectures available; Hibernate is flexible and "
#~ "supports several different approaches. We will, however, show the two "
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/architecture.po 2010-07-21 05:38:09 UTC (rev 19987)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/architecture.po 2010-07-21 05:39:40 UTC (rev 19988)
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-21 05:26+0000\n"
+"POT-Creation-Date: 2010-07-21 05:38+0000\n"
"PO-Revision-Date: 2010-01-13 10:25+1000\n"
"Last-Translator: Xi HUANG <xhuang(a)redhat.com>\n"
"Language-Team: <en(a)li.org>\n"
@@ -157,7 +157,8 @@
"interfacename>. Once the <interfacename>org.hibernate.Session</"
"interfacename> is closed, they will be detached and free to use in any "
"application layer (for example, directly as data transfer objects to and "
-"from presentation). See"
+"from presentation). <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"永続化状態とビジネス機能を持つ、短命でシングルスレッドのオブジェクト。これは"
"通常の JavaBeans/POJO のこともありますが、特徴的なことは、その時点での(ただ1"
@@ -167,20 +168,21 @@
"レゼンテーション層から、またはプレゼンテーション層へ直接使用できます)。"
#. Tag: term
-#: architecture.xml:139
+#: architecture.xml:140
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr "Transient と detached な objects と Collections"
#. Tag: para
-#: architecture.xml:141
+#: architecture.xml:142
#, fuzzy, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<interfacename>org.hibernate.Session</interfacename>. They may have been "
"instantiated by the application and not yet persisted, or they may have been "
"instantiated by a closed <interfacename>org.hibernate.Session</"
-"interfacename>. See"
+"interfacename>. <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"現時点では <literal>Session</literal> と関連していない、永続クラスのインスタ"
"ンス。すでにアプリケーション側でインスタンス化されていて、まだ永続化されてい"
@@ -188,13 +190,13 @@
"どちらかです。"
#. Tag: term
-#: architecture.xml:151
+#: architecture.xml:152
#, fuzzy, no-c-format
msgid "Transaction (<interfacename>org.hibernate.Transaction</interfacename>)"
msgstr "Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:153
+#: architecture.xml:154
#, fuzzy, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
@@ -214,7 +216,7 @@
"とは、決してオプションではありません。"
#. Tag: term
-#: architecture.xml:164
+#: architecture.xml:165
#, fuzzy, no-c-format
msgid ""
"ConnectionProvider (<interfacename>org.hibernate.connection."
@@ -224,7 +226,7 @@
"literal>)"
#. Tag: para
-#: architecture.xml:166
+#: architecture.xml:167
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
@@ -239,7 +241,7 @@
"または実装することは可能です。"
#. Tag: term
-#: architecture.xml:175
+#: architecture.xml:176
#, fuzzy, no-c-format
msgid ""
"TransactionFactory (<interfacename>org.hibernate.TransactionFactory</"
@@ -248,7 +250,7 @@
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:177
+#: architecture.xml:178
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for <interfacename>org.hibernate.Transaction</"
@@ -259,13 +261,13 @@
"ケーションには公開されませんが、開発者が継承または実装することは可能です。"
#. Tag: emphasis
-#: architecture.xml:185
+#: architecture.xml:186
#, fuzzy, no-c-format
msgid "Extension Interfaces"
msgstr "<emphasis>Extension Interfaces</emphasis>"
#. Tag: para
-#: architecture.xml:187
+#: architecture.xml:188
#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
@@ -276,92 +278,13 @@
"インタフェースを用意しています。詳細は API ドキュメントを参照してください。"
#. Tag: title
-#: architecture.xml:199
-#, no-c-format
-msgid "Instance states"
-msgstr "インスタンスの状態"
-
-#. Tag: para
#: architecture.xml:200
#, no-c-format
-msgid ""
-"An instance of a persistent class can be in one of three different states. "
-"These states are defined in relation to a <emphasis>persistence context</"
-"emphasis>. The Hibernate <literal>Session</literal> object is the "
-"persistence context. The three different states are as follows:"
-msgstr ""
-"永続クラスのインスタンスは、次の3つの異なる状態のどれかになります。それは、 "
-"<emphasis>永続コンテキスト</emphasis> によって決まります。 Hibernate の "
-"<literal>Session</literal> オブジェクトが、永続コンテキストになります:"
-
-#. Tag: term
-#: architecture.xml:208
-#, no-c-format
-msgid "transient"
-msgstr "transient"
-
-#. Tag: para
-#: architecture.xml:210
-#, fuzzy, no-c-format
-msgid ""
-"The instance is not associated with any persistence context. It has no "
-"persistent identity or primary key value."
-msgstr ""
-"この状態のインスタンスは、現在もそして過去においても、永続コンテキストに関連"
-"づいていません。また、永続 ID (主キーの値)を 持っていません。"
-
-#. Tag: term
-#: architecture.xml:218
-#, no-c-format
-msgid "persistent"
-msgstr "persistent"
-
-#. Tag: para
-#: architecture.xml:220
-#, no-c-format
-msgid ""
-"The instance is currently associated with a persistence context. It has a "
-"persistent identity (primary key value) and can have a corresponding row in "
-"the database. For a particular persistence context, Hibernate "
-"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
-"Java identity in relation to the in-memory location of the object."
-msgstr ""
-"この状態のインスタンスは、その時点で永続コンテキストに関連づいています。ま"
-"た、永続 ID (主キーの値)を持ち、たいていはデータベースに対応する行を持って"
-"いるでしょう。特定の永続コンテキストのなかでは、永続 ID が Java の ID (オブ"
-"ジェクトのメモリ上の位置)と同じであることを Hibernate が <emphasis>保証</"
-"emphasis> します。"
-
-#. Tag: term
-#: architecture.xml:232
-#, no-c-format
-msgid "detached"
-msgstr "detached"
-
-#. Tag: para
-#: architecture.xml:234
-#, no-c-format
-msgid ""
-"The instance was once associated with a persistence context, but that "
-"context was closed, or the instance was serialized to another process. It "
-"has a persistent identity and can have a corresponding row in the database. "
-"For detached instances, Hibernate does not guarantee the relationship "
-"between persistent identity and Java identity."
-msgstr ""
-"この状態のインスタンスは、かつて永続コンテキストに関連づけられたが、そのコン"
-"テキストがクローズされたか、あるいは、他のプロセスにそのインスタンスがシリア"
-"ライズされたかです。このインスタンスは、永続 ID を持ち、たいていはデータベー"
-"スに対応する行を持っているでしょう。分離インスタンスに対しては、永続 ID と "
-"Java の ID との関連は、 Hibernate が保証しません。"
-
-#. Tag: title
-#: architecture.xml:249
-#, no-c-format
msgid "JMX Integration"
msgstr "JMX との統合"
#. Tag: para
-#: architecture.xml:251
+#: architecture.xml:202
#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
@@ -374,7 +297,7 @@
"hibernate.jmx.HibernateService</literal> という MBean 実装を用意しています。"
#. Tag: para
-#: architecture.xml:257
+#: architecture.xml:208
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
@@ -385,13 +308,13 @@
"<xref linkend=\"configuration-optional-statistics\"/> を見てください。"
#. Tag: title
-#: architecture.xml:264
+#: architecture.xml:215
#, no-c-format
msgid "Contextual sessions"
msgstr "コンテキスト上のセッション"
#. Tag: para
-#: architecture.xml:265
+#: architecture.xml:216
#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
@@ -416,7 +339,7 @@
"ワークを利用するかのいずれかでした。"
#. Tag: para
-#: architecture.xml:274
+#: architecture.xml:225
#, fuzzy, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
@@ -441,7 +364,7 @@
"「コンテキスト上のセッション」を使うしかないでしょう。"
#. Tag: para
-#: architecture.xml:284
+#: architecture.xml:235
#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
@@ -459,7 +382,7 @@
"current_session_context_class</literal> ) が追加されました。"
#. Tag: para
-#: architecture.xml:291
+#: architecture.xml:242
#, fuzzy, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
@@ -477,7 +400,7 @@
"す。"
#. Tag: para
-#: architecture.xml:301
+#: architecture.xml:252
#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
@@ -491,7 +414,7 @@
"Javadoc を参照してください。"
#. Tag: para
-#: architecture.xml:309
+#: architecture.xml:260
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
@@ -502,7 +425,7 @@
"さい。"
#. Tag: para
-#: architecture.xml:315
+#: architecture.xml:266
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
@@ -517,7 +440,7 @@
"ラッシュ、クローズしません。"
#. Tag: para
-#: architecture.xml:324
+#: architecture.xml:275
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -547,7 +470,7 @@
"\"transactions\"/> を参照してください。"
#. Tag: para
-#: architecture.xml:336
+#: architecture.xml:287
#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
@@ -570,8 +493,64 @@
"の値には、3つの実装の中から使用する実装クラスの名前を直接指定します。しかし、"
"\"jta\"、 \"thread\"、 \"managed\"というそれぞれの省略名も用意されています。"
+#~ msgid "Instance states"
+#~ msgstr "インスタンスの状態"
+
+#~ msgid ""
+#~ "An instance of a persistent class can be in one of three different "
+#~ "states. These states are defined in relation to a <emphasis>persistence "
+#~ "context</emphasis>. The Hibernate <literal>Session</literal> object is "
+#~ "the persistence context. The three different states are as follows:"
+#~ msgstr ""
+#~ "永続クラスのインスタンスは、次の3つの異なる状態のどれかになります。それ"
+#~ "は、 <emphasis>永続コンテキスト</emphasis> によって決まります。 Hibernate "
+#~ "の <literal>Session</literal> オブジェクトが、永続コンテキストになります:"
+
+#~ msgid "transient"
+#~ msgstr "transient"
+
#, fuzzy
#~ msgid ""
+#~ "The instance is not associated with any persistence context. It has no "
+#~ "persistent identity or primary key value."
+#~ msgstr ""
+#~ "この状態のインスタンスは、現在もそして過去においても、永続コンテキストに関"
+#~ "連づいていません。また、永続 ID (主キーの値)を 持っていません。"
+
+#~ msgid "persistent"
+#~ msgstr "persistent"
+
+#~ msgid ""
+#~ "The instance is currently associated with a persistence context. It has a "
+#~ "persistent identity (primary key value) and can have a corresponding row "
+#~ "in the database. For a particular persistence context, Hibernate "
+#~ "<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
+#~ "Java identity in relation to the in-memory location of the object."
+#~ msgstr ""
+#~ "この状態のインスタンスは、その時点で永続コンテキストに関連づいています。ま"
+#~ "た、永続 ID (主キーの値)を持ち、たいていはデータベースに対応する行を持っ"
+#~ "ているでしょう。特定の永続コンテキストのなかでは、永続 ID が Java の ID "
+#~ "(オブジェクトのメモリ上の位置)と同じであることを Hibernate が <emphasis>"
+#~ "保証</emphasis> します。"
+
+#~ msgid "detached"
+#~ msgstr "detached"
+
+#~ msgid ""
+#~ "The instance was once associated with a persistence context, but that "
+#~ "context was closed, or the instance was serialized to another process. It "
+#~ "has a persistent identity and can have a corresponding row in the "
+#~ "database. For detached instances, Hibernate does not guarantee the "
+#~ "relationship between persistent identity and Java identity."
+#~ msgstr ""
+#~ "この状態のインスタンスは、かつて永続コンテキストに関連づけられたが、そのコ"
+#~ "ンテキストがクローズされたか、あるいは、他のプロセスにそのインスタンスがシ"
+#~ "リアライズされたかです。このインスタンスは、永続 ID を持ち、たいていはデー"
+#~ "タベースに対応する行を持っているでしょう。分離インスタンスに対しては、永"
+#~ "続 ID と Java の ID との関連は、 Hibernate が保証しません。"
+
+#, fuzzy
+#~ msgid ""
#~ "We do not have the scope in this document to provide a more detailed view "
#~ "of all the runtime architectures available; Hibernate is flexible and "
#~ "supports several different approaches. We will, however, show the two "
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/architecture.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/architecture.pot 2010-07-21 05:38:09 UTC (rev 19987)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/architecture.pot 2010-07-21 05:39:40 UTC (rev 19988)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-21 05:26+0000\n"
+"POT-Creation-Date: 2010-07-21 05:38+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
@@ -107,191 +107,143 @@
#. Tag: para
#: architecture.xml:128
#, no-c-format
-msgid "Short-lived, single threaded objects containing persistent state and business function. These can be ordinary JavaBeans/POJOs. They are associated with exactly one <interfacename>org.hibernate.Session</interfacename>. Once the <interfacename>org.hibernate.Session</interfacename> is closed, they will be detached and free to use in any application layer (for example, directly as data transfer objects to and from presentation). See"
+msgid "Short-lived, single threaded objects containing persistent state and business function. These can be ordinary JavaBeans/POJOs. They are associated with exactly one <interfacename>org.hibernate.Session</interfacename>. Once the <interfacename>org.hibernate.Session</interfacename> is closed, they will be detached and free to use in any application layer (for example, directly as data transfer objects to and from presentation). <xref linkend=\"objectstate\"/> discusses transient, persistent and detached object states."
msgstr ""
#. Tag: term
-#: architecture.xml:139
+#: architecture.xml:140
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr ""
#. Tag: para
-#: architecture.xml:141
+#: architecture.xml:142
#, no-c-format
-msgid "Instances of persistent classes that are not currently associated with a <interfacename>org.hibernate.Session</interfacename>. They may have been instantiated by the application and not yet persisted, or they may have been instantiated by a closed <interfacename>org.hibernate.Session</interfacename>. See"
+msgid "Instances of persistent classes that are not currently associated with a <interfacename>org.hibernate.Session</interfacename>. They may have been instantiated by the application and not yet persisted, or they may have been instantiated by a closed <interfacename>org.hibernate.Session</interfacename>. <xref linkend=\"objectstate\"/> discusses transient, persistent and detached object states."
msgstr ""
#. Tag: term
-#: architecture.xml:151
+#: architecture.xml:152
#, no-c-format
msgid "Transaction (<interfacename>org.hibernate.Transaction</interfacename>)"
msgstr ""
#. Tag: para
-#: architecture.xml:153
+#: architecture.xml:154
#, no-c-format
msgid "(Optional) A single-threaded, short-lived object used by the application to specify atomic units of work. It abstracts the application from the underlying JDBC, JTA or CORBA transaction. A <interfacename>org.hibernate.Session</interfacename> might span several <interfacename>org.hibernate.Transaction</interfacename>s in some cases. However, transaction demarcation, either using the underlying API or <interfacename>org.hibernate.Transaction</interfacename>, is never optional."
msgstr ""
#. Tag: term
-#: architecture.xml:164
+#: architecture.xml:165
#, no-c-format
msgid "ConnectionProvider (<interfacename>org.hibernate.connection.ConnectionProvider</interfacename>)"
msgstr ""
#. Tag: para
-#: architecture.xml:166
+#: architecture.xml:167
#, no-c-format
msgid "(Optional) A factory for, and pool of, JDBC connections. It abstracts the application from underlying <interfacename>javax.sql.DataSource</interfacename> or <interfacename>java.sql.DriverManager</interfacename>. It is not exposed to application, but it can be extended and/or implemented by the developer."
msgstr ""
#. Tag: term
-#: architecture.xml:175
+#: architecture.xml:176
#, no-c-format
msgid "TransactionFactory (<interfacename>org.hibernate.TransactionFactory</interfacename>)"
msgstr ""
#. Tag: para
-#: architecture.xml:177
+#: architecture.xml:178
#, no-c-format
msgid "(Optional) A factory for <interfacename>org.hibernate.Transaction</interfacename> instances. It is not exposed to the application, but it can be extended and/or implemented by the developer."
msgstr ""
#. Tag: emphasis
-#: architecture.xml:185
+#: architecture.xml:186
#, no-c-format
msgid "Extension Interfaces"
msgstr ""
#. Tag: para
-#: architecture.xml:187
+#: architecture.xml:188
#, no-c-format
msgid "Hibernate offers a range of optional extension interfaces you can implement to customize the behavior of your persistence layer. See the API documentation for details."
msgstr ""
#. Tag: title
-#: architecture.xml:199
-#, no-c-format
-msgid "Instance states"
-msgstr ""
-
-#. Tag: para
#: architecture.xml:200
#, no-c-format
-msgid "An instance of a persistent class can be in one of three different states. These states are defined in relation to a <emphasis>persistence context</emphasis>. The Hibernate <literal>Session</literal> object is the persistence context. The three different states are as follows:"
-msgstr ""
-
-#. Tag: term
-#: architecture.xml:208
-#, no-c-format
-msgid "transient"
-msgstr ""
-
-#. Tag: para
-#: architecture.xml:210
-#, no-c-format
-msgid "The instance is not associated with any persistence context. It has no persistent identity or primary key value."
-msgstr ""
-
-#. Tag: term
-#: architecture.xml:218
-#, no-c-format
-msgid "persistent"
-msgstr ""
-
-#. Tag: para
-#: architecture.xml:220
-#, no-c-format
-msgid "The instance is currently associated with a persistence context. It has a persistent identity (primary key value) and can have a corresponding row in the database. For a particular persistence context, Hibernate <emphasis>guarantees</emphasis> that persistent identity is equivalent to Java identity in relation to the in-memory location of the object."
-msgstr ""
-
-#. Tag: term
-#: architecture.xml:232
-#, no-c-format
-msgid "detached"
-msgstr ""
-
-#. Tag: para
-#: architecture.xml:234
-#, no-c-format
-msgid "The instance was once associated with a persistence context, but that context was closed, or the instance was serialized to another process. It has a persistent identity and can have a corresponding row in the database. For detached instances, Hibernate does not guarantee the relationship between persistent identity and Java identity."
-msgstr ""
-
-#. Tag: title
-#: architecture.xml:249
-#, no-c-format
msgid "JMX Integration"
msgstr ""
#. Tag: para
-#: architecture.xml:251
+#: architecture.xml:202
#, no-c-format
msgid "JMX is the J2EE standard for the management of Java components. Hibernate can be managed via a JMX standard service. AN MBean implementation is provided in the distribution: <literal>org.hibernate.jmx.HibernateService</literal>."
msgstr ""
#. Tag: para
-#: architecture.xml:257
+#: architecture.xml:208
#, no-c-format
msgid "Another feature available as a JMX service is runtime Hibernate statistics. See <xref linkend=\"configuration-optional-statistics\"/> for more information."
msgstr ""
#. Tag: title
-#: architecture.xml:264
+#: architecture.xml:215
#, no-c-format
msgid "Contextual sessions"
msgstr ""
#. Tag: para
-#: architecture.xml:265
+#: architecture.xml:216
#, no-c-format
msgid "Most applications using Hibernate need some form of \"contextual\" session, where a given session is in effect throughout the scope of a given context. However, across applications the definition of what constitutes a context is typically different; different contexts define different scopes to the notion of current. Applications using Hibernate prior to version 3.0 tended to utilize either home-grown <literal>ThreadLocal</literal>-based contextual sessions, helper classes such as <literal>HibernateUtil</literal>, or utilized third-party frameworks, such as Spring or Pico, which provided proxy/interception-based contextual sessions."
msgstr ""
#. Tag: para
-#: architecture.xml:274
+#: architecture.xml:225
#, no-c-format
msgid "Starting with version 3.0.1, Hibernate added the <literal>SessionFactory.getCurrentSession()</literal> method. Initially, this assumed usage of <literal>JTA</literal> transactions, where the <literal>JTA</literal> transaction defined both the scope and context of a current session. Given the maturity of the numerous stand-alone <literal>JTA TransactionManager</literal> implementations, most, if not all, applications should be using <literal>JTA</literal> transaction management, whether or not they are deployed into a <literal>J2EE</literal> container. Based on that, the <literal>JTA</literal>-based contextual sessions are all you need to use."
msgstr ""
#. Tag: para
-#: architecture.xml:284
+#: architecture.xml:235
#, no-c-format
msgid "However, as of version 3.1, the processing behind <literal>SessionFactory.getCurrentSession()</literal> is now pluggable. To that end, a new extension interface, <literal>org.hibernate.context.CurrentSessionContext</literal>, and a new configuration parameter, <literal>hibernate.current_session_context_class</literal>, have been added to allow pluggability of the scope and context of defining current sessions."
msgstr ""
#. Tag: para
-#: architecture.xml:291
+#: architecture.xml:242
#, no-c-format
msgid "See the Javadocs for the <literal>org.hibernate.context.CurrentSessionContext</literal> interface for a detailed discussion of its contract. It defines a single method, <literal>currentSession()</literal>, by which the implementation is responsible for tracking the current contextual session. Out-of-the-box, Hibernate comes with three implementations of this interface:"
msgstr ""
#. Tag: para
-#: architecture.xml:301
+#: architecture.xml:252
#, no-c-format
msgid "<literal>org.hibernate.context.JTASessionContext</literal>: current sessions are tracked and scoped by a <literal>JTA</literal> transaction. The processing here is exactly the same as in the older JTA-only approach. See the Javadocs for details."
msgstr ""
#. Tag: para
-#: architecture.xml:309
+#: architecture.xml:260
#, no-c-format
msgid "<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current sessions are tracked by thread of execution. See the Javadocs for details."
msgstr ""
#. Tag: para
-#: architecture.xml:315
+#: architecture.xml:266
#, no-c-format
msgid "<literal>org.hibernate.context.ManagedSessionContext</literal>: current sessions are tracked by thread of execution. However, you are responsible to bind and unbind a <literal>Session</literal> instance with static methods on this class: it does not open, flush, or close a <literal>Session</literal>."
msgstr ""
#. Tag: para
-#: architecture.xml:324
+#: architecture.xml:275
#, no-c-format
msgid "The first two implementations provide a \"one session - one database transaction\" programming model. This is also known and used as <emphasis>session-per-request</emphasis>. The beginning and end of a Hibernate session is defined by the duration of a database transaction. If you use programmatic transaction demarcation in plain JSE without JTA, you are advised to use the Hibernate <literal>Transaction</literal> API to hide the underlying transaction system from your code. If you use JTA, you can utilize the JTA interfaces to demarcate transactions. If you execute in an EJB container that supports CMT, transaction boundaries are defined declaratively and you do not need any transaction or session demarcation operations in your code. Refer to <xref linkend=\"transactions\"/> for more information and code examples."
msgstr ""
#. Tag: para
-#: architecture.xml:336
+#: architecture.xml:287
#, no-c-format
msgid "The <literal>hibernate.current_session_context_class</literal> configuration parameter defines which <literal>org.hibernate.context.CurrentSessionContext</literal> implementation should be used. For backwards compatibility, if this configuration parameter is not set but a <literal>org.hibernate.transaction.TransactionManagerLookup</literal> is configured, Hibernate will use the <literal>org.hibernate.context.JTASessionContext</literal>. Typically, the value of this parameter would just name the implementation class to use. For the three out-of-the-box implementations, however, there are three corresponding short names: \"jta\", \"thread\", and \"managed\"."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/architecture.po 2010-07-21 05:38:09 UTC (rev 19987)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/architecture.po 2010-07-21 05:39:40 UTC (rev 19988)
@@ -108,7 +108,7 @@
msgstr ""
"Project-Id-Version: architecture\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-21 05:26+0000\n"
+"POT-Creation-Date: 2010-07-21 05:38+0000\n"
"PO-Revision-Date: 2010-03-17 10:18+1000\n"
"Last-Translator: \n"
"Language-Team: <en(a)li.org>\n"
@@ -262,7 +262,8 @@
"interfacename>. Once the <interfacename>org.hibernate.Session</"
"interfacename> is closed, they will be detached and free to use in any "
"application layer (for example, directly as data transfer objects to and "
-"from presentation). See"
+"from presentation). <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"Objetos, de vida curta, single threaded contendo estado persistente e função "
"de negócios. Esses podem ser JavaBeans/POJOs, onde a única coisa especial "
@@ -273,20 +274,21 @@
"apresentação)."
#. Tag: term
-#: architecture.xml:139
+#: architecture.xml:140
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr "Objetos e coleções desanexados e transientes"
#. Tag: para
-#: architecture.xml:141
+#: architecture.xml:142
#, fuzzy, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<interfacename>org.hibernate.Session</interfacename>. They may have been "
"instantiated by the application and not yet persisted, or they may have been "
"instantiated by a closed <interfacename>org.hibernate.Session</"
-"interfacename>. See"
+"interfacename>. <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"Instâncias de classes persistentes que ainda não estão associadas a uma "
"<literal>Session</literal>. Eles podem ter sido instanciados pela aplicação "
@@ -294,13 +296,13 @@
"<literal>Session</literal> encerrada."
#. Tag: term
-#: architecture.xml:151
+#: architecture.xml:152
#, fuzzy, no-c-format
msgid "Transaction (<interfacename>org.hibernate.Transaction</interfacename>)"
msgstr "Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:153
+#: architecture.xml:154
#, fuzzy, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
@@ -319,7 +321,7 @@
"<literal>Transaction</literal> subjacentes, nunca é opcional."
#. Tag: term
-#: architecture.xml:164
+#: architecture.xml:165
#, fuzzy, no-c-format
msgid ""
"ConnectionProvider (<interfacename>org.hibernate.connection."
@@ -329,7 +331,7 @@
"literal>)"
#. Tag: para
-#: architecture.xml:166
+#: architecture.xml:167
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
@@ -344,7 +346,7 @@
"estendido pelo programador. "
#. Tag: term
-#: architecture.xml:175
+#: architecture.xml:176
#, fuzzy, no-c-format
msgid ""
"TransactionFactory (<interfacename>org.hibernate.TransactionFactory</"
@@ -353,7 +355,7 @@
"Transaction Factory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:177
+#: architecture.xml:178
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for <interfacename>org.hibernate.Transaction</"
@@ -365,13 +367,13 @@
"programador."
#. Tag: emphasis
-#: architecture.xml:185
+#: architecture.xml:186
#, fuzzy, no-c-format
msgid "Extension Interfaces"
msgstr "<emphasis>Interfaces de Extensão</emphasis>"
#. Tag: para
-#: architecture.xml:187
+#: architecture.xml:188
#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
@@ -383,93 +385,13 @@
"API para maiores detalhes. "
#. Tag: title
-#: architecture.xml:199
-#, no-c-format
-msgid "Instance states"
-msgstr "Estados de instância"
-
-#. Tag: para
#: architecture.xml:200
#, no-c-format
-msgid ""
-"An instance of a persistent class can be in one of three different states. "
-"These states are defined in relation to a <emphasis>persistence context</"
-"emphasis>. The Hibernate <literal>Session</literal> object is the "
-"persistence context. The three different states are as follows:"
-msgstr ""
-"Uma instância de classes persistentes pode estar em um dos três diferentes "
-"estados, que são definidos respeitando um <emphasis>contexto persistente</"
-"emphasis>. O objeto <literal>Session</literal> do Hibernate é o contexto "
-"persistente. Os três diferentes estados são os seguintes:"
-
-#. Tag: term
-#: architecture.xml:208
-#, no-c-format
-msgid "transient"
-msgstr "transiente"
-
-#. Tag: para
-#: architecture.xml:210
-#, no-c-format
-msgid ""
-"The instance is not associated with any persistence context. It has no "
-"persistent identity or primary key value."
-msgstr ""
-"A instância não é associada a nenhum contexto persistente. Não possui uma "
-"identidade persistente ou valor de chave primária."
-
-#. Tag: term
-#: architecture.xml:218
-#, no-c-format
-msgid "persistent"
-msgstr "persistente"
-
-#. Tag: para
-#: architecture.xml:220
-#, no-c-format
-msgid ""
-"The instance is currently associated with a persistence context. It has a "
-"persistent identity (primary key value) and can have a corresponding row in "
-"the database. For a particular persistence context, Hibernate "
-"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
-"Java identity in relation to the in-memory location of the object."
-msgstr ""
-"A instância está atualmente associada a um contexto persistente. Possui uma "
-"identidade persistente (valor de chave primária) e, talvez, correspondente a "
-"uma fila no banco de dados. Para um contexto persistente em particular, o "
-"Hibernate <emphasis>garante</emphasis> que a identidade persistente é "
-"equivalente à identidade Java (na localização em memória do objeto)."
-
-#. Tag: term
-#: architecture.xml:232
-#, no-c-format
-msgid "detached"
-msgstr "desanexado"
-
-#. Tag: para
-#: architecture.xml:234
-#, no-c-format
-msgid ""
-"The instance was once associated with a persistence context, but that "
-"context was closed, or the instance was serialized to another process. It "
-"has a persistent identity and can have a corresponding row in the database. "
-"For detached instances, Hibernate does not guarantee the relationship "
-"between persistent identity and Java identity."
-msgstr ""
-"A instância foi associada com um contexto persistente, porém este contexto "
-"foi fechado, ou a instância foi serializada por outro processo. Possui uma "
-"identidade persistente, e, talvez, corresponda a uma fila no banco de dados. "
-"Para instâncias desanexadas, o Hibernate não garante o relacionamento entre "
-"identidade persistente e identidade Java."
-
-#. Tag: title
-#: architecture.xml:249
-#, no-c-format
msgid "JMX Integration"
msgstr "Integração JMX"
#. Tag: para
-#: architecture.xml:251
+#: architecture.xml:202
#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
@@ -483,7 +405,7 @@
"HibernateService</literal>."
#. Tag: para
-#: architecture.xml:257
+#: architecture.xml:208
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
@@ -495,13 +417,13 @@
">para maiores informações."
#. Tag: title
-#: architecture.xml:264
+#: architecture.xml:215
#, no-c-format
msgid "Contextual sessions"
msgstr "Sessões Contextuais"
#. Tag: para
-#: architecture.xml:265
+#: architecture.xml:216
#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
@@ -525,7 +447,7 @@
"baseadas em proxy."
#. Tag: para
-#: architecture.xml:274
+#: architecture.xml:225
#, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
@@ -550,7 +472,7 @@
"sessões contextuais baseadas em <literal>JTA</literal>. "
#. Tag: para
-#: architecture.xml:284
+#: architecture.xml:235
#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
@@ -569,7 +491,7 @@
"definição de sessões correntes."
#. Tag: para
-#: architecture.xml:291
+#: architecture.xml:242
#, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
@@ -586,7 +508,7 @@
"Hibernate surge com três implementações dessa interface:"
#. Tag: para
-#: architecture.xml:301
+#: architecture.xml:252
#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
@@ -600,7 +522,7 @@
"JTA somente. Consulte em Javadocs para maiores detalhes."
#. Tag: para
-#: architecture.xml:309
+#: architecture.xml:260
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
@@ -611,7 +533,7 @@
"consulte em Javadocs para maiores detalhes. "
#. Tag: para
-#: architecture.xml:315
+#: architecture.xml:266
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
@@ -626,7 +548,7 @@
"uma <literal>Session</literal>. "
#. Tag: para
-#: architecture.xml:324
+#: architecture.xml:275
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -656,7 +578,7 @@
"\" /> para mais informações e exemplos de código."
#. Tag: para
-#: architecture.xml:336
+#: architecture.xml:287
#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
@@ -681,7 +603,64 @@
"para as três implementações fora da caixa, entretanto, há dois pequenos "
"nomes correspondentes, \"jta\", \"thread\", e \"managed\"."
+#~ msgid "Instance states"
+#~ msgstr "Estados de instância"
+
#~ msgid ""
+#~ "An instance of a persistent class can be in one of three different "
+#~ "states. These states are defined in relation to a <emphasis>persistence "
+#~ "context</emphasis>. The Hibernate <literal>Session</literal> object is "
+#~ "the persistence context. The three different states are as follows:"
+#~ msgstr ""
+#~ "Uma instância de classes persistentes pode estar em um dos três "
+#~ "diferentes estados, que são definidos respeitando um <emphasis>contexto "
+#~ "persistente</emphasis>. O objeto <literal>Session</literal> do Hibernate "
+#~ "é o contexto persistente. Os três diferentes estados são os seguintes:"
+
+#~ msgid "transient"
+#~ msgstr "transiente"
+
+#~ msgid ""
+#~ "The instance is not associated with any persistence context. It has no "
+#~ "persistent identity or primary key value."
+#~ msgstr ""
+#~ "A instância não é associada a nenhum contexto persistente. Não possui uma "
+#~ "identidade persistente ou valor de chave primária."
+
+#~ msgid "persistent"
+#~ msgstr "persistente"
+
+#~ msgid ""
+#~ "The instance is currently associated with a persistence context. It has a "
+#~ "persistent identity (primary key value) and can have a corresponding row "
+#~ "in the database. For a particular persistence context, Hibernate "
+#~ "<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
+#~ "Java identity in relation to the in-memory location of the object."
+#~ msgstr ""
+#~ "A instância está atualmente associada a um contexto persistente. Possui "
+#~ "uma identidade persistente (valor de chave primária) e, talvez, "
+#~ "correspondente a uma fila no banco de dados. Para um contexto persistente "
+#~ "em particular, o Hibernate <emphasis>garante</emphasis> que a identidade "
+#~ "persistente é equivalente à identidade Java (na localização em memória do "
+#~ "objeto)."
+
+#~ msgid "detached"
+#~ msgstr "desanexado"
+
+#~ msgid ""
+#~ "The instance was once associated with a persistence context, but that "
+#~ "context was closed, or the instance was serialized to another process. It "
+#~ "has a persistent identity and can have a corresponding row in the "
+#~ "database. For detached instances, Hibernate does not guarantee the "
+#~ "relationship between persistent identity and Java identity."
+#~ msgstr ""
+#~ "A instância foi associada com um contexto persistente, porém este "
+#~ "contexto foi fechado, ou a instância foi serializada por outro processo. "
+#~ "Possui uma identidade persistente, e, talvez, corresponda a uma fila no "
+#~ "banco de dados. Para instâncias desanexadas, o Hibernate não garante o "
+#~ "relacionamento entre identidade persistente e identidade Java."
+
+#~ msgid ""
#~ "We do not have the scope in this document to provide a more detailed view "
#~ "of all the runtime architectures available; Hibernate is flexible and "
#~ "supports several different approaches. We will, however, show the two "
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/architecture.po 2010-07-21 05:38:09 UTC (rev 19987)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/architecture.po 2010-07-21 05:39:40 UTC (rev 19988)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-21 05:26+0000\n"
+"POT-Creation-Date: 2010-07-21 05:38+0000\n"
"PO-Revision-Date: 2010-03-15 08:47+1000\n"
"Last-Translator: Xi HUANG <xhuang(a)redhat.com>\n"
"Language-Team: <en(a)li.org>\n"
@@ -153,7 +153,8 @@
"interfacename>. Once the <interfacename>org.hibernate.Session</"
"interfacename> is closed, they will be detached and free to use in any "
"application layer (for example, directly as data transfer objects to and "
-"from presentation). See"
+"from presentation). <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"带有持久化状态的、具有业务功能的单线程对象,此对象生存期很短。这些对象可能是"
"普通的JavaBeans/POJO,唯一特殊的是他们正与(仅仅一个)<literal>Session</"
@@ -162,33 +163,34 @@
"据传输对象)。"
#. Tag: term
-#: architecture.xml:139
+#: architecture.xml:140
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr "瞬态(transient)和脱管(detached)的对象及其集合"
#. Tag: para
-#: architecture.xml:141
+#: architecture.xml:142
#, fuzzy, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<interfacename>org.hibernate.Session</interfacename>. They may have been "
"instantiated by the application and not yet persisted, or they may have been "
"instantiated by a closed <interfacename>org.hibernate.Session</"
-"interfacename>. See"
+"interfacename>. <xref linkend=\"objectstate\"/> discusses transient, "
+"persistent and detached object states."
msgstr ""
"那些目前没有与 <literal>Session</literal>关联的持久化类实例。他们可能是在被应"
"用程序实例化后,尚未进行持久化的对象。也可能是因为实例化他们的 "
"<literal>Session</literal> 已经被关闭而脱离持久化的对象。"
#. Tag: term
-#: architecture.xml:151
+#: architecture.xml:152
#, fuzzy, no-c-format
msgid "Transaction (<interfacename>org.hibernate.Transaction</interfacename>)"
msgstr "事务 Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:153
+#: architecture.xml:154
#, fuzzy, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
@@ -206,7 +208,7 @@
"<literal>Transaction</literal> 对象,事务边界的开启与关闭是必需的。 "
#. Tag: term
-#: architecture.xml:164
+#: architecture.xml:165
#, fuzzy, no-c-format
msgid ""
"ConnectionProvider (<interfacename>org.hibernate.connection."
@@ -216,7 +218,7 @@
"literal>)"
#. Tag: para
-#: architecture.xml:166
+#: architecture.xml:167
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
@@ -230,7 +232,7 @@
"开。仅供开发者扩展/实现用,并不开放给应用程序使用。"
#. Tag: term
-#: architecture.xml:175
+#: architecture.xml:176
#, fuzzy, no-c-format
msgid ""
"TransactionFactory (<interfacename>org.hibernate.TransactionFactory</"
@@ -239,7 +241,7 @@
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:177
+#: architecture.xml:178
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for <interfacename>org.hibernate.Transaction</"
@@ -250,13 +252,13 @@
"实现用,并不开发能够给应用程序使用。"
#. Tag: emphasis
-#: architecture.xml:185
+#: architecture.xml:186
#, fuzzy, no-c-format
msgid "Extension Interfaces"
msgstr "<emphasis>扩展接口</emphasis> "
#. Tag: para
-#: architecture.xml:187
+#: architecture.xml:188
#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
@@ -267,89 +269,13 @@
"为。具体请参考 API 文档。"
#. Tag: title
-#: architecture.xml:199
-#, no-c-format
-msgid "Instance states"
-msgstr "实例状态"
-
-#. Tag: para
#: architecture.xml:200
#, no-c-format
-msgid ""
-"An instance of a persistent class can be in one of three different states. "
-"These states are defined in relation to a <emphasis>persistence context</"
-"emphasis>. The Hibernate <literal>Session</literal> object is the "
-"persistence context. The three different states are as follows:"
-msgstr ""
-"一个持久化类的实例可能处于三种不同状态中的某一种。这三种状态的定义则与所谓的"
-"<emphasis>持久化上下文(persistence context)</emphasis>有关。Hibernate 的 "
-"<literal>Session</literal> 对象就是这个所谓的持久化上下文。这三种不同的状态如"
-"下:"
-
-#. Tag: term
-#: architecture.xml:208
-#, no-c-format
-msgid "transient"
-msgstr "瞬态(transient)"
-
-#. Tag: para
-#: architecture.xml:210
-#, no-c-format
-msgid ""
-"The instance is not associated with any persistence context. It has no "
-"persistent identity or primary key value."
-msgstr ""
-"该实例从未与任何持久化上下文关联过。它没有持久化标识(相当于主键值)。 "
-
-#. Tag: term
-#: architecture.xml:218
-#, no-c-format
-msgid "persistent"
-msgstr "持久化(persistent)"
-
-#. Tag: para
-#: architecture.xml:220
-#, no-c-format
-msgid ""
-"The instance is currently associated with a persistence context. It has a "
-"persistent identity (primary key value) and can have a corresponding row in "
-"the database. For a particular persistence context, Hibernate "
-"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
-"Java identity in relation to the in-memory location of the object."
-msgstr ""
-"实例目前与某个持久化上下文有关联。它拥有持久化标识(相当于主键值),并且可能"
-"在数据库中有一个对应的行。对于某一个特定的持久化上下文,Hibernate <emphasis>"
-"保证</emphasis> 持久化标识与 Java 标识(其值代表对象在内存中的位置)等价。 "
-
-#. Tag: term
-#: architecture.xml:232
-#, no-c-format
-msgid "detached"
-msgstr "脱管(detached)"
-
-#. Tag: para
-#: architecture.xml:234
-#, no-c-format
-msgid ""
-"The instance was once associated with a persistence context, but that "
-"context was closed, or the instance was serialized to another process. It "
-"has a persistent identity and can have a corresponding row in the database. "
-"For detached instances, Hibernate does not guarantee the relationship "
-"between persistent identity and Java identity."
-msgstr ""
-"实例曾经与某个持久化上下文发生过关联,不过那个上下文被关闭了,或者这个实例是"
-"被序列化(serialize)到另外的进程。它拥有持久化标识,并且在数据库中可能存在一"
-"个对应的行。对于脱管状态的实例,Hibernate 不保证任何持久化标识和 Java 标识的"
-"关系。 "
-
-#. Tag: title
-#: architecture.xml:249
-#, no-c-format
msgid "JMX Integration"
msgstr "JMX 整合"
#. Tag: para
-#: architecture.xml:251
+#: architecture.xml:202
#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
@@ -362,7 +288,7 @@
"jmx.HibernateService</literal>。 "
#. Tag: para
-#: architecture.xml:257
+#: architecture.xml:208
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
@@ -373,13 +299,13 @@
"息。参看 <xref linkend=\"configuration-optional-statistics\"/>。 "
#. Tag: title
-#: architecture.xml:264
+#: architecture.xml:215
#, no-c-format
msgid "Contextual sessions"
msgstr "上下文相关的会话(Contextual Session)"
#. Tag: para
-#: architecture.xml:265
+#: architecture.xml:216
#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
@@ -402,7 +328,7 @@
"上下文相关的会话。"
#. Tag: para
-#: architecture.xml:274
+#: architecture.xml:225
#, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
@@ -424,7 +350,7 @@
"用 <literal>JTA</literal> 的上下文相关的会话可以满足你一切需要。"
#. Tag: para
-#: architecture.xml:284
+#: architecture.xml:235
#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
@@ -441,7 +367,7 @@
"(scope)和上下文(context)的定义进行拔插。"
#. Tag: para
-#: architecture.xml:291
+#: architecture.xml:242
#, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
@@ -457,7 +383,7 @@
"的会话。Hibernate 内置了此接口的三种实现:"
#. Tag: para
-#: architecture.xml:301
+#: architecture.xml:252
#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
@@ -470,7 +396,7 @@
"的。详情请参阅 Javadoc。"
#. Tag: para
-#: architecture.xml:309
+#: architecture.xml:260
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
@@ -480,7 +406,7 @@
"通过当前执行的线程来跟踪和界定。详情也请参阅 Javadoc。"
#. Tag: para
-#: architecture.xml:315
+#: architecture.xml:266
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
@@ -494,7 +420,7 @@
"flush 或者关闭(close)任何 <literal>Session</literal>。"
#. Tag: para
-#: architecture.xml:324
+#: architecture.xml:275
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -520,7 +446,7 @@
"阅读更多的内容和示例代码。 "
#. Tag: para
-#: architecture.xml:336
+#: architecture.xml:287
#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
@@ -542,7 +468,60 @@
"的值指明了要使用的实现类的全名,但那三种内置的实现可以使用简写,即 \"jta\"、"
"\"thread\" 和 \"managed\"。 "
+#~ msgid "Instance states"
+#~ msgstr "实例状态"
+
#~ msgid ""
+#~ "An instance of a persistent class can be in one of three different "
+#~ "states. These states are defined in relation to a <emphasis>persistence "
+#~ "context</emphasis>. The Hibernate <literal>Session</literal> object is "
+#~ "the persistence context. The three different states are as follows:"
+#~ msgstr ""
+#~ "一个持久化类的实例可能处于三种不同状态中的某一种。这三种状态的定义则与所谓"
+#~ "的<emphasis>持久化上下文(persistence context)</emphasis>有关。Hibernate "
+#~ "的 <literal>Session</literal> 对象就是这个所谓的持久化上下文。这三种不同的"
+#~ "状态如下:"
+
+#~ msgid "transient"
+#~ msgstr "瞬态(transient)"
+
+#~ msgid ""
+#~ "The instance is not associated with any persistence context. It has no "
+#~ "persistent identity or primary key value."
+#~ msgstr ""
+#~ "该实例从未与任何持久化上下文关联过。它没有持久化标识(相当于主键值)。 "
+
+#~ msgid "persistent"
+#~ msgstr "持久化(persistent)"
+
+#~ msgid ""
+#~ "The instance is currently associated with a persistence context. It has a "
+#~ "persistent identity (primary key value) and can have a corresponding row "
+#~ "in the database. For a particular persistence context, Hibernate "
+#~ "<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
+#~ "Java identity in relation to the in-memory location of the object."
+#~ msgstr ""
+#~ "实例目前与某个持久化上下文有关联。它拥有持久化标识(相当于主键值),并且可"
+#~ "能在数据库中有一个对应的行。对于某一个特定的持久化上下文,Hibernate "
+#~ "<emphasis>保证</emphasis> 持久化标识与 Java 标识(其值代表对象在内存中的位"
+#~ "置)等价。 "
+
+#~ msgid "detached"
+#~ msgstr "脱管(detached)"
+
+#~ msgid ""
+#~ "The instance was once associated with a persistence context, but that "
+#~ "context was closed, or the instance was serialized to another process. It "
+#~ "has a persistent identity and can have a corresponding row in the "
+#~ "database. For detached instances, Hibernate does not guarantee the "
+#~ "relationship between persistent identity and Java identity."
+#~ msgstr ""
+#~ "实例曾经与某个持久化上下文发生过关联,不过那个上下文被关闭了,或者这个实例"
+#~ "是被序列化(serialize)到另外的进程。它拥有持久化标识,并且在数据库中可能"
+#~ "存在一个对应的行。对于脱管状态的实例,Hibernate 不保证任何持久化标识和 "
+#~ "Java 标识的关系。 "
+
+#~ msgid ""
#~ "We do not have the scope in this document to provide a more detailed view "
#~ "of all the runtime architectures available; Hibernate is flexible and "
#~ "supports several different approaches. We will, however, show the two "
14 years, 4 months
Hibernate SVN: r19987 - entitymanager/branches/v3_4_0_GA_CP.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2010-07-21 01:38:09 -0400 (Wed, 21 Jul 2010)
New Revision: 19987
Modified:
entitymanager/branches/v3_4_0_GA_CP/pom.xml
Log:
JBPAPP-4693 use jboss-transaction-api to replace jta api in hibernate components
Modified: entitymanager/branches/v3_4_0_GA_CP/pom.xml
===================================================================
--- entitymanager/branches/v3_4_0_GA_CP/pom.xml 2010-07-21 05:33:45 UTC (rev 19986)
+++ entitymanager/branches/v3_4_0_GA_CP/pom.xml 2010-07-21 05:38:09 UTC (rev 19987)
@@ -75,10 +75,10 @@
<artifactId>dom4j</artifactId>
</dependency>
<dependency>
- <groupId>javax.transaction</groupId>
- <artifactId>jta</artifactId>
- <version>1.1</version>
- </dependency>
+ <groupId>org.jboss.javaee</groupId>
+ <artifactId>jboss-transaction-api</artifactId>
+ <version>1.0.1.GA</version>
+ </dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
14 years, 4 months
Hibernate SVN: r19986 - in core/trunk/documentation/manual/src/main/docbook: pot and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-07-21 01:33:45 -0400 (Wed, 21 Jul 2010)
New Revision: 19986
Modified:
core/trunk/documentation/manual/src/main/docbook/en-US/HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml
core/trunk/documentation/manual/src/main/docbook/pot/HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.pot
Log:
HHH-5397 - Odds and ends from documentation merge : had types.xml in wrong position
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml 2010-07-21 05:31:51 UTC (rev 19985)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml 2010-07-21 05:33:45 UTC (rev 19986)
@@ -75,8 +75,8 @@
<xi:include href="content/basic_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/type.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/collection_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/type.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/association_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/component_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/inheritance_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Modified: core/trunk/documentation/manual/src/main/docbook/pot/HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.pot 2010-07-21 05:31:51 UTC (rev 19985)
+++ core/trunk/documentation/manual/src/main/docbook/pot/HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.pot 2010-07-21 05:33:45 UTC (rev 19986)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-07-21 04:23+0000\n"
+"POT-Creation-Date: 2010-07-21 05:33+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
14 years, 4 months