[hibernate-commits] Hibernate SVN: r18898 - core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/engine.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Feb 25 15:32:25 EST 2010


Author: stliu
Date: 2010-02-25 15:32:24 -0500 (Thu, 25 Feb 2010)
New Revision: 18898

Modified:
   core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/engine/Versioning.java
Log:
correct javadoc typo

Modified: core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/engine/Versioning.java
===================================================================
--- core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/engine/Versioning.java	2010-02-25 19:12:35 UTC (rev 18897)
+++ core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/engine/Versioning.java	2010-02-25 20:32:24 UTC (rev 18898)
@@ -8,7 +8,7 @@
 import org.hibernate.type.VersionType;
 
 /**
- * Utilities for dealing with optimisitic locking values.
+ * Utilities for dealing with optimistic locking values.
  * 
  * @author Gavin King
  */
@@ -19,19 +19,19 @@
 	public static final int OPTIMISTIC_LOCK_NONE = -1;
 
 	/**
-	 * Apply optimisitc locking based on the defined version or timestamp
+	 * Apply optimistic locking based on the defined version or timestamp
 	 * property.
 	 */
 	public static final int OPTIMISTIC_LOCK_VERSION = 0;
 
 	/**
-	 * Apply optimisitc locking based on the a current vs. snapshot comparison
+	 * Apply optimistic locking based on the a current vs. snapshot comparison
 	 * of <b>all</b> properties.
 	 */
 	public static final int OPTIMISTIC_LOCK_ALL = 2;
 
 	/**
-	 * Apply optimisitc locking based on the a current vs. snapshot comparison
+	 * Apply optimistic locking based on the a current vs. snapshot comparison
 	 * of <b>dirty</b> properties.
 	 */
 	public static final int OPTIMISTIC_LOCK_DIRTY = 1;
@@ -44,12 +44,12 @@
 	private Versioning() {}
 
 	/**
-	 * Create an initial optimisitc locking value according the {@link VersionType}
+	 * Create an initial optimistic locking value according the {@link VersionType}
 	 * contract for the version property.
 	 *
 	 * @param versionType The version type.
 	 * @param session The originating session
-	 * @return The initial optimisitc locking value
+	 * @return The initial optimistic locking value
 	 */
 	private static Object seed(VersionType versionType, SessionImplementor session) {
 		Object seed = versionType.seed( session );
@@ -58,14 +58,14 @@
 	}
 
 	/**
-	 * Create an initial optimisitc locking value according the {@link VersionType}
+	 * Create an initial optimistic locking value according the {@link VersionType}
 	 * contract for the version property <b>if required</b> and inject it into
 	 * the snapshot state.
 	 *
 	 * @param fields The current snapshot state
 	 * @param versionProperty The index of the version property
 	 * @param versionType The version type
-	 * @param session The orginating session
+	 * @param session The originating session
 	 * @return True if we injected a new version value into the fields array; false
 	 * otherwise.
 	 */
@@ -96,7 +96,7 @@
 
 
 	/**
-	 * Generate the next increment in the optimisitc locking value according
+	 * Generate the next increment in the optimistic locking value according
 	 * the {@link VersionType} contract for the version property.
 	 *
 	 * @param version The current version
@@ -118,10 +118,10 @@
 	}
 
 	/**
-	 * Inject the optimisitc locking value into the entity state snapshot.
+	 * Inject the optimistic locking value into the entity state snapshot.
 	 *
 	 * @param fields The state snapshot
-	 * @param version The optimisitc locking value
+	 * @param version The optimistic locking value
 	 * @param persister The entity persister
 	 */
 	public static void setVersion(Object[] fields, Object version, EntityPersister persister) {
@@ -132,11 +132,11 @@
 	}
 
 	/**
-	 * Extract the optimisitc locking value out of the entity state snapshot.
+	 * Extract the optimistic locking value out of the entity state snapshot.
 	 *
 	 * @param fields The state snapshot
 	 * @param persister The entity persister
-	 * @return The extracted optimisitc locking value
+	 * @return The extracted optimistic locking value
 	 */
 	public static Object getVersion(Object[] fields, EntityPersister persister) {
 		if ( !persister.isVersioned() ) {



More information about the hibernate-commits mailing list