Author: stliu
Date: 2009-12-29 09:47:06 -0500 (Tue, 29 Dec 2009)
New Revision: 18342
Modified:
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/hql/ast/HqlSqlWalker.java
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/hql/ast/tree/ParameterContainer.java
Log:
minor chanage, correct javadoc spell
Modified:
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/hql/ast/HqlSqlWalker.java
===================================================================
---
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/hql/ast/HqlSqlWalker.java 2009-12-29
08:08:58 UTC (rev 18341)
+++
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/hql/ast/HqlSqlWalker.java 2009-12-29
14:47:06 UTC (rev 18342)
@@ -104,7 +104,7 @@
* Implements methods used by the HQL->SQL tree transform grammar (a.k.a. the second
phase).
* <ul>
* <li>Isolates the Hibernate API-specific code from the ANTLR generated
code.</li>
- * <li>Handles the SQL framgents generated by the persisters in order to create the
SELECT and FROM clauses,
+ * <li>Handles the SQL fragments generated by the persisters in order to create the
SELECT and FROM clauses,
* taking into account the joins and projections that are implied by the mappings
(persister/queryable).</li>
* <li>Uses SqlASTFactory to create customized AST nodes.</li>
* </ul>
@@ -231,7 +231,7 @@
// }
if ( isFilter() ) {
- // Handle collection-fiter compilation.
+ // Handle collection-filter compilation.
// IMPORTANT NOTE: This is modifying the INPUT (HQL) tree, not the output tree!
QueryableCollection persister = sessionFactoryHelper.getCollectionPersister(
collectionFilterRole );
Type collectionElementType = persister.getElementType();
@@ -452,7 +452,7 @@
joinAlias = extractAppliedAlias( dotNode );
// todo : temporary
// needed because currently persister is the one that
- // creates and renders the join fragments for inheritence
+ // creates and renders the join fragments for inheritance
// hierarchies...
if ( !joinAlias.equals( referencedFromElement.getTableAlias() ) ) {
throw new InvalidWithClauseException( "with clause can only reference columns
in the driving table" );
@@ -763,7 +763,7 @@
parameters.add( 0, paramSpec );
if (
sessionFactoryHelper.getFactory().getDialect().requiresCastingOfParametersInSelectClause()
) {
- // we need to wrtap the param in a cast()
+ // we need to wrap the param in a cast()
MethodNode versionMethodNode = ( MethodNode ) getASTFactory().create(
HqlSqlTokenTypes.METHOD_CALL, "(" );
AST methodIdentNode = getASTFactory().create( HqlSqlTokenTypes.IDENT,
"cast" );
versionMethodNode.addChild( methodIdentNode );
@@ -1015,7 +1015,7 @@
}
public boolean isShallowQuery() {
- // select clauses for insert statements should alwasy be treated as shallow
+ // select clauses for insert statements should always be treated as shallow
return getStatementType() == INSERT || queryTranslatorImpl.isShallowQuery();
}
Modified:
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/hql/ast/tree/ParameterContainer.java
===================================================================
---
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/hql/ast/tree/ParameterContainer.java 2009-12-29
08:08:58 UTC (rev 18341)
+++
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/hql/ast/tree/ParameterContainer.java 2009-12-29
14:47:06 UTC (rev 18342)
@@ -28,7 +28,7 @@
/**
* Currently this is needed in order to deal with {@link FromElement FromElements} which
- * conatin "hidden" JDBC parameters from applying filters.
+ * contains "hidden" JDBC parameters from applying filters.
* <p/>
* Would love for this to go away, but that would require that Hibernate's
* internal {@link org.hibernate.engine.JoinSequence join handling} be able to
either:<ul>
@@ -60,7 +60,7 @@
public void addEmbeddedParameter(ParameterSpecification specification);
/**
- * Determine whether this node contans embedded parameters. The implication is that
+ * Determine whether this node contains embedded parameters. The implication is that
* {@link #getEmbeddedParameters()} is allowed to return null if this method returns
false.
*
* @return True if this node contains embedded parameters; false otherwise.