[hibernate-commits] Hibernate SVN: r19151 - core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/engine.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Apr 1 11:12:56 EDT 2010


Author: stliu
Date: 2010-04-01 11:12:56 -0400 (Thu, 01 Apr 2010)
New Revision: 19151

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

Modified: core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/engine/Versioning.java
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/engine/Versioning.java	2010-04-01 14:28:32 UTC (rev 19150)
+++ core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/engine/Versioning.java	2010-04-01 15:12:56 UTC (rev 19151)
@@ -31,7 +31,7 @@
 import org.hibernate.type.VersionType;
 
 /**
- * Utilities for dealing with optimisitic locking values.
+ * Utilities for dealing with optimistic locking values.
  *
  * @author Gavin King
  */
@@ -42,19 +42,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 v.s. 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 v.s. snapshot comparison
 	 * of <b>dirty</b> properties.
 	 */
 	public static final int OPTIMISTIC_LOCK_DIRTY = 1;
@@ -67,12 +67,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 );
@@ -81,14 +81,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.
 	 */
@@ -119,7 +119,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
@@ -141,10 +141,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) {
@@ -155,11 +155,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