Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.hibernate.internal.util.StringHelper;

/**
* A SQL {FOR UPDATE} clause.
* A SQL {@code FOR UPDATE} clause.
*
* @author Gavin King
*/
Expand Down
4 changes: 2 additions & 2 deletions hibernate-core/src/main/java/org/hibernate/sql/Template.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
* should be written in the native SQL dialect of the target database,
* with the following special exceptions:
* <ul>
* <li>any backtick-quoted identifiers, for example {@code `hello`},
* <li>any backtick-quoted identifier, for example {@code `hello`},
* is interpreted as a quoted identifier and re-quoted using the
* {@linkplain Dialect#quote native quoted identifier syntax} of
* the database, and</li>
* <li>the literal identifiers {@code true} and {@code false} are
* interpreted are literal boolean values, and replaced with
* interpreted as literal boolean values, and replaced with
* {@linkplain Dialect#toBooleanValueString dialect-specific
* literal values}.
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ public enum Clause {
SET_EXPRESSION,

/**
* Not used in 5.x. Intended for use in 6+ as indicator
* of processing predicates (where clause) that occur in a
* delete
* Used as indicator of processing predicates (where clause)
* that occur in a delete
*/
DELETE,
MERGE,
Expand All @@ -64,9 +63,6 @@ public enum Clause {
CONFLICT,
CALL,

/**
* Again, not used in 5.x. Used in 6+
*/
IRRELEVANT

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public enum SqlAstJoinType {
RIGHT( "right " ),

/**
* Represents a cross join (aka a cartesian product).
* Represents a cross join (that is, a Cartesian product).
*/
CROSS( "cross " ),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public interface SqlAstTranslator<T extends JdbcOperation> extends SqlAstWalker
Stack<Clause> getCurrentClauseStack();

/**
* Not the best spot for this. Its the table names collected while walking the SQL AST.
* Its ok here because the translator is consider a one-time-use. It just needs to be called
* Not the best spot for this. Returns the table names collected while walking the SQL AST.
* It's ok here because the translator is consider a one-time-use. It just needs to be called
* after translation.
*
* A better option is probably to have "translation" objects that expose the affected table-names.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public abstract class AbstractSqlAstTranslator<T extends JdbcOperation> implemen

/**
* When emulating the recursive WITH clause subclauses SEARCH and CYCLE,
* we need to build a string path and some database like MySQL require that
* we need to build a string path and some databases like MySQL require that
* we cast the expression to a char with certain size.
* To estimate the size, we need to assume a certain max recursion depth.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/**
* The "context" in which creation of SQL AST occurs. Provides
* access to generally needed when creating SQL AST nodes
* access to stuff generally needed when creating SQL AST nodes
*
* @author Steve Ebersole
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public enum JdbcLockStrategy {

/**
* Use a dialect specific check to determine how to apply locks.
* Use a dialect-specific check to determine how to apply locks.
*/
AUTO,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/**
* An anonymous call block (sometimes called an anonymous procedure) to be executed
* on the database. The format of this various by database, but it is essentially an
* on the database. The format of this varies by database, but it is essentially an
* unnamed procedure without OUT, INOUT or REF_CURSOR type parameters
*
* @author Steve Ebersole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@

/**
* This is in all practical terms a {@code Map<NavigablePath, Initializer>}
* but wrapping an HashMap so to keep the client code readable as we need
* but wrapping a {@code HashMap} to keep the client code readable as we need
* to:
* a) have a way to log all initializers
* b) prevent type pollution from happening on Initializer retrieval
* <ul>
* <li>have a way to log all initializers</li>
* <li>prevent type pollution from happening on Initializer retrieval</li>
* </ul>
* I also consider it good practice to only expose the minimal set of
* operations the client actually needs.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
public class ListResultsConsumer<R> implements ResultsConsumer<List<R>, R> {

/**
* Let's be reasonable, a row estimate greater than 1M rows is probably either a mis-estimation or bug,
* so let's set 2^20 which is a bit above 1M as maximum collection size.
* Let's be reasonable: a row estimate greater than 1M rows is probably either a misestimate or a bug,
* so let's set {@code 2^20} which is a bit above 1M as maximum collection size.
*/
private static final int INITIAL_COLLECTION_SIZE_LIMIT = 1 << 20;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public interface RowReader<R> {
* The type actually returned from this reader's {@link #readRow} call,
* accounting for any transformers.
* <p>
* May be null to indicate that no transformation is applied.
* May be {@code null} to indicate that no transformation is applied.
* <p>
* Ultimately intended for use in comparing values are being de-duplicated
* Ultimately intended for use in comparing values that are being de-duplicated
*/
Class<R> getDomainResultResultJavaType();

Expand Down