Author: max.ross
Date: 2007-03-19 18:43:03 -0400 (Mon, 19 Mar 2007)
New Revision: 11306
Modified:
trunk/HibernateExt/shards/doc/reference/en/modules/architecture.xml
trunk/HibernateExt/shards/doc/reference/en/modules/configuration.xml
trunk/HibernateExt/shards/doc/reference/en/modules/limitations.xml
trunk/HibernateExt/shards/src/java/org/hibernate/shards/cfg/ShardedEnvironment.java
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard0.hibernate.cfg.xml
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard1.hibernate.cfg.xml
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard2.hibernate.cfg.xml
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard0.hibernate.cfg.xml
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard1.hibernate.cfg.xml
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard2.hibernate.cfg.xml
Log:
change property name from something absurdly verbose to something only marginally verbose
(hibernate.shard.enable_cross_shard_relationship_checks)
Also added a small section to the architecture page stating that we require Java 1.5 or
higher.
Modified: trunk/HibernateExt/shards/doc/reference/en/modules/architecture.xml
===================================================================
--- trunk/HibernateExt/shards/doc/reference/en/modules/architecture.xml 2007-03-19
22:19:11 UTC (rev 11305)
+++ trunk/HibernateExt/shards/doc/reference/en/modules/architecture.xml 2007-03-19
22:43:03 UTC (rev 11306)
@@ -125,4 +125,11 @@
</para>
<para>For more information on Sharding Strategies please consult the
chapter of the same name.</para>
</sect1>
+ <sect1 id="shards-architecture-requirements" revision="1">
+ <title>System Requirements</title>
+ <para>
+ Hibernate Shards has the same system requirements as Hibernate Core, with the
additional restriction
+ that we require Java 1.5 or higher.
+ </para>
+ </sect1>
</chapter>
Modified: trunk/HibernateExt/shards/doc/reference/en/modules/configuration.xml
===================================================================
--- trunk/HibernateExt/shards/doc/reference/en/modules/configuration.xml 2007-03-19
22:19:11 UTC (rev 11305)
+++ trunk/HibernateExt/shards/doc/reference/en/modules/configuration.xml 2007-03-19
22:43:03 UTC (rev 11306)
@@ -211,7 +211,7 @@
7 <property name="connection.username">my_user</property>
8 <property
name="connection.password">my_password</property>
9 <property
name="hibernate.connection.shard_id">0</property> <!-- new -->
- 10 <property
name="hibernate.shard.check_all_associated_objects_for_different_shards">true</property>
<!-- new -->
+ 10 <property
name="hibernate.shard.enable_cross_shard_relationship_checks">true</property>
<!-- new -->
11 </session-factory>
12 </hibernate-configuration>
]]></programlisting>
@@ -225,7 +225,7 @@
7 <property name="connection.username">my_user</property>
8 <property
name="connection.password">my_password</property>
9 <property
name="hibernate.connection.shard_id">1</property> <!-- new -->
- 10 <property
name="hibernate.shard.check_all_associated_objects_for_different_shards">true</property>
<!-- new -->
+ 10 <property
name="hibernate.shard.enable_cross_shard_relationship_checks">true</property>
<!-- new -->
11 </session-factory>
12 </hibernate-configuration>
]]></programlisting>
@@ -240,7 +240,7 @@
</para>
<para>
The other noteworthy addition is the rather verbose but hopefully
descriptive
-
"hibernate.shard.check_all_associated_objects_for_different_shards." You can
read more about this in the
+ "hibernate.shard.enable_cross_shard_relationship_checks." You can
read more about this in the
chapter on limitations.
</para>
<para>
Modified: trunk/HibernateExt/shards/doc/reference/en/modules/limitations.xml
===================================================================
--- trunk/HibernateExt/shards/doc/reference/en/modules/limitations.xml 2007-03-19 22:19:11
UTC (rev 11305)
+++ trunk/HibernateExt/shards/doc/reference/en/modules/limitations.xml 2007-03-19 22:43:03
UTC (rev 11306)
@@ -44,7 +44,7 @@
database, so if you have lazy-loaded associations the interceptor will
resolve those associations as part
of its checks. This is potentially quite expensive, and may not be suitable
for a production system.
With this in mind, we've made it easy to configure whether or not this
check is performed via the
- "hibernate.shard.check_all_associated_objects_for_different_shards"
property we referenced in the chapter
+ "hibernate.shard.enable_cross_shard_relationship_checks" property
we referenced in the chapter
on configuration. If this property is set to "true" a
<classname>CrossShardRelationshipDetectingInterceptor</classname>
will be registered with every
<classname>ShardedSession</classname> that is established. Don't worry,
you can still register your own interceptor as well. Our expectation is that
most applications will have
Modified:
trunk/HibernateExt/shards/src/java/org/hibernate/shards/cfg/ShardedEnvironment.java
===================================================================
---
trunk/HibernateExt/shards/src/java/org/hibernate/shards/cfg/ShardedEnvironment.java 2007-03-19
22:19:11 UTC (rev 11305)
+++
trunk/HibernateExt/shards/src/java/org/hibernate/shards/cfg/ShardedEnvironment.java 2007-03-19
22:43:03 UTC (rev 11306)
@@ -36,7 +36,7 @@
* performance but will prevent the programmer from ending up with the
* same entity on multiple shards, which is bad (at least in the current version).
*/
- public static final String CHECK_ALL_ASSOCIATED_OBJECTS_FOR_DIFFERENT_SHARDS =
"hibernate.shard.check_all_associated_objects_for_different_shards";
+ public static final String CHECK_ALL_ASSOCIATED_OBJECTS_FOR_DIFFERENT_SHARDS =
"hibernate.shard.enable_cross_shard_relationship_checks";
private ShardedEnvironment() {}
}
Modified:
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard0.hibernate.cfg.xml
===================================================================
---
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard0.hibernate.cfg.xml 2007-03-19
22:19:11 UTC (rev 11305)
+++
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard0.hibernate.cfg.xml 2007-03-19
22:43:03 UTC (rev 11306)
@@ -28,7 +28,7 @@
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="hibernate.connection.shard_id">0</property>
- <property
name="hibernate.shard.check_all_associated_objects_for_different_shards">true</property>
+ <property
name="hibernate.shard.enable_cross_shard_relationship_checks">true</property>
</session-factory>
</hibernate-configuration>
Modified:
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard1.hibernate.cfg.xml
===================================================================
---
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard1.hibernate.cfg.xml 2007-03-19
22:19:11 UTC (rev 11305)
+++
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard1.hibernate.cfg.xml 2007-03-19
22:43:03 UTC (rev 11306)
@@ -28,7 +28,7 @@
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="hibernate.connection.shard_id">1</property>
- <property
name="hibernate.shard.check_all_associated_objects_for_different_shards">true</property>
+ <property
name="hibernate.shard.enable_cross_shard_relationship_checks">true</property>
</session-factory>
</hibernate-configuration>
Modified:
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard2.hibernate.cfg.xml
===================================================================
---
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard2.hibernate.cfg.xml 2007-03-19
22:19:11 UTC (rev 11305)
+++
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/hsql/config/shard2.hibernate.cfg.xml 2007-03-19
22:43:03 UTC (rev 11306)
@@ -28,7 +28,7 @@
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="hibernate.connection.shard_id">2</property>
- <property
name="hibernate.shard.check_all_associated_objects_for_different_shards">true</property>
+ <property
name="hibernate.shard.enable_cross_shard_relationship_checks">true</property>
</session-factory>
</hibernate-configuration>
Modified:
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard0.hibernate.cfg.xml
===================================================================
---
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard0.hibernate.cfg.xml 2007-03-19
22:19:11 UTC (rev 11305)
+++
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard0.hibernate.cfg.xml 2007-03-19
22:43:03 UTC (rev 11306)
@@ -28,7 +28,7 @@
<property name="connection.username">shard_user</property>
<property name="connection.password">shard</property>
<property name="hibernate.connection.shard_id">0</property>
- <property
name="hibernate.shard.check_all_associated_objects_for_different_shards">true</property>
+ <property
name="hibernate.shard.enable_cross_shard_relationship_checks">true</property>
</session-factory>
</hibernate-configuration>
Modified:
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard1.hibernate.cfg.xml
===================================================================
---
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard1.hibernate.cfg.xml 2007-03-19
22:19:11 UTC (rev 11305)
+++
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard1.hibernate.cfg.xml 2007-03-19
22:43:03 UTC (rev 11306)
@@ -28,7 +28,7 @@
<property name="connection.username">shard_user</property>
<property name="connection.password">shard</property>
<property name="hibernate.connection.shard_id">1</property>
- <property
name="hibernate.shard.check_all_associated_objects_for_different_shards">true</property>
+ <property
name="hibernate.shard.enable_cross_shard_relationship_checks">true</property>
</session-factory>
</hibernate-configuration>
Modified:
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard2.hibernate.cfg.xml
===================================================================
---
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard2.hibernate.cfg.xml 2007-03-19
22:19:11 UTC (rev 11305)
+++
trunk/HibernateExt/shards/src/test/org/hibernate/shards/integration/platform/mysql/config/shard2.hibernate.cfg.xml 2007-03-19
22:43:03 UTC (rev 11306)
@@ -28,7 +28,7 @@
<property name="connection.username">shard_user</property>
<property name="connection.password">shard</property>
<property name="hibernate.connection.shard_id">2</property>
- <property
name="hibernate.shard.check_all_associated_objects_for_different_shards">true</property>
+ <property
name="hibernate.shard.enable_cross_shard_relationship_checks">true</property>
</session-factory>
</hibernate-configuration>
Show replies by date