Hibernate SVN: r14126 - core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder.
by hibernate-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-10-19 18:27:20 -0400 (Fri, 19 Oct 2007)
New Revision: 14126
Modified:
core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/MultiplexingCacheInstanceManager.java
Log:
Add some timestamp cache validation
Modified: core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/MultiplexingCacheInstanceManager.java
===================================================================
--- core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/MultiplexingCacheInstanceManager.java 2007-10-19 21:06:44 UTC (rev 14125)
+++ core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/MultiplexingCacheInstanceManager.java 2007-10-19 22:27:20 UTC (rev 14126)
@@ -28,6 +28,7 @@
import org.hibernate.cache.CacheException;
import org.hibernate.cache.jbc2.CacheInstanceManager;
+import org.hibernate.cache.jbc2.util.CacheHelper;
import org.hibernate.cfg.Settings;
import org.hibernate.transaction.TransactionManagerLookup;
import org.hibernate.util.PropertiesHelper;
@@ -217,6 +218,12 @@
* {@inheritDoc}
*/
public Cache getQueryCacheInstance() {
+
+ if (jbcQueryCache != null && jbcTsCache == null) {
+ // This should only be possible if the caches are constructor injected
+ throw new CacheException("Timestamps cache must be configured if a query cache is used");
+ }
+
return jbcQueryCache;
}
@@ -224,7 +231,11 @@
* {@inheritDoc}
*/
public Cache getTimestampsCacheInstance() {
- return jbcTsCache;
+
+ if (jbcTsCache != null && CacheHelper.isClusteredInvalidation(jbcTsCache)) {
+ throw new CacheException("Clustered invalidation not supported for timestamps cache");
+ }
+ return jbcTsCache;
}
/**
@@ -325,12 +336,18 @@
}
if (jbcQueryCache != null) {
- configureTransactionManager(jbcQueryCache, tm, false);
- jbcQueryCache.start();
- }
+ configureTransactionManager(jbcQueryCache, tm, false);
+ jbcQueryCache.start();
+ // TODO: I considered validating the presence of the TS cache here,
+ // but decided to defer unti getQueryCacheInstance() in case the
+ // cache is never actually used
+ }
if (jbcTsCache != null) {
- configureTransactionManager(jbcTsCache, tm, true);
- jbcTsCache.start();
+ configureTransactionManager(jbcTsCache, tm, true);
+ jbcTsCache.start();
+ // TODO: I considered validating TS cache config here,
+ // but decided to defer unti getTimestampsCacheInstance() in case the
+ // cache is never actually used
}
}
else {
17 years, 2 months
Hibernate SVN: r14125 - core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2.
by hibernate-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-10-19 17:06:44 -0400 (Fri, 19 Oct 2007)
New Revision: 14125
Modified:
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java
Log:
Test toMap() on an empty region
Modified: core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java
===================================================================
--- core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java 2007-10-19 19:32:36 UTC (rev 14124)
+++ core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java 2007-10-19 21:06:44 UTC (rev 14125)
@@ -116,10 +116,14 @@
Region region = createRegion(regionFactory, "test/test", cfg.getProperties(), getCacheDataDescription());
+ Map map = region.toMap();
+ assertNotNull(map);
+ assertEquals(0, map.size());
+
putInRegion(region, "key1", "value1");
putInRegion(region, "key2", "value2");
- Map map = region.toMap();
+ map = region.toMap();
assertNotNull(map);
assertEquals(2, map.size());
assertEquals("value1", map.get("key1"));
17 years, 2 months
Hibernate SVN: r14124 - in core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2: collection and 1 other directories.
by hibernate-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-10-19 15:32:36 -0400 (Fri, 19 Oct 2007)
New Revision: 14124
Modified:
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/collection/CollectionRegionImplTestCase.java
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/entity/EntityRegionImplTestCase.java
Log:
Add tests of Region.toMap()
Modified: core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java
===================================================================
--- core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java 2007-10-19 19:29:57 UTC (rev 14123)
+++ core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java 2007-10-19 19:32:36 UTC (rev 14124)
@@ -21,6 +21,7 @@
import org.hibernate.cache.GeneralDataRegion;
import org.hibernate.cache.QueryResultsRegion;
+import org.hibernate.cache.Region;
import org.hibernate.cache.jbc2.JBossCacheRegionFactory;
import org.hibernate.cache.jbc2.MultiplexedJBossCacheRegionFactory;
import org.hibernate.cache.jbc2.builder.MultiplexingCacheInstanceManager;
@@ -50,6 +51,16 @@
super(name);
}
+ @Override
+ protected void putInRegion(Region region, Object key, Object value) {
+ ((GeneralDataRegion) region).put(key, value);
+ }
+
+ @Override
+ protected void removeFromRegion(Region region, Object key) {
+ ((GeneralDataRegion) region).evict(key);
+ }
+
/**
* Test method for {@link QueryResultsRegion#evict(java.lang.Object)}.
*
Modified: core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java
===================================================================
--- core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java 2007-10-19 19:29:57 UTC (rev 14123)
+++ core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java 2007-10-19 19:32:36 UTC (rev 14124)
@@ -16,6 +16,7 @@
package org.hibernate.test.cache.jbc2;
+import java.util.Map;
import java.util.Properties;
import org.hibernate.cache.CacheDataDescription;
@@ -109,14 +110,40 @@
assertNull("No region node", localCache.getRoot().getChild( regionFqn ));
}
+ public void testToMap() throws Exception {
+ Configuration cfg = CacheTestUtil.buildConfiguration("test", SharedJBossCacheRegionFactory.class, true, true);
+ JBossCacheRegionFactory regionFactory = CacheTestUtil.startRegionFactory(cfg, getCacheTestSupport());
+
+ Region region = createRegion(regionFactory, "test/test", cfg.getProperties(), getCacheDataDescription());
+
+ putInRegion(region, "key1", "value1");
+ putInRegion(region, "key2", "value2");
+
+ Map map = region.toMap();
+ assertNotNull(map);
+ assertEquals(2, map.size());
+ assertEquals("value1", map.get("key1"));
+ assertEquals("value2", map.get("key2"));
+
+ removeFromRegion(region, "key1");
+
+ map = region.toMap();
+ assertNotNull(map);
+ assertEquals(1, map.size());
+ assertEquals("value2", map.get("key2"));
+ }
+
protected abstract Cache getJBossCache(JBossCacheRegionFactory regionFactory);
protected abstract Fqn getRegionFqn(String regionName, String regionPrefix);
protected abstract Region createRegion(JBossCacheRegionFactory regionFactory, String regionName, Properties properties, CacheDataDescription cdd);
+ protected abstract void putInRegion(Region region, Object key, Object value);
+ protected abstract void removeFromRegion(Region region, Object key);
+
protected CacheDataDescription getCacheDataDescription() {
return new CacheDataDescriptionImpl(true, true, ComparableComparator.INSTANCE);
- }
+ }
}
Modified: core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/collection/CollectionRegionImplTestCase.java
===================================================================
--- core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/collection/CollectionRegionImplTestCase.java 2007-10-19 19:29:57 UTC (rev 14123)
+++ core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/collection/CollectionRegionImplTestCase.java 2007-10-19 19:32:36 UTC (rev 14124)
@@ -49,6 +49,7 @@
super(name);
}
+ @Override
protected void supportedAccessTypeTest(RegionFactory regionFactory, Properties properties) {
CollectionRegion region = regionFactory.buildCollectionRegion("test", properties, null);
@@ -92,6 +93,15 @@
protected Fqn getRegionFqn(String regionName, String regionPrefix) {
return BasicRegionAdapter.getTypeLastRegionFqn(regionName, regionPrefix, CollectionRegionImpl.TYPE);
}
+
+ @Override
+ protected void putInRegion(Region region, Object key, Object value) {
+ ((CollectionRegion) region).buildAccessStrategy(AccessType.TRANSACTIONAL).putFromLoad(key, value, System.currentTimeMillis(), new Integer(1));
+ }
+
+ @Override
+ protected void removeFromRegion(Region region, Object key) {
+ ((CollectionRegion) region).buildAccessStrategy(AccessType.TRANSACTIONAL).remove(key);
+ }
-
}
Modified: core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/entity/EntityRegionImplTestCase.java
===================================================================
--- core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/entity/EntityRegionImplTestCase.java 2007-10-19 19:29:57 UTC (rev 14123)
+++ core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/entity/EntityRegionImplTestCase.java 2007-10-19 19:32:36 UTC (rev 14124)
@@ -49,6 +49,7 @@
super(name);
}
+ @Override
protected void supportedAccessTypeTest(RegionFactory regionFactory, Properties properties) {
EntityRegion region = regionFactory.buildEntityRegion("test", properties, null);
@@ -93,6 +94,16 @@
protected Fqn getRegionFqn(String regionName, String regionPrefix) {
return BasicRegionAdapter.getTypeLastRegionFqn(regionName, regionPrefix, EntityRegionImpl.TYPE);
}
+
+ @Override
+ protected void putInRegion(Region region, Object key, Object value) {
+ ((EntityRegion) region).buildAccessStrategy(AccessType.TRANSACTIONAL).insert(key, value, new Integer(1));
+ }
+
+ @Override
+ protected void removeFromRegion(Region region, Object key) {
+ ((EntityRegion) region).buildAccessStrategy(AccessType.TRANSACTIONAL).remove(key);
+ }
}
17 years, 2 months
Hibernate SVN: r14123 - core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/timestamp.
by hibernate-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-10-19 15:29:57 -0400 (Fri, 19 Oct 2007)
New Revision: 14123
Modified:
core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/timestamp/TimestampsRegionImpl.java
Log:
Get rid of "never" go backwards enforcement, as preinvalidate()/invalidate() sequence is 99.99% likely to go backwards
Modified: core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/timestamp/TimestampsRegionImpl.java
===================================================================
--- core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/timestamp/TimestampsRegionImpl.java 2007-10-19 19:27:21 UTC (rev 14122)
+++ core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/timestamp/TimestampsRegionImpl.java 2007-10-19 19:29:57 UTC (rev 14123)
@@ -38,15 +38,13 @@
/**
* Defines the behavior of the timestamps cache region for JBossCache 2.x.
- * <p>
- * Maintains a local (authoritative) cache of timestamps along with the
- * distributed cache held in JBoss Cache. Listens for changes in the distributed
- * cache and updates the local cache accordingly. Ensures that any changes in
- * the local cache represent an increase in the timestamp. This approach allows
- * timestamp changes to be replicated asynchronously by JBoss Cache while still
- * preventing backward changes in timestamps.
- * </p>
*
+ * TODO Need to define a way to ensure asynchronous replication events
+ * do not result in timestamps moving backward, while dealing with the fact
+ * that the normal sequence of UpdateTimestampsCache.preinvalidate() then
+ * UpdateTimestampsCache.invalidate() will result in 2 calls to put() with
+ * the latter call having an earlier timestamp.
+ *
* @author Brian Stansberry
* @version $Revision$
*/
@@ -54,9 +52,9 @@
public class TimestampsRegionImpl extends TransactionalDataRegionAdapter implements TimestampsRegion {
public static final String TYPE = "TS";
-
- private final Map localCache = new ConcurrentHashMap();
+ private Map localCache = new ConcurrentHashMap();
+
/**
* Create a new TimestampsRegionImpl.
*
@@ -81,14 +79,12 @@
public void evict(Object key) throws CacheException {
// TODO Is this a valid operation on a timestamps cache?
- localCache.remove(key);
Option opt = getNonLockingDataVersionOption(true);
CacheHelper.removeNode(getCacheInstance(), getRegionFqn(), key, opt);
}
public void evictAll() throws CacheException {
// TODO Is this a valid operation on a timestamps cache?
- localCache.clear();
Option opt = getNonLockingDataVersionOption(true);
CacheHelper.removeAll(getCacheInstance(), getRegionFqn(), opt);
// Restore the region root node
@@ -97,50 +93,35 @@
public Object get(Object key) throws CacheException {
- Object timestamp = localCache.get(key);
- if (timestamp == null) {
- // Check the cluster-wide cache
- // Don't hold the cache node lock throughout the tx, as that
- // prevents updates
- timestamp = suspendAndGet(key, null, false);
- updateLocalCache(key, timestamp);
+ Object value = localCache.get(key);
+ if (value == null) {
+ value = suspendAndGet(key, null, false);
+ if (value != null)
+ localCache.put(key, value);
}
- return timestamp;
+ return value;
}
public void put(Object key, Object value) throws CacheException {
- // Immediately update the local cache
- boolean incremented = updateLocalCache(key, value);
-
- if (incremented) {
- // Now the cluster-wide cache
-
- // TODO there's a race here where 2 threads can get through
- // updateLocalCache() in proper sequence but then the earlier
- // one updates JBC *later*. This should only affect newly
- // joined nodes who populate their initial localCache from JBC.
-
- // Don't hold the JBC node lock throughout the tx, as that
- // prevents reads and other updates
- Transaction tx = suspend();
- try {
- // TODO Why not use the timestamp in a DataVersion?
- Option opt = getNonLockingDataVersionOption(false);
- // We ensure ASYNC semantics (JBCACHE-1175)
- opt.setForceAsynchronous(true);
- CacheHelper.put(getCacheInstance(), getRegionFqn(), key, value, opt);
- } catch (Exception e) {
- throw new CacheException(e);
- } finally {
- resume(tx);
- }
+ // Don't hold the JBC node lock throughout the tx, as that
+ // prevents reads and other updates
+ Transaction tx = suspend();
+ try {
+ // TODO Why not use the timestamp in a DataVersion?
+ Option opt = getNonLockingDataVersionOption(false);
+ // We ensure ASYNC semantics (JBCACHE-1175)
+ opt.setForceAsynchronous(true);
+ CacheHelper.put(getCacheInstance(), getRegionFqn(), key, value, opt);
+ } catch (Exception e) {
+ throw new CacheException(e);
+ } finally {
+ resume(tx);
}
}
@Override
public void destroy() throws CacheException {
-
localCache.clear();
getCacheInstance().removeCacheListener(this);
super.destroy();
@@ -153,14 +134,14 @@
*/
@NodeModified
public void nodeModified(NodeModifiedEvent event) {
- if (event.isOriginLocal() || event.isPre())
+ if (event.isPre())
return;
Fqn fqn = event.getFqn();
Fqn regFqn = getRegionFqn();
if (fqn.size() == regFqn.size() + 1 && fqn.isChildOf(regFqn)) {
Object key = fqn.get(regFqn.size());
- updateLocalCache(key, event.getData().get(ITEM));
+ localCache.put(key, event.getData().get(ITEM));
}
}
@@ -171,7 +152,7 @@
*/
@NodeRemoved
public void nodeRemoved(NodeRemovedEvent event) {
- if (event.isOriginLocal() || event.isPre())
+ if (event.isPre())
return;
Fqn fqn = event.getFqn();
@@ -194,43 +175,4 @@
get(key);
}
}
-
- /**
- * Updates the local cache, ensuring that the new value represents a higher
- * value than the old (i.e. timestamp never goes back in time).
- *
- * @param key
- * @param value
- */
- private boolean updateLocalCache(Object key, Object value) {
- if (value == null)
- return false;
-
- boolean increase = true;
-
- long newVal = 0;
- try {
- newVal = ((Long) value).longValue();
-
- Long oldVal = (Long) localCache.get(key);
- increase = oldVal == null || newVal > oldVal.longValue();
- if (increase) {
- oldVal = (Long) localCache.put(key, value);
- // Double check that it was an increase
- if (oldVal != null && oldVal.longValue() > newVal) {
- // Nope; Restore the old value
- updateLocalCache(key, oldVal);
- increase = false;
- }
- }
- } catch (ClassCastException cce) {
- // TODO -- this is stupid; look into changing TimestampsRegion API
- // not using Long; just store it
- localCache.put(key, value);
- }
-
- return increase;
-
- }
-
}
17 years, 2 months
Hibernate SVN: r14122 - core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2.
by hibernate-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-10-19 15:27:21 -0400 (Fri, 19 Oct 2007)
New Revision: 14122
Modified:
core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java
Log:
Use CacheHelper instead of making direct call
Modified: core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java
===================================================================
--- core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java 2007-10-19 14:39:47 UTC (rev 14121)
+++ core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java 2007-10-19 19:27:21 UTC (rev 14122)
@@ -188,9 +188,11 @@
Map result = new HashMap();
Set childrenNames = CacheHelper.getChildrenNames(jbcCache, regionFqn);
for (Object childName : childrenNames) {
- result.put(childName, jbcCache.get(new Fqn(regionFqn, childName), ITEM));
+ result.put(childName, CacheHelper.get(jbcCache,regionFqn, childName));
}
return result;
+ } catch (CacheException e) {
+ throw e;
} catch (Exception e) {
throw new CacheException(e);
}
17 years, 2 months
Hibernate SVN: r14121 - core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2.
by hibernate-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-10-19 10:39:47 -0400 (Fri, 19 Oct 2007)
New Revision: 14121
Added:
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java
Log:
Add evict/evictAll tests for query and timestamps regions
Added: core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java
===================================================================
--- core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java (rev 0)
+++ core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractGeneralDataRegionTestCase.java 2007-10-19 14:39:47 UTC (rev 14121)
@@ -0,0 +1,234 @@
+/*
+ * Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
+ *
+ * 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
+ * Lesser General Public License, v. 2.1. This program is distributed in the
+ * hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details. You should have received a
+ * copy of the GNU Lesser General Public License, v.2.1 along with this
+ * distribution; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Red Hat Author(s): Brian Stansberry
+ */
+
+package org.hibernate.test.cache.jbc2;
+
+import java.util.Iterator;
+import java.util.Set;
+
+import org.hibernate.cache.GeneralDataRegion;
+import org.hibernate.cache.QueryResultsRegion;
+import org.hibernate.cache.jbc2.JBossCacheRegionFactory;
+import org.hibernate.cache.jbc2.MultiplexedJBossCacheRegionFactory;
+import org.hibernate.cache.jbc2.builder.MultiplexingCacheInstanceManager;
+import org.hibernate.cache.jbc2.util.CacheHelper;
+import org.hibernate.cache.jbc2.util.NonLockingDataVersion;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.test.util.CacheTestUtil;
+import org.jboss.cache.Cache;
+import org.jboss.cache.Fqn;
+import org.jboss.cache.Node;
+import org.jboss.cache.NodeSPI;
+import org.jboss.cache.transaction.BatchModeTransactionManager;
+
+/**
+ * Base class for tests of QueryResultsRegion and TimestampsRegion.
+ *
+ * @author <a href="brian.stansberry(a)jboss.com">Brian Stansberry</a>
+ * @version $Revision: 1 $
+ */
+public abstract class AbstractGeneralDataRegionTestCase extends AbstractRegionImplTestCase {
+
+ protected static final String KEY = "Key";
+ protected static final String VALUE1 = "value1";
+ protected static final String VALUE2 = "value2";
+
+ public AbstractGeneralDataRegionTestCase(String name) {
+ super(name);
+ }
+
+ /**
+ * Test method for {@link QueryResultsRegion#evict(java.lang.Object)}.
+ *
+ * FIXME add testing of the "immediately without regard for transaction
+ * isolation" bit in the CollectionRegionAccessStrategy API.
+ */
+ public void testEvictOptimistic() throws Exception {
+ evictOrRemoveTest("optimistic-shared");
+ }
+
+ /**
+ * Test method for {@link QueryResultsRegion#evict(java.lang.Object)}.
+ *
+ * FIXME add testing of the "immediately without regard for transaction
+ * isolation" bit in the CollectionRegionAccessStrategy API.
+ */
+ public void testEvictPessimistic() throws Exception {
+ evictOrRemoveTest("pessimistic-shared");
+ }
+
+ private void evictOrRemoveTest(String configName) throws Exception {
+
+ Configuration cfg = createConfiguration(configName);
+ JBossCacheRegionFactory regionFactory = CacheTestUtil.startRegionFactory(cfg, getCacheTestSupport());
+ Cache localCache = getJBossCache(regionFactory);
+ boolean invalidation = CacheHelper.isClusteredInvalidation(localCache);
+
+ GeneralDataRegion localRegion = (GeneralDataRegion) createRegion(regionFactory, getStandardRegionName(REGION_PREFIX), cfg.getProperties(), null);
+
+ cfg = createConfiguration(configName);
+ regionFactory = CacheTestUtil.startRegionFactory(cfg, getCacheTestSupport());
+
+ GeneralDataRegion remoteRegion = (GeneralDataRegion) createRegion(regionFactory, getStandardRegionName(REGION_PREFIX), cfg.getProperties(), null);
+
+ assertNull("local is clean", localRegion.get(KEY));
+ assertNull("remote is clean", remoteRegion.get(KEY));
+
+ localRegion.put(KEY, VALUE1);
+ assertEquals(VALUE1, localRegion.get(KEY));
+
+ // allow async propagation
+ sleep(250);
+ Object expected = invalidation ? null : VALUE1;
+ assertEquals(expected, remoteRegion.get(KEY));
+
+ localRegion.evict(KEY);
+
+ assertEquals(null, localRegion.get(KEY));
+
+ assertEquals(null, remoteRegion.get(KEY));
+ }
+
+ protected abstract String getStandardRegionName(String regionPrefix);
+
+ /**
+ * Test method for {@link QueryResultsRegion#evictAll()}.
+ *
+ * FIXME add testing of the "immediately without regard for transaction
+ * isolation" bit in the CollectionRegionAccessStrategy API.
+ */
+ public void testEvictAllOptimistic() throws Exception {
+ evictOrRemoveAllTest("optimistic-shared");
+ }
+
+ /**
+ * Test method for {@link QueryResultsRegion#evictAll()}.
+ *
+ * FIXME add testing of the "immediately without regard for transaction
+ * isolation" bit in the CollectionRegionAccessStrategy API.
+ */
+ public void testEvictAllPessimistic() throws Exception {
+ evictOrRemoveAllTest("pessimistic-shared");
+ }
+
+ private void evictOrRemoveAllTest(String configName) throws Exception {
+
+ Configuration cfg = createConfiguration(configName);
+ JBossCacheRegionFactory regionFactory = CacheTestUtil.startRegionFactory(cfg, getCacheTestSupport());
+ Cache localCache = getJBossCache(regionFactory);
+ boolean optimistic = "OPTIMISTIC".equals(localCache.getConfiguration().getNodeLockingSchemeString());
+ boolean invalidation = CacheHelper.isClusteredInvalidation(localCache);
+
+ GeneralDataRegion localRegion = (GeneralDataRegion) createRegion(regionFactory, getStandardRegionName(REGION_PREFIX), cfg.getProperties(), null);
+
+ cfg = createConfiguration(configName);
+ regionFactory = CacheTestUtil.startRegionFactory(cfg, getCacheTestSupport());
+ Cache remoteCache = getJBossCache(regionFactory);
+
+ GeneralDataRegion remoteRegion = (GeneralDataRegion) createRegion(regionFactory, getStandardRegionName(REGION_PREFIX), cfg.getProperties(), null);
+ Fqn regionFqn = getRegionFqn(getStandardRegionName(REGION_PREFIX), REGION_PREFIX);
+
+ Node regionRoot = localCache.getRoot().getChild(regionFqn);
+ assertFalse(regionRoot == null);
+ Set children = regionRoot.getChildrenNames();
+ assertEquals("No children in " + children, 0, children.size());
+ assertTrue(regionRoot.isResident());
+
+ if (optimistic) {
+ assertEquals(NonLockingDataVersion.class, ((NodeSPI) regionRoot).getVersion().getClass());
+ }
+
+ regionRoot = remoteCache.getRoot().getChild(regionFqn);
+ assertFalse(regionRoot == null);
+ assertEquals(0, regionRoot.getChildrenNames().size());
+ assertTrue(regionRoot.isResident());
+
+ if (optimistic) {
+ assertEquals(NonLockingDataVersion.class, ((NodeSPI) regionRoot).getVersion().getClass());
+ }
+
+ assertNull("local is clean", localRegion.get(KEY));
+ assertNull("remote is clean", remoteRegion.get(KEY));
+
+ localRegion.put(KEY, VALUE1);
+ assertEquals(VALUE1, localRegion.get(KEY));
+
+ // Allow async propagation
+ sleep(250);
+
+ remoteRegion.put(KEY, VALUE1);
+ assertEquals(VALUE1, remoteRegion.get(KEY));
+
+ // Allow async propagation
+ sleep(250);
+
+ if (optimistic) {
+ regionRoot = localCache.getRoot().getChild(regionFqn);
+ assertEquals(NonLockingDataVersion.class, ((NodeSPI) regionRoot).getVersion().getClass());
+ regionRoot = remoteCache.getRoot().getChild(regionFqn);
+ assertEquals(NonLockingDataVersion.class, ((NodeSPI) regionRoot).getVersion().getClass());
+ }
+
+ localRegion.evictAll();
+
+ regionRoot = localCache.getRoot().getChild(regionFqn);
+ assertFalse(regionRoot == null);
+ assertEquals(0, regionRoot.getChildrenNames().size());
+ assertTrue(regionRoot.isResident());
+
+ regionRoot = remoteCache.getRoot().getChild(regionFqn);
+ assertFalse(regionRoot == null);
+ if (invalidation) {
+ // JBC seems broken: see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121408
+ // FIXME replace with the following when JBCACHE-1199 and JBCACHE-1200 are done:
+ //assertFalse(regionRoot.isValid());
+ checkNodeIsEmpty(regionRoot);
+ }
+ else {
+ // Same assertion, just different assertion msg
+ assertEquals(0, regionRoot.getChildrenNames().size());
+ }
+ assertTrue(regionRoot.isResident());
+
+ assertEquals("local is clean", null, localRegion.get(KEY));
+ assertEquals("remote is clean", null, remoteRegion.get(KEY));
+ }
+
+ private void checkNodeIsEmpty(Node node) {
+ assertEquals("Known issue JBCACHE-1200. node " + node.getFqn() + " should not have keys", 0, node.getKeys().size());
+ for (Iterator it = node.getChildren().iterator(); it.hasNext(); ) {
+ checkNodeIsEmpty((Node) it.next());
+ }
+ }
+
+ protected Configuration createConfiguration(String configName) {
+ Configuration cfg = CacheTestUtil.buildConfiguration("test", MultiplexedJBossCacheRegionFactory.class, false, true);
+ cfg.setProperty(MultiplexingCacheInstanceManager.QUERY_CACHE_RESOURCE_PROP, configName);
+ cfg.setProperty(MultiplexingCacheInstanceManager.TIMESTAMP_CACHE_RESOURCE_PROP, configName);
+ return cfg;
+ }
+
+ protected void rollback() {
+ try {
+ BatchModeTransactionManager.getInstance().rollback();
+ }
+ catch (Exception e) {
+ log.error(e.getMessage(), e);
+ }
+
+ }
+
+}
\ No newline at end of file
17 years, 2 months
Hibernate SVN: r14120 - core/trunk/documentation/manual/en-US/src/main/docbook.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2007-10-19 01:17:53 -0400 (Fri, 19 Oct 2007)
New Revision: 14120
Added:
core/trunk/documentation/manual/en-US/src/main/docbook/translators.xml
Log:
prep for gettext conversion
Added: core/trunk/documentation/manual/en-US/src/main/docbook/translators.xml
===================================================================
--- core/trunk/documentation/manual/en-US/src/main/docbook/translators.xml (rev 0)
+++ core/trunk/documentation/manual/en-US/src/main/docbook/translators.xml 2007-10-19 05:17:53 UTC (rev 14120)
@@ -0,0 +1,130 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE authorgroup PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<authorgroup id="AuthorGroup">
+
+ <!--
+ #######################################################################
+ # Spanish
+ #######################################################################
+ -->
+ <othercredit class="translator" lang="es-ES">
+ <othername><![CDATA[Bernardo Antonio Buffa Colomé]]></othername>
+ <email>kreimer(a)bbs.frc.utn.edu.ar</email>
+ </othercredit>
+
+ <!--
+ #######################################################################
+ # French
+ #######################################################################
+ -->
+ <othercredit class="translator" lang="fr-FR">
+ <firstname>Vincent</firstname>
+ <surname>Ricard</surname>
+ </othercredit>
+ <othercredit class="translator" lang="fr-FR">
+ <firstname>Sebastien</firstname>
+ <surname>Cesbron</surname>
+ </othercredit>
+ <othercredit class="translator" lang="fr-FR">
+ <firstname>Michael</firstname>
+ <surname>Courcy</surname>
+ </othercredit>
+ <othercredit class="translator" lang="fr-FR">
+ <firstname>Vincent</firstname>
+ <surname>Giguère</surname>
+ </othercredit>
+ <othercredit class="translator" lang="fr-FR">
+ <firstname>Baptiste</firstname>
+ <surname>Mathus</surname>
+ </othercredit>
+ <othercredit class="translator" lang="fr-FR">
+ <firstname>Emmanuel</firstname>
+ <surname>Bernard</surname>
+ </othercredit>
+ <othercredit class="translator" lang="fr-FR">
+ <firstname>Anthony</firstname>
+ <surname>Patricio</surname>
+ </othercredit>
+
+ <!--
+ #######################################################################
+ # Portugese
+ #######################################################################
+ -->
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Alvaro</firstname>
+ <surname>Netto</surname>
+ <email>alvaronetto(a)cetip.com.br</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Anderson</firstname>
+ <surname>Braulio</surname>
+ <email>andersonbraulio(a)gmail.com</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Daniel Vieira</firstname>
+ <surname>Costa</surname>
+ <email>danielvc(a)gmail.com</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Francisco</firstname>
+ <surname>gamarra</surname>
+ <email>francisco.gamarra(a)gmail.com</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Gamarra</firstname>
+ <email>mauricio.gamarra(a)gmail.com</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Luiz Carlos</firstname>
+ <surname>Rodrigues</surname>
+ <email>luizcarlos_rodrigues(a)yahoo.com.br</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Marcel</firstname>
+ <surname>Castelo</surname>
+ <email>marcel.castelo(a)gmail.com</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Paulo</firstname>
+ <surname>César</surname>
+ <email>paulocol(a)gmail.com</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Pablo L.</firstname>
+ <surname>de Miranda</surname>
+ <email>pablolmiranda(a)gmail.com</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Renato</firstname>
+ <surname>Deggau</surname>
+ <email>rdeggau(a)gmail.com</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Rogério</firstname>
+ <surname>Araújo</surname>
+ <email>rgildoaraujo(a)yahoo.com.br</email>
+ </othercredit>
+ <othercredit class="translator" lang="pt-BR">
+ <firstname>Wanderson</firstname>
+ <surname>Siqueira</surname>
+ <email>wandersonxs(a)gmail.com</email>
+ </othercredit>
+
+ <!--
+ #######################################################################
+ # Chinese
+ #######################################################################
+ -->
+ <othercredit class="translator" lang="zh-CN">
+ <firstname>Cao</firstname>
+ <surname>Xiaogang</surname>
+ <affiliation>
+ <orgname>RedSaga</orgname>
+ </affiliation>
+ <contrib>Translation Lead</contrib>
+ <email>caoxg(a)yahoo.com</email>
+ </othercredit>
+
+</authorgroup>
17 years, 2 months
Hibernate SVN: r14119 - in core/trunk/documentation/manual/zh-CN/src/main/docbook: content and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2007-10-19 01:17:33 -0400 (Fri, 19 Oct 2007)
New Revision: 14119
Modified:
core/trunk/documentation/manual/zh-CN/src/main/docbook/Hibernate_Reference.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/architecture.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/association_mapping.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/basic_mapping.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/batch.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/best_practices.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/collection_mapping.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/component_mapping.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/configuration.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/events.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_mappings.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_parentchild.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_weblog.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/filters.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/inheritance_mapping.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/performance.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/persistent_classes.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/preface.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_criteria.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_hql.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_sql.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/quickstart.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/session_api.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/transactions.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/tutorial.xml
core/trunk/documentation/manual/zh-CN/src/main/docbook/content/xml.xml
Log:
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/Hibernate_Reference.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/Hibernate_Reference.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/Hibernate_Reference.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -25,7 +25,6 @@
<year>©rightYear;</year>
<holder>©rightHolder;</holder>
</copyright>
- <xi:include href="translators.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="legal_notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
</bookinfo>
@@ -33,13 +32,13 @@
<xi:include href="content/preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/tutorial.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/tutorial.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/architecture.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/architecture.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/configuration.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/configuration.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/persistent_classes.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/persistent_classes.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/basic_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/collection_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/architecture.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/architecture.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/architecture.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="architecture">
<title>体系结构(Architecture)</title>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/association_mapping.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/association_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/association_mapping.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,5 +1,8 @@
-<chapter id="associations">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<chapter id="associations">
+
<title>关联关系映射</title>
<sect1 id="assoc-intro" revision="1">
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/basic_mapping.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/basic_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/basic_mapping.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="mapping">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="mapping">
<title>对象/关系数据库映射基础(Basic O/R Mapping)</title>
<sect1 id="mapping-declaration" revision="1">
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/batch.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/batch.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/batch.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="batch">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="batch">
<title>批量处理(Batch processing)</title>
<para>
使用Hibernate将 100 000 条记录插入到数据库的一个很自然的做法可能是这样的
@@ -279,4 +282,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/best_practices.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/best_practices.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/best_practices.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="best-practices" revision="2">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="best-practices" revision="2">
<title>最佳实践(Best Practices)</title>
<variablelist spacing="compact">
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/collection_mapping.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/collection_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/collection_mapping.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
- <chapter id="collections">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+ <chapter id="collections">
<title>集合类(Collections)映射</title>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/component_mapping.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/component_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/component_mapping.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="components">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="components">
<title>组件(Component)映射</title>
<para>
@@ -336,4 +339,4 @@
更好的是,你可以通过<literal>Configuration</literal>对象来访问(或者修改)Hibernate的运行时元模型。
</para>
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/configuration.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/configuration.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/configuration.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,5 +1,8 @@
-<chapter id="session-configuration" revision="1">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<chapter id="session-configuration" revision="1">
+
<title>
配置
</title>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/events.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/events.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/events.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="events">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="events">
<title>
拦截器与事件(Interceptors and events)
</title>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_mappings.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_mappings.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_mappings.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="example-mappings">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="example-mappings">
<title>示例:复杂映射实例</title>
<para>
本章展示了一些较为复杂的关系映射。
@@ -647,4 +650,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_parentchild.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_parentchild.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_parentchild.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="example-parentchild">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="example-parentchild">
<title>示例:父子关系(Parent Child Relationships)</title>
<para>
刚刚接触Hibernate的人大多是从父子关系(parent / child type relationship)的建模入手的。父子关系的建模有两种方法。由于种种原因,最方便的方法是把<literal>Parent</literal>和<literal>Child</literal>都建模成实体类,并创建一个从<literal>Parent</literal>指向<literal>Child</literal>的<one-to-many>关联,对新手来说尤其如此。还有一种方法,就是将<literal>Child</literal>声明为一个<literal><composite-element></literal>(组合元素)。 事实上在Hibernate中one to many关联的默认语义远没有composite element贴近parent / child关系的通常语义。下面我们会阐述如何使用<emphasis>带有级联的双向一对多关联(bidirectional one to many association with cascades)</emphasis>去建立有效、优美的parent / child关系。这一点也不难!
@@ -303,4 +306,4 @@
</para>
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_weblog.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_weblog.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/example_weblog.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="example-weblog">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="example-weblog">
<title>示例:Weblog 应用程序</title>
<sect1 id="example-weblog-classes">
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/filters.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/filters.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/filters.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="filters">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="filters">
<title>过滤数据</title>
<para>
@@ -137,4 +140,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/inheritance_mapping.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/inheritance_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/inheritance_mapping.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
- <chapter id="inheritance">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+ <chapter id="inheritance">
<title>继承映射(Inheritance Mappings)</title>
<sect1 id="inheritance-strategies" revision="3">
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/performance.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/performance.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/performance.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="performance">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="performance">
<title>提升性能
</title>
<sect1 id="performance-fetching" revision="2">
@@ -1312,4 +1315,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/persistent_classes.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/persistent_classes.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/persistent_classes.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="persistent-classes" revision="2">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="persistent-classes" revision="2">
<title>持久化类(Persistent Classes)</title>
<para>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/preface.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/preface.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/preface.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,5 +1,4 @@
<?xml version='1.0' encoding="UTF-8"?>
-
<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<preface id="preface" revision="2">
@@ -67,4 +66,4 @@
Hibernate是一个专业的开放源代码项目(Professional Open Source project),也是JBoss Enterprise Middleware System(JEMS),JBoss企业级中间件系统的一个核心组件。
</para>
-</preface>
\ No newline at end of file
+</preface>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_criteria.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_criteria.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_criteria.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="querycriteria">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="querycriteria">
<title>
条件查询(Criteria Queries)
</title>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_hql.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_hql.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="queryhql">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="queryhql">
<title>HQL: Hibernate查询语言</title>
<para>
Hibernate配备了一种非常强大的查询语言,这种语言看上去很像SQL。但是不要被语法结构
@@ -1085,4 +1088,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_sql.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_sql.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/query_sql.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="querysql" revision="2">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="querysql" revision="2">
<title>Native SQL查询</title>
<para>
你也可以使用你的数据库的Native SQL语言来查询数据。这对你在要使用数据库的某些特性的时候(比如说在查询提示或者Oracle中的
@@ -712,4 +715,4 @@
</sql-query>]]></programlisting>
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/quickstart.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/quickstart.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/quickstart.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="quickstart">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="quickstart">
<title>在Tomcat中快速上手</title>
<sect1 id="quickstart-intro" revision="2">
@@ -458,4 +461,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/session_api.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/session_api.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/session_api.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="objectstate">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="objectstate">
<title>与对象共事</title>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/transactions.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/transactions.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/transactions.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="transactions" revision="2">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="transactions" revision="2">
<title>事务和并发</title>
<para>
Hibernate的事务和并发控制很容易掌握。Hibernate直接使用JDBC连接和JTA资源,不添加任何附加锁定
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/tutorial.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/tutorial.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/tutorial.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,4 +1,7 @@
-<chapter id="tutorial">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="tutorial">
<title>
Hibernate入门
</title>
Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/content/xml.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/content/xml.xml 2007-10-19 05:09:51 UTC (rev 14118)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/content/xml.xml 2007-10-19 05:17:33 UTC (rev 14119)
@@ -1,19 +1,7 @@
-<!--
- ~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
- ~
- ~ 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
- ~ Lesser General Public License, v. 2.1. This program is distributed in the
- ~ hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
- ~ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details. You should have received a
- ~ copy of the GNU Lesser General Public License, v.2.1 along with this
- ~ distribution; if not, write to the Free Software Foundation, Inc.,
- ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- ~
- ~ Red Hat Author(s): Steve Ebersole
- -->
-<chapter id="xml">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="xml">
<title>XML映射</title>
<para><emphasis>
注意这是Hibernate 3.0的一个实验性的特性。这一特性仍在积极开发中。
17 years, 2 months
Hibernate SVN: r14118 - in core/trunk/documentation/manual/pt-BR/src/main/docbook: content and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2007-10-19 01:09:51 -0400 (Fri, 19 Oct 2007)
New Revision: 14118
Removed:
core/trunk/documentation/manual/pt-BR/src/main/docbook/legal_notice2.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/translators.xml
Modified:
core/trunk/documentation/manual/pt-BR/src/main/docbook/Hibernate_Reference.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/architecture.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/association_mapping.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/basic_mapping.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/batch.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/best_practices.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/collection_mapping.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/component_mapping.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/configuration.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/events.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_mappings.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_parentchild.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_weblog.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/filters.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/inheritance_mapping.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/performance.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/persistent_classes.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/preface.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_criteria.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_hql.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_sql.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/session_api.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/toolset_guide.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/transactions.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/tutorial.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/tutorial1.xml
core/trunk/documentation/manual/pt-BR/src/main/docbook/content/xml.xml
Log:
prep for gettext conversion
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/Hibernate_Reference.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/Hibernate_Reference.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/Hibernate_Reference.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding="iso-8859-1"?>
+<?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY versionNumber "3.3.0.alpha1">
<!ENTITY copyrightYear "2004">
@@ -9,7 +9,7 @@
<bookinfo>
<title>HIBERNATE - Relational Persistence for Idiomatic Java</title>
- <subtitle>Documenta��o da Refer�ncia do Hibernate</subtitle>
+ <subtitle>Documentação da Referência do Hibernate</subtitle>
<releaseinfo>&versionNumber;</releaseinfo>
<productnumber>&versionNumber;</productnumber>
<issuenum>1</issuenum>
@@ -25,22 +25,20 @@
<year>©rightYear;</year>
<holder>©rightHolder;</holder>
</copyright>
- <xi:include href="translators.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="legal_notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="legal_notice2.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
</bookinfo>
<toc/>
<xi:include href="content/preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/tutorial.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/tutorial.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/architecture.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/architecture.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/configuration.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/configuration.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/persistent_classes.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/persistent_classes.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/basic_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/collection_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/architecture.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/architecture.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/architecture.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,18 +1,6 @@
-<!--
- ~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
- ~
- ~ 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
- ~ Lesser General Public License, v. 2.1. This program is distributed in the
- ~ hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
- ~ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details. You should have received a
- ~ copy of the GNU Lesser General Public License, v.2.1 along with this
- ~ distribution; if not, write to the Free Software Foundation, Inc.,
- ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- ~
- ~ Red Hat Author(s): Steve Ebersole
- -->
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="architecture">
<title>Arquitetura</title>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/association_mapping.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/association_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/association_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="associations">
<title>Mapeamento de Associações</title>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/basic_mapping.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/basic_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/basic_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="mapping">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="mapping">
<title>Mapeamento O/R Bassico</title>
<sect1 id="mapping-declaration" revision="1">
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/batch.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/batch.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/batch.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="batch">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="batch">
<title>Processamento de lotes</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/best_practices.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/best_practices.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/best_practices.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="best-practices" revision="3">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="best-practices" revision="3">
<title>Boas práticas</title>
<variablelist spacing="compact">
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/collection_mapping.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/collection_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/collection_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="collections">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="collections">
<title>Mapeamento de Coleções</title>
<sect1 id="collections-persistent" revision="3">
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/component_mapping.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/component_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/component_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="components">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="components">
<title>Mapeamento de Componentes</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/configuration.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/configuration.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/configuration.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="session-configuration" revision="1">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="session-configuration" revision="1">
<title>Configuração</title>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/events.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/events.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/events.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="events">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="events">
<title>Interceptadores e Eventos</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_mappings.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_mappings.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_mappings.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,19 +1,7 @@
-<!--
- ~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
- ~
- ~ 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
- ~ Lesser General Public License, v. 2.1. This program is distributed in the
- ~ hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
- ~ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details. You should have received a
- ~ copy of the GNU Lesser General Public License, v.2.1 along with this
- ~ distribution; if not, write to the Free Software Foundation, Inc.,
- ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- ~
- ~ Red Hat Author(s): Steve Ebersole
- -->
-<chapter id="example-mappings">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="example-mappings">
<title>Exemplo: Vários Mapeamentos</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_parentchild.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_parentchild.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_parentchild.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="example-parentchild">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="example-parentchild">
<title>Example: Parent/Child</title>
<para>
@@ -358,4 +361,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_weblog.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_weblog.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/example_weblog.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="example-weblog">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="example-weblog">
<title>Example: Weblog Application</title>
<sect1 id="example-weblog-classes">
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/filters.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/filters.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/filters.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="filters">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="filters">
<title>Filtrando dados</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/inheritance_mapping.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/inheritance_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/inheritance_mapping.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="inheritance">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="inheritance">
<title>Mapeamento de Herança</title>
<sect1 id="inheritance-strategies" revision="3">
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/performance.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/performance.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/performance.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="performance">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="performance">
<title>Aumentando a performance</title>
<sect1 id="performance-fetching" revision="2">
@@ -1381,4 +1384,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/persistent_classes.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/persistent_classes.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/persistent_classes.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="persistent-classes" revision="2">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="persistent-classes" revision="2">
<title>Persistent Classes</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/preface.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/preface.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/preface.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,61 +1,46 @@
-<?xml version='1.0' encoding="iso-8859-1"?>
-<!--
- ~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
- ~
- ~ 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
- ~ Lesser General Public License, v. 2.1. This program is distributed in the
- ~ hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
- ~ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details. You should have received a
- ~ copy of the GNU Lesser General Public License, v.2.1 along with this
- ~ distribution; if not, write to the Free Software Foundation, Inc.,
- ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- ~
- ~ Red Hat Author(s): Steve Ebersole
- -->
+<?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<preface id="preface" revision="2">
- <title>Pref�cio</title>
+<preface id="preface" revision="2">
+ <title>Prefácio</title>
<para>
Trabalhando com software orientado a objetos e banco de dados relacional, podemos
- ter alguns inc�modos hoje em dia em ambientes empresariais. Hibernate � uma ferramenta
+ ter alguns incômodos hoje em dia em ambientes empresariais. Hibernate é uma ferramenta
que mapeia o objeto/relacional para o ambiente Java. O termo de mapeamento de
- objeto/relacional (ou ORM � Object/Relational Mapping) se refere a t�cnica de mapear
- uma representa��o de dados de um modelo de objeto para dados de modelo
+ objeto/relacional (ou ORM Object/Relational Mapping) se refere a técnica de mapear
+ uma representação de dados de um modelo de objeto para dados de modelo
relacional com o esquema baseado em SQL
</para>
<para>
- O Hibernate n�o somente cuida do mapeamento de classes em Java
- para tabelas de banco de dados (e de tipos de dados em Java para tipos de dados em SQL), como tamb�m
- fornece facilidade de consultas e recupera��o de dados, podendo tamb�m reduzir significantemente o
- tempo de desenvolvimento gasto com a manipula��o manual de dados no SQL e JDBC.
+ O Hibernate não somente cuida do mapeamento de classes em Java
+ para tabelas de banco de dados (e de tipos de dados em Java para tipos de dados em SQL), como também
+ fornece facilidade de consultas e recuperação de dados, podendo também reduzir significantemente o
+ tempo de desenvolvimento gasto com a manipulação manual de dados no SQL e JDBC.
</para>
<para>
- O objetivo do Hibernate � de aliviar o desenvolvedor de 95 por cento das tarefas de programa��o
- relacionadas aos dados comuns de persist�ncia. O Hibernate talvez n�o seja a melhor solu��o para
- aplica��es de dados-data-centric que somente usa stored-procedures para implementar a l�gica
- de neg�cio no banco de dados, isto � muito utilizado com o dom�nio de modelos orientado a objetos e
- l�gicas de neg�cio em camadas do meio (middle-tier) baseadas em Java. Por�m, o Hibernate
- poder� certamente ajuda-lo a remover ou encapsular o c�digo SQL de um vendedor espec�fico,
- ajudando tamb�m com a tarefa comum da tradu��o do resultado ajustado de uma representa��o
- para um gr�fico de objetos.
+ O objetivo do Hibernate é de aliviar o desenvolvedor de 95 por cento das tarefas de programação
+ relacionadas aos dados comuns de persistência. O Hibernate talvez não seja a melhor solução para
+ aplicações de dados-data-centric que somente usa stored-procedures para implementar a lógica
+ de negócio no banco de dados, isto é muito utilizado com o domínio de modelos orientado a objetos e
+ lógicas de negócio em camadas do meio (middle-tier) baseadas em Java. Porém, o Hibernate
+ poderá certamente ajuda-lo a remover ou encapsular o código SQL de um vendedor específico,
+ ajudando também com a tarefa comum da tradução do resultado ajustado de uma representação
+ para um gráfico de objetos.
</para>
<para>
- Se voc� for novo no Hibernate e no mapeamento Objeto/Relacional, ou at� mesmo em Java,
+ Se você for novo no Hibernate e no mapeamento Objeto/Relacional, ou até mesmo em Java,
por favor, siga os seguintes passos.
</para>
<orderedlist>
<listitem>
<para>
- Leia <xref linkend="tutorial"/> para um tutorial com instru��es passo-a-passo.
- O c�digo fonte para do tutorial est� inclu�do na distribui��o no diret�rio
+ Leia <xref linkend="tutorial"/> para um tutorial com instruções passo-a-passo.
+ O código fonte para do tutorial está incluído na distribuição no diretório
<literal>doc/reference/tutorial/</literal>.
</para>
</listitem>
@@ -66,9 +51,9 @@
</listitem>
<listitem>
<para>
- D� uma olhada no diret�rio de exemplo <literal>eg/</literal> da distribui��o
- do Hibernate, ele cont�m uma simples aplica��o standalone.
- Copie seu driver JDBC para o diret�rio <literal>lib/</literal> e edite o arquivo
+ Dê uma olhada no diretório de exemplo <literal>eg/</literal> da distribuição
+ do Hibernate, ele contém uma simples aplicação standalone.
+ Copie seu driver JDBC para o diretório <literal>lib/</literal> e edite o arquivo
<literal>etc/hibernate.properties</literal>, especificando corretamente os valores
para seu banco de dados. Usando o prompt de commando no diretorio de distribuicao,
digite <literal>ant eg</literal> (usando Ant), ou no Windows, digite
@@ -77,43 +62,43 @@
</listitem>
<listitem>
<para>
- Use esta documenta��o de referencia como sua fonte primaria de informa��o.
- Considere ler tamb�m o livro <emphasis>Java Persistence with Hibernate</emphasis>
- (http://www.manning.com/bauer2) caso voc� precise de mais ajuda com o
- desenvolvimento de aplica��es ou caso prefira um tutorial passo-a-passo.
- Tamb�m visite o site http://caveatemptor.hibernate.org e fa�a o download
- da aplica��o de exemplo do Java Persistence with Hibernate.
+ Use esta documentação de referencia como sua fonte primaria de informação.
+ Considere ler também o livro <emphasis>Java Persistence with Hibernate</emphasis>
+ (http://www.manning.com/bauer2) caso você precise de mais ajuda com o
+ desenvolvimento de aplicações ou caso prefira um tutorial passo-a-passo.
+ Também visite o site http://caveatemptor.hibernate.org e faça o download
+ da aplicação de exemplo do Java Persistence with Hibernate.
</para>
</listitem>
<listitem>
<para>
- FAQs (perguntas feitas com mais freq��ncia) est�o respondidas no site do Hibernate
+ FAQs (perguntas feitas com mais freqüência) estão respondidas no site do Hibernate
</para>
</listitem>
<listitem>
<para>
- Demonstra��es, exemplos e tutorials est�o dispon�veis no site do Hibernate.
+ Demonstrações, exemplos e tutorials estão disponíveis no site do Hibernate.
</para>
</listitem>
<listitem>
<para>
- A �rea da comunidade no site do Hibernate � uma boa fonte de recursos
- para padr�es de projeto e v�rias solu��es de integra��o (Tomcat, JBoss AS, Struts, EJB, etc.).
+ A Área da comunidade no site do Hibernate é uma boa fonte de recursos
+ para padrões de projeto e várias soluções de integração (Tomcat, JBoss AS, Struts, EJB, etc.).
</para>
</listitem>
</orderedlist>
<para>
- Caso voc� tenha d�vidas, use o f�rum dos usu�rios encontrado no site do Hibernate.
- N�s tamb�m fornecemos um sistema para controle de bug�s (JIRA) para relat�rios de erros
- e requisi��es de features. Se voc� est� interessado no desenvolvimento do Hibernate,
+ Caso você tenha dúvidas, use o fórum dos usuários encontrado no site do Hibernate.
+ Nós também fornecemos um sistema para controle de bugs (JIRA) para relatórios de erros
+ e requisições de features. Se você está interessado no desenvolvimento do Hibernate,
junte-se a lista de e-mail dos desenvolvedores.
</para>
<para>
- Suporte comercial de desenvolvimento, suporte de produ��o e treinamento para o Hibernate
- est� dispon�vel atrav�s do JBoss Inc. (veja http://www.hibernate.org/SupportTraining).
- O Hibernate � um Projeto Profissional de C�digo Aberto e um componente cr�tico da su�te
+ Suporte comercial de desenvolvimento, suporte de produção e treinamento para o Hibernate
+ está disponível através do JBoss Inc. (veja http://www.hibernate.org/SupportTraining).
+ O Hibernate é um Projeto Profissional de Código Aberto e um componente crítico da suíte
de produtos JBoss Enterprise Middleware System (JEMS).
</para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_criteria.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_criteria.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_criteria.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="querycriteria">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="querycriteria">
<title>Consultas por critérios</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_hql.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_hql.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,6 +1,7 @@
-858
-
-<chapter id="queryhql">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="queryhql">
<title>HQL: A linguagem de Queries do Hibernate</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_sql.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_sql.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/query_sql.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,5 +1,7 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<chapter id="querysql" revision="2">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="querysql" revision="2">
<title>Native SQL</title>
<para>You may also express queries in the native SQL dialect of your
@@ -601,10 +603,10 @@
<itemizedlist spacing="compact">
<listitem>
<para>
- A fun��p deve retornar um result set. O primeiro par�metro da procedure
- dever ser uma <literal>SA�DA</literal> que retorne um result set. Isto � feito
- usando o tipo a <literal>SYS_REFCURSOR</literal> no Oracle 9 ou 10. No Oracle �
- necess�rio definir o tipo <literal>REF CURSOR</literal>, veja a documenta��o do Oracle.
+ A funçãp deve retornar um result set. O primeiro parâmetro da procedure
+ dever ser uma <literal>SAÍDA</literal> que retorne um result set. Isto é feito
+ usando o tipo a <literal>SYS_REFCURSOR</literal> no Oracle 9 ou 10. No Oracle é
+ necessário definir o tipo <literal>REF CURSOR</literal>, veja a documentação do Oracle.
</para>
</listitem>
</itemizedlist>
@@ -615,16 +617,16 @@
<listitem>
<para>
A procedure deve retornar um result set. Veja que este servidor pode retornar
- m�ltiplos result sets e update counts. O Hibernate ira iterar os resultados e
- pegar o primeiro resultado que � o valor de retorno do result set.
- O resto ser� descartado.
+ múltiplos result sets e update counts. O Hibernate ira iterar os resultados e
+ pegar o primeiro resultado que é o valor de retorno do result set.
+ O resto será descartado.
</para>
</listitem>
<listitem>
<para>
- Se voc� habilitar <literal>SET NOCOUNT ON</literal> na sua procedure, ela
- provavelmente ser� mais eficiente. Mas, isto n�o � obrigat�rio</para>
+ Se você habilitar <literal>SET NOCOUNT ON</literal> na sua procedure, ela
+ provavelmente será mais eficiente. Mas, isto não é obrigatório</para>
</listitem>
</itemizedlist>
</sect3>
@@ -642,9 +644,9 @@
<literal><sql-delete></literal>, and
<literal><sql-update></literal> override these strings:
- Hibernate3 pode usar SQL customizado para opera��es de create, update e delete.
- A persist�ncia de classe e collection no hibernate j� contem alguma strings
- de configura��es (insertsql, deletesql, updatesql etc.).
+ Hibernate3 pode usar SQL customizado para operações de create, update e delete.
+ A persistência de classe e collection no hibernate já contem alguma strings
+ de configurações (insertsql, deletesql, updatesql etc.).
O mapaemento das tags
<literal><sql-insert></literal>,
<literal><sql-delete></literal>, e
@@ -663,13 +665,13 @@
</class>]]></programlisting>
<para>
- O SQL � executado diretamente no seu banco de dados, ent�o voc� pode usar qualquer
+ O SQL é executado diretamente no seu banco de dados, então você pode usar qualquer
linguagem que quiser. Isto com certeza reduzira a portabilidade do seu mapeamento se
- voc� utilizar um SQL para um banco de dados especifico.
+ você utilizar um SQL para um banco de dados especifico.
</para>
<para>
- Stored Procedures s�o suportadas se o atributo the
+ Stored Procedures são suportadas se o atributo the
<literal>callable</literal> estiver ativado:
</para>
@@ -684,22 +686,22 @@
</class>]]></programlisting>
<para>
- A ordem de posi��es dos par�metros s�o vitais, pois eles devem estar na mesma seq��ncia
+ A ordem de posições dos parâmetros são vitais, pois eles devem estar na mesma seqüência
esperada pelo Hibernate.
</para>
- <para>Voc� pode ver a ordem esperada ativando o debug logging no n�vel
- <literal>org.hibernate.persister.entity</literal>. Com este n�vel ativado, o Hibernate
- ir� imprimir o SQL est�tico que foi usado para create, update, delete, etc.
- Entidades. (Para ver a seq��ncia esperada, lembre-se de n�o incluir seu SQL
- customizado no arquivo de mapeamento, pois ele ir� sobreecreve o SQL
- est�tico gerado pelo Hibernate).
+ <para>Você pode ver a ordem esperada ativando o debug logging no nível
+ <literal>org.hibernate.persister.entity</literal>. Com este nível ativado, o Hibernate
+ irá imprimir o SQL estático que foi usado para create, update, delete, etc.
+ Entidades. (Para ver a seqüência esperada, lembre-se de não incluir seu SQL
+ customizado no arquivo de mapeamento, pois ele irá sobreecreve o SQL
+ estático gerado pelo Hibernate).
</para>
- <para>As stored procedures s�o na maioria dos casos (leia: melhor n�o fazer) requeridas para
+ <para>As stored procedures são na maioria dos casos (leia: melhor não fazer) requeridas para
retornar o numero de linhas inseridas/atualizadas/deletadas. O hibernate tem algumas
- verifica��es em tempo de execu��o para o sucesso da declara��o. Hibernate sempre registra
- o primeiro par�metro da declara��o como uma sa�da num�rica para opera��es CRUD.
+ verificações em tempo de execução para o sucesso da declaração. Hibernate sempre registra
+ o primeiro parâmetro da declaração como uma saída numérica para operações CRUD.
</para>
<programlisting><![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN VARCHAR2)
@@ -723,7 +725,7 @@
<title>SQL customizado para carga</title>
<para>
- Voc� pode declarar sua pr�pria query SQL (ou HQL) para iniciar entidades:
+ Você pode declarar sua própria query SQL (ou HQL) para iniciar entidades:
</para>
<programlisting><![CDATA[<sql-query name="person">
@@ -735,8 +737,8 @@
</sql-query>]]></programlisting>
<para>
- Este � apenas uma declara��o de query com nome, como discutido anteriormente.
- Voc� pode referenciar esta query com nome em um mapeamento de classe:
+ Este é apenas uma declaração de query com nome, como discutido anteriormente.
+ Você pode referenciar esta query com nome em um mapeamento de classe:
</para>
<programlisting><![CDATA[<class name="Person">
@@ -747,10 +749,10 @@
<loader query-ref="person"/>
</class>]]></programlisting>
- <para>Isto tamb�m funciona com stored procedures.
+ <para>Isto também funciona com stored procedures.
</para>
- <para>Voc� pode temb�m definir uma query para iniciar collection:
+ <para>Você pode tembém definir uma query para iniciar collection:
</para>
<programlisting><![CDATA[<set name="employments" inverse="true">
@@ -780,4 +782,4 @@
WHERE ID=?
</sql-query>]]></programlisting>
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/session_api.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/session_api.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/session_api.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="objectstate">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="objectstate">
<title>Trabalhando com objetos</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/toolset_guide.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/toolset_guide.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/toolset_guide.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="toolsetguide" revision="2">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="toolsetguide" revision="2">
<title>Toolset Guide</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/transactions.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/transactions.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/transactions.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="transactions" revision="2">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="transactions" revision="2">
<title>Transações e Concorrência</title>
<para>
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/tutorial.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/tutorial.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/tutorial.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="tutorial">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="tutorial">
<title>Introdução ao Hibernate</title>
<sect1 id="tutorial-intro" revision="1">
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/tutorial1.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/tutorial1.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/tutorial1.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="tutorial">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="tutorial">
<title>Introdução ao Hibernate</title>
<sect1 id="tutorial-intro" revision="1">
Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/content/xml.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/content/xml.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/content/xml.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,4 +1,7 @@
-<chapter id="xml">
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<chapter id="xml">
<title>Mapeamento XML</title>
<para><emphasis>
Deleted: core/trunk/documentation/manual/pt-BR/src/main/docbook/legal_notice2.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/legal_notice2.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/legal_notice2.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,15 +0,0 @@
-<?xml version='1.0'?>
-<!DOCTYPE legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-
-<legalnotice id="Legal_Notice">
- <title>Translation-specific Legal Notice</title>
- <para>
- <emphasis>Advertencia! Esta é uma versão traduzida do inglês da
- documentação de referencia do Hibernate. A versão traduziada pode estar
- desatualizada. Sem dúvida, as diferenças devem ser pequenas e serão corrigidas o
- mais breve possivel. Consulte a documentação de referencia em inglês, se estiver
- faltando alguma informação ou você encotrar erros de tradução. Se quiser
- colaborar com ama tradução em particular, entre em contato com um dos tradutores
- abaixo:</emphasis>. Gamarra
- </para>
-</legalnotice>
\ No newline at end of file
Deleted: core/trunk/documentation/manual/pt-BR/src/main/docbook/translators.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/translators.xml 2007-10-19 04:59:43 UTC (rev 14117)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/translators.xml 2007-10-19 05:09:51 UTC (rev 14118)
@@ -1,93 +0,0 @@
-<?xml version='1.0'?>
-
-<!DOCTYPE authorgroup PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-
-<!--
- ~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
- ~
- ~ 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
- ~ Lesser General Public License, v. 2.1. This program is distributed in the
- ~ hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
- ~ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details. You should have received a
- ~ copy of the GNU Lesser General Public License, v.2.1 along with this
- ~ distribution; if not, write to the Free Software Foundation, Inc.,
- ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- ~
- ~ Red Hat Author(s): Steve Ebersole
- -->
-<authorgroup id="AuthorGroup">
-
- <othercredit class="translator">
- <firstname>Alvaro</firstname>
- <surname>Netto</surname>
- <email>alvaronetto(a)cetip.com.br</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Anderson</firstname>
- <surname>Braulio</surname>
- <email>andersonbraulio(a)gmail.com</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Daniel Vieira</firstname>
- <surname>Costa</surname>
- <email>danielvc(a)gmail.com</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Francisco</firstname>
- <surname>gamarra</surname>
- <email>francisco.gamarra(a)gmail.com</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Gamarra</firstname>
- <email>mauricio.gamarra(a)gmail.com</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Luiz Carlos</firstname>
- <surname>Rodrigues</surname>
- <email>luizcarlos_rodrigues(a)yahoo.com.br</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Marcel</firstname>
- <surname>Castelo</surname>
- <email>marcel.castelo(a)gmail.com</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Paulo</firstname>
- <surname>César</surname>
- <email>paulocol(a)gmail.com</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Pablo L.</firstname>
- <surname>de Miranda</surname>
- <email>pablolmiranda(a)gmail.com</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Renato</firstname>
- <surname>Deggau</surname>
- <email>rdeggau(a)gmail.com</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Rogério</firstname>
- <surname>Araújo</surname>
- <email>rgildoaraujo(a)yahoo.com.br</email>
- </othercredit>
-
- <othercredit class="translator">
- <firstname>Wanderson</firstname>
- <surname>Siqueira</surname>
- <email>wandersonxs(a)gmail.com</email>
- </othercredit>
-
-</authorgroup>
\ No newline at end of file
17 years, 2 months
Hibernate SVN: r14117 - in core/trunk/documentation/manual/ko-KR/src/main/docbook: content and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2007-10-19 00:59:43 -0400 (Fri, 19 Oct 2007)
New Revision: 14117
Modified:
core/trunk/documentation/manual/ko-KR/src/main/docbook/Hibernate_Reference.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/architecture.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/association_mapping.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/basic_mapping.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/batch.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/best_practices.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/collection_mapping.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/component_mapping.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/configuration.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/events.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_mappings.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_parentchild.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_weblog.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/filters.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/inheritance_mapping.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/performance.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/persistent_classes.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/preface.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_criteria.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_hql.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_sql.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/quickstart.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/session_api.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/toolset_guide.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/transactions.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/tutorial.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/content/xml.xml
core/trunk/documentation/manual/ko-KR/src/main/docbook/legal_notice.xml
Log:
prep for gettext conversion
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/Hibernate_Reference.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/Hibernate_Reference.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/Hibernate_Reference.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -33,13 +33,13 @@
<xi:include href="content/preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/tutorial.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/tutorial.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/architecture.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/architecture.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/configuration.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/configuration.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/persistent_classes.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/persistent_classes.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/basic_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/collection_mapping.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/architecture.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/architecture.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/architecture.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,18 +1,6 @@
-<!--
- ~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
- ~
- ~ 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
- ~ Lesser General Public License, v. 2.1. This program is distributed in the
- ~ hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
- ~ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details. You should have received a
- ~ copy of the GNU Lesser General Public License, v.2.1 along with this
- ~ distribution; if not, write to the Free Software Foundation, Inc.,
- ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- ~
- ~ Red Hat Author(s): Steve Ebersole
- -->
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="architecture">
<title>아키텍처</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/association_mapping.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/association_mapping.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/association_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="associations">
<title>연관 매핑들</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/basic_mapping.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/basic_mapping.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/basic_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="mapping">
<title>기본 O/R 매핑</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/batch.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/batch.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/batch.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="batch">
<title>Batch 처리</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/best_practices.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/best_practices.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/best_practices.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="best-practices" revision="3">
<title>최상의 실전 경험들</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/collection_mapping.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/collection_mapping.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/collection_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="collections">
<title>콜렉션 매핑</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/component_mapping.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/component_mapping.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/component_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="components">
<title>Component 매핑</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/configuration.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/configuration.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/configuration.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="session-configuration" revision="1">
<title>구성</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/events.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/events.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/events.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="events">
<title>인터셉터들과 이벤트들</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_mappings.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_mappings.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_mappings.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,18 +1,6 @@
-<!--
- ~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
- ~
- ~ 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
- ~ Lesser General Public License, v. 2.1. This program is distributed in the
- ~ hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
- ~ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details. You should have received a
- ~ copy of the GNU Lesser General Public License, v.2.1 along with this
- ~ distribution; if not, write to the Free Software Foundation, Inc.,
- ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- ~
- ~ Red Hat Author(s): Steve Ebersole
- -->
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="example-mappings">
<title>예제: 여러 가지 매핑들</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_parentchild.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_parentchild.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_parentchild.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="example-parentchild">
<title>예제: 부모/자식</title>
@@ -340,4 +343,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_weblog.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_weblog.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/example_weblog.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="example-weblog">
<title>예제: Weblog 어플리케이션</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/filters.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/filters.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/filters.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="filters">
<title>데이터 필터링하기</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/inheritance_mapping.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/inheritance_mapping.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/inheritance_mapping.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="inheritance">
<title>상속 매핑</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/performance.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/performance.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/performance.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="performance">
<title>퍼포먼스 개선하기</title>
@@ -1290,4 +1293,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/persistent_classes.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/persistent_classes.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/persistent_classes.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="persistent-classes" revision="2">
<title>영속 클래스들</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/preface.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/preface.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/preface.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,5 +1,4 @@
<?xml version='1.0' encoding="UTF-8"?>
-
<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<preface id="preface" revision="2">
@@ -107,4 +106,4 @@
Enterprise Middleware System (JEMS) suite의 중대한 컴포넌트이다.
</para>
-</preface>
\ No newline at end of file
+</preface>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_criteria.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_criteria.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_criteria.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="querycriteria">
<title>Criteria 질의들</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_hql.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_hql.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="queryhql" revision="1">
<title>HQL: 하이버네이트 질의 언어(Hibernate Query Language)</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_sql.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_sql.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/query_sql.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,4 +1,6 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="querysql" revision="2">
<title>Native SQL</title>
@@ -691,4 +693,4 @@
WHERE ID=?
</sql-query>]]></programlisting>
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/quickstart.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/quickstart.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/quickstart.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="quickstart">
<title>Tomcat으로 빠른 시작</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/session_api.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/session_api.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/session_api.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="objectstate">
<title>객체들로 작업하기</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/toolset_guide.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/toolset_guide.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/toolset_guide.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="toolsetguide" revision="2">
<title>도구셋 안내</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/transactions.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/transactions.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/transactions.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="transactions" revision="2">
<title>트랜잭션들과 동시성</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/tutorial.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/tutorial.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/tutorial.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="tutorial">
<title>Hibernate 개요</title>
@@ -1483,4 +1486,4 @@
</sect1>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/content/xml.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/content/xml.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/content/xml.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,3 +1,6 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
<chapter id="xml">
<title>XML 매핑</title>
Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/legal_notice.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/legal_notice.xml 2007-10-19 04:53:10 UTC (rev 14116)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/legal_notice.xml 2007-10-19 04:59:43 UTC (rev 14117)
@@ -1,4 +1,4 @@
-<?xml version='1.0'?>
+<?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<legalnotice id="Legal_Notice">
@@ -34,4 +34,4 @@
<para>
CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E
</para>
-</legalnotice>
\ No newline at end of file
+</legalnotice>
17 years, 2 months