diff --git a/hibernate-c3p0/src/main/java/org/hibernate/c3p0/internal/C3P0ConnectionProvider.java b/hibernate-c3p0/src/main/java/org/hibernate/c3p0/internal/C3P0ConnectionProvider.java index d93b987227..c354d3c9e5 100644 --- a/hibernate-c3p0/src/main/java/org/hibernate/c3p0/internal/C3P0ConnectionProvider.java +++ b/hibernate-c3p0/src/main/java/org/hibernate/c3p0/internal/C3P0ConnectionProvider.java @@ -32,7 +32,7 @@ import org.jboss.logging.Logger; /** * A connection provider that uses a C3P0 connection pool. Hibernate will use this by - * default if the hibernate.c3p0.* properties are set. + * default if the {@code hibernate.c3p0.*} properties are set. * * @author various people * @see ConnectionProvider diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/TeradataDialect.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/TeradataDialect.java index b6863b6626..eab0310841 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/TeradataDialect.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/TeradataDialect.java @@ -288,9 +288,9 @@ public class TeradataDialect extends Dialect { } /** - * Does this dialect support the FOR UPDATE syntax? + * Does this dialect support the {@code FOR UPDATE} syntax? * - * @return empty string ... Teradata does not support FOR UPDATE syntax + * @return empty string ... Teradata does not support {@code FOR UPDATE} syntax */ @Override public String getForUpdateString() { diff --git a/hibernate-core/src/main/java/org/hibernate/CacheMode.java b/hibernate-core/src/main/java/org/hibernate/CacheMode.java index 9a56e53f22..78d2947607 100644 --- a/hibernate-core/src/main/java/org/hibernate/CacheMode.java +++ b/hibernate-core/src/main/java/org/hibernate/CacheMode.java @@ -40,7 +40,7 @@ public enum CacheMode { /** * The session will never read items from the cache, but will add items * to the cache as it reads them from the database. In this mode, the - * effect of hibernate.cache.use_minimal_puts is bypassed, in + * effect of {@code hibernate.cache.use_minimal_puts} is bypassed, in * order to force a cache refresh. */ REFRESH( CacheStoreMode.REFRESH, CacheRetrieveMode.BYPASS ); diff --git a/hibernate-core/src/main/java/org/hibernate/FetchMode.java b/hibernate-core/src/main/java/org/hibernate/FetchMode.java index f99a5bd54d..67bc5a1b30 100644 --- a/hibernate-core/src/main/java/org/hibernate/FetchMode.java +++ b/hibernate-core/src/main/java/org/hibernate/FetchMode.java @@ -8,10 +8,10 @@ package org.hibernate; /** * Represents an association fetching strategy. This is used - * together with the Criteria API to specify runtime + * together with the {@code Criteria} API to specify runtime * fetching strategies. *
- * For HQL queries, use the FETCH keyword instead. + * For HQL queries, use the {@code FETCH} keyword instead. * * @see Criteria#setFetchMode(String, FetchMode) * @@ -24,26 +24,26 @@ public enum FetchMode { DEFAULT, /** - * Fetch using an outer join. Equivalent to fetch="join". + * Fetch using an outer join. Equivalent to {@code fetch="join"}. */ JOIN, /** * Fetch eagerly, using a separate select. Equivalent to - * fetch="select". + * {@code fetch="select"}. */ SELECT; /** - * Fetch lazily. Equivalent to outer-join="false". + * Fetch lazily. Equivalent to {@code outer-join="false"}. * - * @deprecated use FetchMode.SELECT + * @deprecated use {@code FetchMode.SELECT} */ @Deprecated public static final FetchMode LAZY = SELECT; /** - * Fetch eagerly, using an outer join. Equivalent to outer-join="true". + * Fetch eagerly, using an outer join. Equivalent to {@code outer-join="true"}. * - * @deprecated use FetchMode.JOIN + * @deprecated use {@code FetchMode.JOIN} */ @Deprecated public static final FetchMode EAGER = JOIN; diff --git a/hibernate-core/src/main/java/org/hibernate/Hibernate.java b/hibernate-core/src/main/java/org/hibernate/Hibernate.java index 8078c71c24..134c794c4e 100644 --- a/hibernate-core/src/main/java/org/hibernate/Hibernate.java +++ b/hibernate-core/src/main/java/org/hibernate/Hibernate.java @@ -43,9 +43,9 @@ import org.hibernate.proxy.LazyInitializer; /** *
@@ -36,7 +36,7 @@ public enum LockMode { READ( 5, "read" ), /** * An upgrade lock. Objects loaded in this lock mode are - * materialized using an SQL select ... for update. + * materialized using an SQL {@code select ... for update}. * * @deprecated instead use PESSIMISTIC_WRITE */ @@ -44,24 +44,24 @@ public enum LockMode { UPGRADE( 10, "upgrade" ), /** * Attempt to obtain an upgrade lock, using an Oracle-style - * select for update nowait. The semantics of + * {@code select for update nowait}. The semantics of * this lock mode, once obtained, are the same as - * UPGRADE. + * {@code UPGRADE}. */ UPGRADE_NOWAIT( 10, "upgrade-nowait" ), /** * Attempt to obtain an upgrade lock, using an Oracle-style - * select for update skip locked. The semantics of + * {@code select for update skip locked}. The semantics of * this lock mode, once obtained, are the same as - * UPGRADE. + * {@code UPGRADE}. */ UPGRADE_SKIPLOCKED( 10, "upgrade-skiplocked" ), /** - * A WRITE lock is obtained when an object is updated + * A {@code WRITE} lock is obtained when an object is updated * or inserted. This lock mode is for internal use only and is - * not a valid mode for load() or lock() (both + * not a valid mode for {@code load()} or {@code lock()} (both * of which throw exceptions if WRITE is specified). */ WRITE( 10, "write" ), diff --git a/hibernate-core/src/main/java/org/hibernate/LockOptions.java b/hibernate-core/src/main/java/org/hibernate/LockOptions.java index 0448f0e3e2..ff3df809cf 100644 --- a/hibernate-core/src/main/java/org/hibernate/LockOptions.java +++ b/hibernate-core/src/main/java/org/hibernate/LockOptions.java @@ -155,7 +155,7 @@ public class LockOptions implements Serializable { * Determine the {@link LockMode} to apply to the given alias. If no * mode was explicitly {@link #setAliasSpecificLockMode set}, the * {@link #getLockMode overall mode} is returned. If the overall lock mode is - * null as well, {@link LockMode#NONE} is returned. + * {@code null} as well, {@link LockMode#NONE} is returned. *
* Differs from {@link #getAliasSpecificLockMode} in that here we fallback to we only return * the overall lock mode. diff --git a/hibernate-core/src/main/java/org/hibernate/NonUniqueResultException.java b/hibernate-core/src/main/java/org/hibernate/NonUniqueResultException.java index 2b2288e7eb..b2ae0ae193 100644 --- a/hibernate-core/src/main/java/org/hibernate/NonUniqueResultException.java +++ b/hibernate-core/src/main/java/org/hibernate/NonUniqueResultException.java @@ -7,7 +7,7 @@ package org.hibernate; /** - * Thrown when the application calls Query.uniqueResult() and + * Thrown when the application calls {@code Query.uniqueResult()} and * the query returned more than one result. Unlike all other Hibernate * exceptions, this one is recoverable! * diff --git a/hibernate-core/src/main/java/org/hibernate/ObjectNotFoundException.java b/hibernate-core/src/main/java/org/hibernate/ObjectNotFoundException.java index 3911ddc0c6..22f2aa9501 100644 --- a/hibernate-core/src/main/java/org/hibernate/ObjectNotFoundException.java +++ b/hibernate-core/src/main/java/org/hibernate/ObjectNotFoundException.java @@ -7,11 +7,11 @@ package org.hibernate; /** - * Thrown when Session.load() fails to select a row with + * Thrown when {@code Session.load()} fails to select a row with * the given primary key (identifier value). This exception might not - * be thrown when load() is called, even if there was no - * row on the database, because load() returns a proxy if - * possible. Applications should use Session.get() to test if + * be thrown when {@code load()} is called, even if there was no + * row on the database, because {@code load()} returns a proxy if + * possible. Applications should use {@code Session.get()} to test if * a row exists in the database. ** Like all Hibernate exceptions, this exception is considered diff --git a/hibernate-core/src/main/java/org/hibernate/PersistentObjectException.java b/hibernate-core/src/main/java/org/hibernate/PersistentObjectException.java index 0e390bf85f..1d9a0640cc 100644 --- a/hibernate-core/src/main/java/org/hibernate/PersistentObjectException.java +++ b/hibernate-core/src/main/java/org/hibernate/PersistentObjectException.java @@ -7,7 +7,7 @@ package org.hibernate; /** - * Thrown when the user passes a persistent instance to a Session + * Thrown when the user passes a persistent instance to a {@code Session} * method that expects a transient instance. * * @author Gavin King diff --git a/hibernate-core/src/main/java/org/hibernate/PropertyValueException.java b/hibernate-core/src/main/java/org/hibernate/PropertyValueException.java index c96bf09e68..7cab7a91ed 100644 --- a/hibernate-core/src/main/java/org/hibernate/PropertyValueException.java +++ b/hibernate-core/src/main/java/org/hibernate/PropertyValueException.java @@ -12,7 +12,7 @@ import org.hibernate.internal.util.StringHelper; * Thrown when the (illegal) value of a property can not be persisted. * There are two main causes: *
* Contrary to JDBC, columns of results are numbered from zero. * diff --git a/hibernate-core/src/main/java/org/hibernate/Session.java b/hibernate-core/src/main/java/org/hibernate/Session.java index 143199b38e..2d95106766 100644 --- a/hibernate-core/src/main/java/org/hibernate/Session.java +++ b/hibernate-core/src/main/java/org/hibernate/Session.java @@ -17,34 +17,34 @@ import org.hibernate.stat.SessionStatistics; * The main runtime interface between a Java application and Hibernate. This is the * central API class abstracting the notion of a persistence service. *
- * The lifecycle of a Session is bounded by the beginning and end of a logical + * The lifecycle of a {@code Session} is bounded by the beginning and end of a logical * transaction. (Long transactions might span several database transactions.) *
- * The main function of the Session is to offer create, read and delete operations + * The main function of the {@code Session} is to offer create, read and delete operations * for instances of mapped entity classes. Instances may exist in one of three states: *
- * save() and persist() result in an SQL INSERT, delete() - * in an SQL DELETE and update() or merge() in an SQL UPDATE. + * {@code save()} and {@code persist()} result in an SQL {@code INSERT}, {@code delete()} + * in an SQL {@code DELETE} and {@code update()} or {@code merge()} in an SQL {@code UPDATE}. * Changes to persistent instances are detected at flush time and also result in an SQL - * UPDATE. saveOrUpdate() and replicate() result in either an - * INSERT or an UPDATE. + * {@code UPDATE}. {@code saveOrUpdate()} and {@code replicate()} result in either an + * {@code INSERT} or an {@code UPDATE}. *
* It is not intended that implementors be threadsafe. Instead each thread/transaction - * should obtain its own instance from a SessionFactory. + * should obtain its own instance from a {@code SessionFactory}. *
- * A Session instance is serializable if its persistent classes are serializable. + * A {@code Session} instance is serializable if its persistent classes are serializable. *
* A typical transaction should use the following idiom: *
@@ -65,8 +65,8 @@ import org.hibernate.stat.SessionStatistics; * } **
- * If the Session throws an exception, the transaction must be rolled back - * and the session discarded. The internal state of the Session might not + * If the {@code Session} throws an exception, the transaction must be rolled back + * and the session discarded. The internal state of the {@code Session} might not * be consistent with the database after the exception occurs. * * @see SessionFactory @@ -251,14 +251,14 @@ public interface Session extends SharedSessionContract, EntityManager { * @param entityName The entity name * @param object an instance of a persistent class * - * @return true if the given instance is associated with this Session + * @return true if the given instance is associated with this {@code Session} */ boolean contains(String entityName, Object object); /** * Remove this instance from the session cache. Changes to the instance will * not be synchronized with the database. This operation cascades to associated - * instances if the association is mapped with cascade="evict". + * instances if the association is mapped with {@code cascade="evict"}. * * @param object The entity to evict * @@ -327,7 +327,7 @@ public interface Session extends SharedSessionContract, EntityManager { * assuming that the instance exists. This method might return a proxied instance that * is initialized on-demand, when a non-identifier method is accessed. *
- * You should not use this method to determine if an instance exists (use get() + * You should not use this method to determine if an instance exists (use {@code get()} * instead). Use this only to retrieve an instance that you assume exists, where non-existence * would be an actual error. * @@ -343,7 +343,7 @@ public interface Session extends SharedSessionContract, EntityManager { * assuming that the instance exists. This method might return a proxied instance that * is initialized on-demand, when a non-identifier method is accessed. *
- * You should not use this method to determine if an instance exists (use get() + * You should not use this method to determine if an instance exists (use {@code get()} * instead). Use this only to retrieve an instance that you assume exists, where non-existence * would be an actual error. * @@ -383,7 +383,7 @@ public interface Session extends SharedSessionContract, EntityManager { /** * Persist the given transient instance, first assigning a generated identifier. (Or - * using the current value of the identifier property if the assigned + * using the current value of the identifier property if the {@code assigned} * generator is used.) This operation cascades to associated instances if the * association is mapped with {@code cascade="save-update"} * @@ -395,7 +395,7 @@ public interface Session extends SharedSessionContract, EntityManager { /** * Persist the given transient instance, first assigning a generated identifier. (Or - * using the current value of the identifier property if the assigned + * using the current value of the identifier property if the {@code assigned} * generator is used.) This operation cascades to associated instances if the * association is mapped with {@code cascade="save-update"} * @@ -515,7 +515,7 @@ public interface Session extends SharedSessionContract, EntityManager { /** * Remove a persistent instance from the datastore. The argument may be - * an instance associated with the receiving Session or a transient + * an instance associated with the receiving {@code Session} or a transient * instance with an identifier associated with existing persistent state. * This operation cascades to associated instances if the association is mapped * with {@code cascade="delete"} @@ -526,7 +526,7 @@ public interface Session extends SharedSessionContract, EntityManager { /** * Remove a persistent instance from the datastore. The object argument may be - * an instance associated with the receiving Session or a transient + * an instance associated with the receiving {@code Session} or a transient * instance with an identifier associated with existing persistent state. * This operation cascades to associated instances if the association is mapped * with {@code cascade="delete"} @@ -538,10 +538,10 @@ public interface Session extends SharedSessionContract, EntityManager { /** * Obtain the specified lock level upon the given object. This may be used to - * perform a version check (LockMode.READ), to upgrade to a pessimistic - * lock (LockMode.PESSIMISTIC_WRITE), or to simply reassociate a transient instance - * with a session (LockMode.NONE). This operation cascades to associated - * instances if the association is mapped with cascade="lock". + * perform a version check ({@code LockMode.READ}), to upgrade to a pessimistic + * lock ({@code LockMode.PESSIMISTIC_WRITE}), or to simply reassociate a transient instance + * with a session ({@code LockMode.NONE}). This operation cascades to associated + * instances if the association is mapped with {@code cascade="lock"}. *
* Convenient form of {@link LockRequest#lock(Object)} via {@link #buildLockRequest(LockOptions)} * @@ -555,10 +555,10 @@ public interface Session extends SharedSessionContract, EntityManager { /** * Obtain the specified lock level upon the given object. This may be used to - * perform a version check (LockMode.OPTIMISTIC), to upgrade to a pessimistic - * lock (LockMode.PESSIMISTIC_WRITE), or to simply reassociate a transient instance - * with a session (LockMode.NONE). This operation cascades to associated - * instances if the association is mapped with cascade="lock". + * perform a version check ({@code LockMode.OPTIMISTIC}), to upgrade to a pessimistic + * lock ({@code LockMode.PESSIMISTIC_WRITE}), or to simply reassociate a transient instance + * with a session ({@code LockMode.NONE}). This operation cascades to associated + * instances if the association is mapped with {@code cascade="lock"}. * * Convenient form of {@link LockRequest#lock(String, Object)} via {@link #buildLockRequest(LockOptions)} * @@ -593,7 +593,7 @@ public interface Session extends SharedSessionContract, EntityManager { *FkSecondPass
instances ready
* for processing.
diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/naming/ObjectNameNormalizer.java b/hibernate-core/src/main/java/org/hibernate/boot/model/naming/ObjectNameNormalizer.java
index cfb17768aa..90bd1fcf73 100644
--- a/hibernate-core/src/main/java/org/hibernate/boot/model/naming/ObjectNameNormalizer.java
+++ b/hibernate-core/src/main/java/org/hibernate/boot/model/naming/ObjectNameNormalizer.java
@@ -22,8 +22,8 @@ public abstract class ObjectNameNormalizer {
* Normalizes the quoting of identifiers.
*
* This implements the rules set forth in JPA 2 (section "2.13 Naming of Database Objects") which
- * states that the double-quote (") is the character which should be used to denote a quoted
- * identifier. Here, we handle recognizing that and converting it to the more elegant
+ * states that the double-quote (") is the character which should be used to denote a {@code quoted
+ * identifier}. Here, we handle recognizing that and converting it to the more elegant
* backtick (`) approach used in Hibernate.. Additionally we account for applying what JPA2 terms
* "globally quoted identifiers".
*
diff --git a/hibernate-core/src/main/java/org/hibernate/cache/spi/CacheImplementor.java b/hibernate-core/src/main/java/org/hibernate/cache/spi/CacheImplementor.java
index 18304d1e94..c60d3d0f4d 100644
--- a/hibernate-core/src/main/java/org/hibernate/cache/spi/CacheImplementor.java
+++ b/hibernate-core/src/main/java/org/hibernate/cache/spi/CacheImplementor.java
@@ -86,7 +86,7 @@ public interface CacheImplementor extends Service, Cache, Serializable {
QueryResultsCache getDefaultQueryResultsCache();
/**
- * Get query cache by region name or create a new one if none exist.
+ * Get query cache by {@code region name} or create a new one if none exist.
*
* If the region name is null, then default query cache region will be returned.
*
diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java b/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
index bf40ba2fb9..89d6e50ee2 100644
--- a/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
+++ b/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
@@ -771,13 +771,13 @@ public interface AvailableSettings {
String DEFAULT_BATCH_FETCH_SIZE = "hibernate.default_batch_fetch_size";
/**
- * Use java.io streams to read / write binary data from / to JDBC
+ * Use {@code java.io} streams to read / write binary data from / to JDBC
*/
String USE_STREAMS_FOR_BINARY = "hibernate.jdbc.use_streams_for_binary";
/**
- * Use JDBC scrollable ResultSets. This property is only necessary when there is
- * no ConnectionProvider, ie. the user is supplying JDBC connections.
+ * Use JDBC scrollable {@code ResultSet}s. This property is only necessary when there is
+ * no {@code ConnectionProvider}, ie. the user is supplying JDBC connections.
*/
String USE_SCROLLABLE_RESULTSET = "hibernate.jdbc.use_scrollable_resultset";
@@ -790,7 +790,7 @@ public interface AvailableSettings {
/**
* Gives the JDBC driver a hint as to the number of rows that should be fetched from the database
- * when more rows are needed. If 0, JDBC driver default settings will be used.
+ * when more rows are needed. If {@code 0}, JDBC driver default settings will be used.
*/
String STATEMENT_FETCH_SIZE = "hibernate.jdbc.fetch_size";
@@ -821,7 +821,7 @@ public interface AvailableSettings {
String AUTO_CLOSE_SESSION = "hibernate.transaction.auto_close_session";
/**
- * Enable automatic flush during the JTA beforeCompletion() callback
+ * Enable automatic flush during the JTA {@code beforeCompletion()} callback
*/
String FLUSH_BEFORE_COMPLETION = "hibernate.transaction.flush_before_completion";
@@ -1137,24 +1137,24 @@ public interface AvailableSettings {
String PROXOOL_CONFIG_PREFIX = "hibernate.proxool";
/**
- * Proxool property to configure the Proxool Provider using an XML (/path/to/file.xml)
+ * Proxool property to configure the Proxool Provider using an XML ({@code /path/to/file.xml})
*/
String PROXOOL_XML = "hibernate.proxool.xml";
/**
- * Proxool property to configure the Proxool Provider using a properties file (/path/to/proxool.properties)
+ * Proxool property to configure the Proxool Provider using a properties file ({@code /path/to/proxool.properties})
*/
String PROXOOL_PROPERTIES = "hibernate.proxool.properties";
/**
- * Proxool property to configure the Proxool Provider from an already existing pool (true / false)
+ * Proxool property to configure the Proxool Provider from an already existing pool ({@code true} / {@code false})
*/
String PROXOOL_EXISTING_POOL = "hibernate.proxool.existing_pool";
/**
* Proxool property with the Proxool pool alias to use
- * (Required for PROXOOL_EXISTING_POOL, PROXOOL_PROPERTIES, or
- * PROXOOL_XML)
+ * (Required for {@code PROXOOL_EXISTING_POOL}, {@code PROXOOL_PROPERTIES}, or
+ * {@code PROXOOL_XML})
*/
String PROXOOL_POOL_ALIAS = "hibernate.proxool.pool_alias";
@@ -1187,7 +1187,7 @@ public interface AvailableSettings {
String CACHE_KEYS_FACTORY = "hibernate.cache.keys_factory";
/**
- * The CacheProvider implementation class
+ * The {@code CacheProvider} implementation class
*/
String CACHE_PROVIDER_CONFIG = "hibernate.cache.provider_configuration_file_resource_path";
@@ -1210,7 +1210,7 @@ public interface AvailableSettings {
String QUERY_CACHE_FACTORY = "hibernate.cache.query_cache_factory";
/**
- * The CacheProvider region name prefix
+ * The {@code CacheProvider} region name prefix
*/
String CACHE_REGION_PREFIX = "hibernate.cache.region_prefix";
@@ -1434,10 +1434,10 @@ public interface AvailableSettings {
* File order matters, the statements of a give file are executed before the statements of the
* following files.
*
- * These statements are only executed if the schema is created ie if hibernate.hbm2ddl.auto
- * is set to create or create-drop.
+ * These statements are only executed if the schema is created ie if {@code hibernate.hbm2ddl.auto}
+ * is set to {@code create} or {@code create-drop}.
*
- * The default value is /import.sql
+ * The default value is {@code /import.sql}
*
* {@link #HBM2DDL_CREATE_SCRIPT_SOURCE} / {@link #HBM2DDL_DROP_SCRIPT_SOURCE} should be preferred
* moving forward
diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java b/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java
index ba6adbb4d8..f8ac46ae5a 100644
--- a/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java
+++ b/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java
@@ -239,11 +239,11 @@ public class Configuration {
}
/**
- * Use the mappings and properties specified in an application resource named hibernate.cfg.xml.
+ * Use the mappings and properties specified in an application resource named {@code hibernate.cfg.xml}.
*
* @return this for method chaining
*
- * @throws HibernateException Generally indicates we cannot find hibernate.cfg.xml
+ * @throws HibernateException Generally indicates we cannot find {@code hibernate.cfg.xml}
*
* @see #configure(String)
*/
@@ -253,7 +253,7 @@ public class Configuration {
/**
* Use the mappings and properties specified in the given application resource. The format of the resource is
- * defined in hibernate-configuration-3.0.dtd.
+ * defined in {@code hibernate-configuration-3.0.dtd}.
*
* @param resource The resource to use
*
@@ -278,7 +278,7 @@ public class Configuration {
/**
* Use the mappings and properties specified in the given document. The format of the document is defined in
- * hibernate-configuration-3.0.dtd.
+ * {@code hibernate-configuration-3.0.dtd}.
*
* @param url URL from which you wish to load the configuration
*
@@ -294,7 +294,7 @@ public class Configuration {
/**
* Use the mappings and properties specified in the given application file. The format of the file is defined in
- * hibernate-configuration-3.0.dtd.
+ * {@code hibernate-configuration-3.0.dtd}.
*
* @param configFile File from which you wish to load the configuration
*
@@ -402,12 +402,12 @@ public class Configuration {
/**
* Add a cached mapping file. A cached file is a serialized representation
* of the DOM structure of a particular mapping. It is saved from a previous
- * call as a file with the name xmlFile + ".bin" where xmlFile is
+ * call as a file with the name {@code xmlFile + ".bin"} where xmlFile is
* the name of the original mapping file.
*
- * If a cached xmlFile + ".bin" exists and is newer than
- * xmlFile the ".bin" file will be read directly. Otherwise
- * xmlFile is read and then serialized to xmlFile + ".bin" for use
+ * If a cached {@code xmlFile + ".bin"} exists and is newer than
+ * {@code xmlFile} the {@code ".bin"} file will be read directly. Otherwise
+ * xmlFile is read and then serialized to {@code xmlFile + ".bin"} for use
* the next time.
*
* @param xmlFile The cacheable mapping file to be added.
@@ -463,7 +463,7 @@ public class Configuration {
}
/**
- * Read mappings from a URL
+ * Read mappings from a {@code URL}
*
* @param url The url for the mapping document to be read.
* @return this (for method chaining purposes)
@@ -476,7 +476,7 @@ public class Configuration {
}
/**
- * Read mappings from a DOM Document
+ * Read mappings from a DOM {@code Document}
*
* @param doc The DOM document
* @return this (for method chaining purposes)
@@ -529,7 +529,7 @@ public class Configuration {
/**
* Read a mapping as an application resource using the convention that a class
- * named foo.bar.Foo is mapped by a file foo/bar/Foo.hbm.xml
+ * named {@code foo.bar.Foo} is mapped by a file {@code foo/bar/Foo.hbm.xml}
* which can be resolved as a classpath resource.
*
* @param persistentClass The mapped class
@@ -572,7 +572,7 @@ public class Configuration {
/**
* Read all mappings from a jar file
*
- * Assumes that any file named *.hbm.xml is a mapping document.
+ * Assumes that any file named {@code *.hbm.xml} is a mapping document.
*
* @param jar a jar file
* @return this (for method chaining purposes)
@@ -587,7 +587,7 @@ public class Configuration {
/**
* Read all mapping documents from a directory tree.
*
- * Assumes that any file named *.hbm.xml is a mapping document.
+ * Assumes that any file named {@code *.hbm.xml} is a mapping document.
*
* @param dir The directory
* @return this (for method chaining purposes)
diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/DefaultNamingStrategy.java b/hibernate-core/src/main/java/org/hibernate/cfg/DefaultNamingStrategy.java
index c184a279b3..f58d7432d7 100644
--- a/hibernate-core/src/main/java/org/hibernate/cfg/DefaultNamingStrategy.java
+++ b/hibernate-core/src/main/java/org/hibernate/cfg/DefaultNamingStrategy.java
@@ -12,7 +12,7 @@ import org.hibernate.AssertionFailure;
import org.hibernate.internal.util.StringHelper;
/**
- * The default NamingStrategy
+ * The default {@code NamingStrategy}
* @see ImprovedNamingStrategy a better alternative
* @author Gavin King
*/
diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java b/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java
index 7cb206d0f5..5ef26cab89 100644
--- a/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java
+++ b/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java
@@ -24,125 +24,125 @@ import org.jboss.logging.Logger;
/**
- * Provides access to configuration info passed in Properties objects.
+ * Provides access to configuration info passed in {@code Properties} objects.
* * Hibernate has two property scopes: *
- * The SessionFactory is controlled by the following properties. - * Properties may be either be System properties, properties - * defined in a resource named /hibernate.properties or an instance of - * java.util.Properties passed to - * Configuration.build() + * The {@code SessionFactory} is controlled by the following properties. + * Properties may be either be {@code System} properties, properties + * defined in a resource named {@code /hibernate.properties} or an instance of + * {@code java.util.Properties} passed to + * {@code Configuration.build()} *
*
property | meaning | ||
hibernate.dialect | - *classname of org.hibernate.dialect.Dialect subclass | + *{@code hibernate.dialect} | + *classname of {@code org.hibernate.dialect.Dialect} subclass | *
hibernate.connection.provider_class | - *classname of ConnectionProvider + * | {@code hibernate.connection.provider_class} | + *classname of {@code ConnectionProvider} * subclass (if not specified heuristics are used) | *
hibernate.connection.username | database username | ||
hibernate.connection.password | database password | ||
{@code hibernate.connection.username} | database username | ||
{@code hibernate.connection.password} | database password | ||
hibernate.connection.url | - *JDBC URL (when using java.sql.DriverManager) | + *{@code hibernate.connection.url} | + *JDBC URL (when using {@code java.sql.DriverManager}) | *
hibernate.connection.driver_class | + *{@code hibernate.connection.driver_class} | *classname of JDBC driver | *|
hibernate.connection.isolation | + *{@code hibernate.connection.isolation} | *JDBC transaction isolation level (only when using - * java.sql.DriverManager) + * {@code java.sql.DriverManager}) * | *hibernate.connection.pool_size | + *{@code hibernate.connection.pool_size} | *the maximum size of the connection pool (only when using - * java.sql.DriverManager) + * {@code java.sql.DriverManager}) * | * *
hibernate.connection.datasource | - *datasource JNDI name (when using javax.sql.Datasource) | + *{@code hibernate.connection.datasource} | + *datasource JNDI name (when using {@code javax.sql.Datasource}) | *
hibernate.jndi.url | JNDI InitialContext URL | + *{@code hibernate.jndi.url} | JNDI {@code InitialContext} URL | *
hibernate.jndi.class | JNDI InitialContext classname | + *{@code hibernate.jndi.class} | JNDI {@code InitialContext} classname | *
hibernate.max_fetch_depth | + *{@code hibernate.max_fetch_depth} | *maximum depth of outer join fetching | *|
hibernate.jdbc.batch_size | + *{@code hibernate.jdbc.batch_size} | *enable use of JDBC2 batch API for drivers which support it | *|
hibernate.jdbc.fetch_size | + *{@code hibernate.jdbc.fetch_size} | *set the JDBC fetch size | *|
hibernate.jdbc.use_scrollable_resultset | + *{@code hibernate.jdbc.use_scrollable_resultset} | *enable use of JDBC2 scrollable resultsets (you only need to specify * this property when using user supplied connections) | *|
hibernate.jdbc.use_getGeneratedKeys | + *{@code hibernate.jdbc.use_getGeneratedKeys} | *enable use of JDBC3 PreparedStatement.getGeneratedKeys() to retrieve * natively generated keys after insert. Requires JDBC3+ driver and JRE1.4+ | *|
hibernate.hbm2ddl.auto | + *{@code hibernate.hbm2ddl.auto} | *enable auto DDL export | *|
hibernate.default_schema | + *{@code hibernate.default_schema} | *use given schema name for unqualified tables (always optional) | *|
hibernate.default_catalog | + *{@code hibernate.default_catalog} | *use given catalog name for unqualified tables (always optional) | *|
hibernate.session_factory_name | + *{@code hibernate.session_factory_name} | *If set, the factory attempts to bind this name to itself in the - * JNDI context. This name is also used to support cross JVM - * Session (de)serialization. | + * JNDI context. This name is also used to support cross JVM {@code + * Session} (de)serialization. *|
hibernate.transaction.jta.platform | - *classname of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform + * | {@code hibernate.transaction.jta.platform} | + *classname of {@code org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform} * implementor | *
hibernate.transaction.factory_class | - *the factory to use for instantiating Transactions. - * (Defaults to JdbcTransactionFactory.) | + *{@code hibernate.transaction.factory_class} | + *the factory to use for instantiating {@code Transaction}s. + * (Defaults to {@code JdbcTransactionFactory}.) | *
hibernate.query.substitutions | query language token substitutions | + *{@code hibernate.query.substitutions} | query language token substitutions | *
- * onLoad() may be used to initialize transient properties of the + * {@code onLoad()} may be used to initialize transient properties of the * object from its persistent state. It may not be used to load - * dependent objects since the Session interface may not be + * dependent objects since the {@code Session} interface may not be * invoked from inside this method. *
- * A further intended usage of onLoad(), onSave() and - * onUpdate() is to store a reference to the Session + * A further intended usage of {@code onLoad()}, {@code onSave()} and + * {@code onUpdate()} is to store a reference to the {@code Session} * for later use. *
- * If onSave(), onUpdate() or onDelete() return - * VETO, the operation is silently vetoed. If a - * CallbackException is thrown, the operation is vetoed and the + * If {@code onSave()}, {@code onUpdate()} or {@code onDelete()} return + * {@code VETO}, the operation is silently vetoed. If a + * {@code CallbackException} is thrown, the operation is vetoed and the * exception is passed back to the application. *
- * Note that onSave() is called after an identifier is assigned + * Note that {@code onSave()} is called after an identifier is assigned * to the object, except when identity column key generation is used. * * @see CallbackException @@ -66,7 +66,7 @@ public interface Lifecycle { } /** - * Called when an entity is passed to Session.update(). + * Called when an entity is passed to {@code Session.update()}. * This method is not called every time the object's * state is persisted during a flush. * @param s the session @@ -89,7 +89,7 @@ public interface Lifecycle { /** * Called after an entity is loaded. It is illegal to - * access the Session from inside this method. + * access the {@code Session} from inside this method. * However, the object may keep a reference to the session * for later use. * @@ -104,7 +104,7 @@ public interface Lifecycle { /** * Called after an entity is loaded. It is illegal to - * access the Session from inside this method. + * access the {@code Session} from inside this method. * However, the object may keep a reference to the session * for later use. * diff --git a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentBag.java b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentBag.java index d9b4c511ed..08bea12d4f 100644 --- a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentBag.java +++ b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentBag.java @@ -26,8 +26,8 @@ import org.hibernate.type.Type; /** * An unordered, unkeyed collection that can contain the same element - * multiple times. The Java collections API, curiously, has no Bag. - * Most developers seem to use Lists to represent bag semantics, + * multiple times. The Java collections API, curiously, has no {@code Bag}. + * Most developers seem to use {@code List}s to represent bag semantics, * so Hibernate follows this practice. * * @author Gavin King diff --git a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentIdentifierBag.java b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentIdentifierBag.java index 898c526204..6d13c6e5db 100644 --- a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentIdentifierBag.java +++ b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentIdentifierBag.java @@ -24,14 +24,14 @@ import org.hibernate.persister.collection.CollectionPersister; import org.hibernate.type.Type; /** - * An IdentifierBag implements "bag" semantics more efficiently than - * a regular Bag by adding a synthetic identifier column to the + * An {@code IdentifierBag} implements "bag" semantics more efficiently than + * a regular {@code Bag} by adding a synthetic identifier column to the * table. This identifier is unique for all rows in the table, allowing very * efficient updates and deletes. The value of the identifier is never exposed * to the application. *
- * IdentifierBags may not be used for a many-to-one association. - * Furthermore, there is no reason to use inverse="true". + * {@code IdentifierBag}s may not be used for a many-to-one association. + * Furthermore, there is no reason to use {@code inverse="true"}. * * @author Gavin King */ diff --git a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentList.java b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentList.java index dc2e586517..466faf23ad 100644 --- a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentList.java +++ b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentList.java @@ -21,8 +21,8 @@ import org.hibernate.persister.collection.CollectionPersister; import org.hibernate.type.Type; /** - * A persistent wrapper for a java.util.List. Underlying - * collection is an ArrayList. + * A persistent wrapper for a {@code java.util.List}. Underlying + * collection is an {@code ArrayList}. * * @see ArrayList * @author Gavin King diff --git a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentMap.java b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentMap.java index 21137b137d..fa9b626225 100644 --- a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentMap.java +++ b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentMap.java @@ -25,8 +25,8 @@ import org.hibernate.type.Type; /** - * A persistent wrapper for a java.util.Map. Underlying collection - * is a HashMap. + * A persistent wrapper for a {@code java.util.Map}. Underlying collection + * is a {@code HashMap}. * * @see HashMap * @author Gavin King diff --git a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSet.java b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSet.java index 9d57cc5085..41ca982750 100644 --- a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSet.java +++ b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSet.java @@ -24,8 +24,8 @@ import org.hibernate.type.Type; /** - * A persistent wrapper for a java.util.Set. The underlying - * collection is a HashSet. + * A persistent wrapper for a {@code java.util.Set}. The underlying + * collection is a {@code HashSet}. * * @see java.util.HashSet * @author Gavin King diff --git a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSortedMap.java b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSortedMap.java index 0e88b425b6..8697475aa2 100644 --- a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSortedMap.java +++ b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSortedMap.java @@ -20,8 +20,8 @@ import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.persister.collection.BasicCollectionPersister; /** - * A persistent wrapper for a java.util.SortedMap. Underlying - * collection is a TreeMap. + * A persistent wrapper for a {@code java.util.SortedMap}. Underlying + * collection is a {@code TreeMap}. * * @see TreeMap * @author e diff --git a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSortedSet.java b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSortedSet.java index aa9ccb8968..d193e612fe 100644 --- a/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSortedSet.java +++ b/hibernate-core/src/main/java/org/hibernate/collection/internal/PersistentSortedSet.java @@ -17,8 +17,8 @@ import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.persister.collection.BasicCollectionPersister; /** - * A persistent wrapper for a java.util.SortedSet. Underlying - * collection is a TreeSet. + * A persistent wrapper for a {@code java.util.SortedSet}. Underlying + * collection is a {@code TreeSet}. * * @see java.util.TreeSet * @author e diff --git a/hibernate-core/src/main/java/org/hibernate/context/internal/ThreadLocalSessionContext.java b/hibernate-core/src/main/java/org/hibernate/context/internal/ThreadLocalSessionContext.java index 4feebd4a94..05e181266a 100644 --- a/hibernate-core/src/main/java/org/hibernate/context/internal/ThreadLocalSessionContext.java +++ b/hibernate-core/src/main/java/org/hibernate/context/internal/ThreadLocalSessionContext.java @@ -42,7 +42,7 @@ import org.jboss.logging.Logger; * a session upon first request and then clean it up after the {@link Transaction} * associated with that session is committed/rolled-back. In order for ensuring that happens, the * sessions generated here are unusable until after {@link Session#beginTransaction()} has been - * called. If close() is called on a session managed by this class, it will be automatically + * called. If {@code close()} is called on a session managed by this class, it will be automatically * unbound. * * Additionally, the static {@link #bind} and {@link #unbind} methods are provided to allow application diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java index 522f549233..25992b8cb3 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java @@ -1439,9 +1439,9 @@ public abstract class Dialect implements ConversionContext { /** * Get the name of the database type associated with the given - * java.sql.Types typecode. + * {@code java.sql.Types} typecode. * - * @param code java.sql.Types typecode + * @param code {@code java.sql.Types} typecode * @param size the length, precision, scale of the column * * @return the database type name @@ -1475,7 +1475,7 @@ public abstract class Dialect implements ConversionContext { /** * Get the name of the database type associated with the given - * SqlTypeDescriptor. + * {@code SqlTypeDescriptor}. * * @param jdbcType the SQL type * @param size the length, precision, scale of the column @@ -1526,7 +1526,7 @@ public abstract class Dialect implements ConversionContext { /** * Subclasses register a type name for the given type code and maximum - * column length. $l in the type name with be replaced by the + * column length. {@code $l} in the type name with be replaced by the * column length (if appropriate). * * @param code The {@link Types} typecode @@ -1538,7 +1538,7 @@ public abstract class Dialect implements ConversionContext { } /** - * Subclasses register a type name for the given type code. $l in + * Subclasses register a type name for the given type code. {@code $l} in * the type name with be replaced by the column length (if appropriate). * * @param code The {@link Types} typecode @@ -1876,15 +1876,15 @@ public abstract class Dialect implements ConversionContext { /** * If this dialect supports specifying lock timeouts, are those timeouts - * rendered into the SQL string as parameters. The implication + * rendered into the {@code SQL} string as parameters. The implication * is that Hibernate will need to bind the timeout value as a parameter * in the {@link PreparedStatement}. If true, the param position * is always handled as the last parameter; if the dialect specifies the - * lock timeout elsewhere in the SQL statement then the timeout + * lock timeout elsewhere in the {@code SQL} statement then the timeout * value should be directly rendered into the statement and this method * should return false. * - * @return True if the lock timeout is rendered into the SQL + * @return True if the lock timeout is rendered into the {@code SQL} * string as a parameter; false otherwise. */ public boolean isLockTimeoutParameterized() { @@ -1961,7 +1961,7 @@ public abstract class Dialect implements ConversionContext { * Get the string to append to SELECT statements to acquire locks * for this dialect. * - * @return The appropriate FOR UPDATE clause string. + * @return The appropriate {@code FOR UPDATE} clause string. */ public String getForUpdateString() { return " for update"; @@ -1973,7 +1973,7 @@ public abstract class Dialect implements ConversionContext { * the same as getForUpdateString. * * @param timeout in milliseconds, -1 for indefinite wait and 0 for no wait. - * @return The appropriate LOCK clause string. + * @return The appropriate {@code LOCK} clause string. */ public String getWriteLockString(int timeout) { return getForUpdateString(); @@ -1987,7 +1987,7 @@ public abstract class Dialect implements ConversionContext { * * @param aliases The columns to be read locked. * @param timeout in milliseconds, -1 for indefinite wait and 0 for no wait. - * @return The appropriate LOCK clause string. + * @return The appropriate {@code LOCK} clause string. */ public String getWriteLockString(String aliases, int timeout) { // by default we simply return the getWriteLockString(timeout) result since @@ -2001,7 +2001,7 @@ public abstract class Dialect implements ConversionContext { * the same as getForUpdateString. * * @param timeout in milliseconds, -1 for indefinite wait and 0 for no wait. - * @return The appropriate LOCK clause string. + * @return The appropriate {@code LOCK} clause string. */ public String getReadLockString(int timeout) { return getForUpdateString(); @@ -2015,7 +2015,7 @@ public abstract class Dialect implements ConversionContext { * * @param aliases The columns to be read locked. * @param timeout in milliseconds, -1 for indefinite wait and 0 for no wait. - * @return The appropriate LOCK clause string. + * @return The appropriate {@code LOCK} clause string. */ public String getReadLockString(String aliases, int timeout) { // by default we simply return the getReadLockString(timeout) result since @@ -2039,21 +2039,21 @@ public abstract class Dialect implements ConversionContext { } /** - * Does this dialect support FOR UPDATE in conjunction with + * Does this dialect support {@code FOR UPDATE} in conjunction with * outer joined rows? * - * @return True if outer joined rows can be locked via FOR UPDATE. + * @return True if outer joined rows can be locked via {@code FOR UPDATE}. */ public boolean supportsOuterJoinForUpdate() { return true; } /** - * Get the FOR UPDATE OF column_list fragment appropriate for this + * Get the {@code FOR UPDATE OF column_list} fragment appropriate for this * dialect given the aliases of the columns to be write locked. * * @param aliases The columns to be write locked. - * @return The appropriate FOR UPDATE OF column_list clause string. + * @return The appropriate {@code FOR UPDATE OF column_list} clause string. */ public String getForUpdateString(String aliases) { // by default we simply return the getForUpdateString() result since @@ -2062,12 +2062,12 @@ public abstract class Dialect implements ConversionContext { } /** - * Get the FOR UPDATE OF column_list fragment appropriate for this + * Get the {@code FOR UPDATE OF column_list} fragment appropriate for this * dialect given the aliases of the columns to be write locked. * * @param aliases The columns to be write locked. * @param lockOptions the lock options to apply - * @return The appropriate FOR UPDATE OF column_list clause string. + * @return The appropriate {@code FOR UPDATE OF column_list} clause string. */ public String getForUpdateString(String aliases, LockOptions lockOptions) { LockMode lockMode = lockOptions.getLockMode(); @@ -2085,9 +2085,9 @@ public abstract class Dialect implements ConversionContext { } /** - * Retrieves the FOR UPDATE NOWAIT syntax specific to this dialect. + * Retrieves the {@code FOR UPDATE NOWAIT} syntax specific to this dialect. * - * @return The appropriate FOR UPDATE NOWAIT clause string. + * @return The appropriate {@code FOR UPDATE NOWAIT} clause string. */ public String getForUpdateNowaitString() { // by default we report no support for NOWAIT lock semantics @@ -2095,9 +2095,9 @@ public abstract class Dialect implements ConversionContext { } /** - * Retrieves the FOR UPDATE SKIP LOCKED syntax specific to this dialect. + * Retrieves the {@code FOR UPDATE SKIP LOCKED} syntax specific to this dialect. * - * @return The appropriate FOR UPDATE SKIP LOCKED clause string. + * @return The appropriate {@code FOR UPDATE SKIP LOCKED} clause string. */ public String getForUpdateSkipLockedString() { // by default we report no support for SKIP_LOCKED lock semantics @@ -2105,29 +2105,29 @@ public abstract class Dialect implements ConversionContext { } /** - * Get the FOR UPDATE OF column_list NOWAIT fragment appropriate + * Get the {@code FOR UPDATE OF column_list NOWAIT} fragment appropriate * for this dialect given the aliases of the columns to be write locked. * * @param aliases The columns to be write locked. - * @return The appropriate FOR UPDATE OF colunm_list NOWAIT clause string. + * @return The appropriate {@code FOR UPDATE OF colunm_list NOWAIT} clause string. */ public String getForUpdateNowaitString(String aliases) { return getForUpdateString( aliases ); } /** - * Get the FOR UPDATE OF column_list SKIP LOCKED fragment appropriate + * Get the {@code FOR UPDATE OF column_list SKIP LOCKED} fragment appropriate * for this dialect given the aliases of the columns to be write locked. * * @param aliases The columns to be write locked. - * @return The appropriate FOR UPDATE colunm_list SKIP LOCKED clause string. + * @return The appropriate {@code FOR UPDATE colunm_list SKIP LOCKED} clause string. */ public String getForUpdateSkipLockedString(String aliases) { return getForUpdateString( aliases ); } /** - * Some dialects support an alternative means to SELECT FOR UPDATE, + * Some dialects support an alternative means to {@code SELECT FOR UPDATE}, * whereby a "lock hint" is appended to the table name in the from clause. *
* contributed by Helge Schulz @@ -2144,9 +2144,9 @@ public abstract class Dialect implements ConversionContext { * Modifies the given SQL by applying the appropriate updates for the specified * lock modes and key columns. * - * The behavior here is that of an ANSI SQL SELECT FOR UPDATE. This + * The behavior here is that of an ANSI SQL {@code SELECT FOR UPDATE}. This * method is really intended to allow dialects which do not support - * SELECT FOR UPDATE to achieve this in their own fashion. + * {@code SELECT FOR UPDATE} to achieve this in their own fashion. * * @param sql the SQL string to modify * @param aliasedLockOptions lock options indexed by aliased table names. @@ -2809,7 +2809,7 @@ public abstract class Dialect implements ConversionContext { } /** - * Does this dialect support the ALTER TABLE syntax? + * Does this dialect support the {@code ALTER TABLE} syntax? * * @return True if we support altering of tables; false otherwise. */ @@ -3107,8 +3107,8 @@ public abstract class Dialect implements ConversionContext { } /** - * Does this dialect support parameters within the SELECT clause of - * INSERT ... SELECT ... statements? + * Does this dialect support parameters within the {@code SELECT} clause of + * {@code INSERT ... SELECT ...} statements? * * @return True if this is supported; false otherwise. * @since 3.2 @@ -3148,7 +3148,7 @@ public abstract class Dialect implements ConversionContext { } /** - * Does this dialect require that integer divisions be wrapped in cast() + * Does this dialect require that integer divisions be wrapped in {@code cast()} * calls to tell the db parser the expected type. * * @return True if integer divisions must be cast()ed to float diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/identity/SQLServerIdentityColumnSupport.java b/hibernate-core/src/main/java/org/hibernate/dialect/identity/SQLServerIdentityColumnSupport.java index dfaa0dddfa..89515ec2ac 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/identity/SQLServerIdentityColumnSupport.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/identity/SQLServerIdentityColumnSupport.java @@ -11,7 +11,7 @@ package org.hibernate.dialect.identity; */ public class SQLServerIdentityColumnSupport extends AbstractTransactSQLIdentityColumnSupport { /** - * Use insert table(...) values(...) select SCOPE_IDENTITY() + * Use {@code insert table(...) values(...) select SCOPE_IDENTITY()} * * {@inheritDoc} */ diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/lock/AbstractSelectLockingStrategy.java b/hibernate-core/src/main/java/org/hibernate/dialect/lock/AbstractSelectLockingStrategy.java index c8115590d3..aae2f03bf3 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/lock/AbstractSelectLockingStrategy.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/lock/AbstractSelectLockingStrategy.java @@ -12,7 +12,7 @@ import org.hibernate.persister.entity.Lockable; /** * Base {@link LockingStrategy} implementation to support implementations - * based on issuing SQL SELECT statements + * based on issuing {@code SQL} {@code SELECT} statements * * @author Steve Ebersole */ diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/pagination/AbstractLimitHandler.java b/hibernate-core/src/main/java/org/hibernate/dialect/pagination/AbstractLimitHandler.java index 15c4cba05b..9131766c39 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/pagination/AbstractLimitHandler.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/pagination/AbstractLimitHandler.java @@ -76,7 +76,7 @@ public abstract class AbstractLimitHandler implements LimitHandler { /** * Does the offset/limit clause come at the start of the - * SELECT statement, or at the end of the query? + * {@code SELECT} statement, or at the end of the query? * * @return true if limit parameters come before other parameters */ diff --git a/hibernate-core/src/main/java/org/hibernate/engine/config/spi/ConfigurationService.java b/hibernate-core/src/main/java/org/hibernate/engine/config/spi/ConfigurationService.java index 48b9569931..ebe6312c2f 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/config/spi/ConfigurationService.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/config/spi/ConfigurationService.java @@ -66,7 +66,7 @@ public interface ConfigurationService extends Service { public- * An IdentifierGenerator that returns the current identifier assigned + * An {@code IdentifierGenerator} that returns the current identifier assigned * to an instance. * * @author Gavin King diff --git a/hibernate-core/src/main/java/org/hibernate/id/Configurable.java b/hibernate-core/src/main/java/org/hibernate/id/Configurable.java index 87d53fba0d..225d1ea3f1 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/Configurable.java +++ b/hibernate-core/src/main/java/org/hibernate/id/Configurable.java @@ -26,7 +26,7 @@ import org.hibernate.type.Type; public interface Configurable { /** * Configure this instance, given the value of parameters - * specified by the user as <param> elements. + * specified by the user as {@code <param>} elements. * This method is called just once, following instantiation. * * @param type The id property type descriptor diff --git a/hibernate-core/src/main/java/org/hibernate/id/ForeignGenerator.java b/hibernate-core/src/main/java/org/hibernate/id/ForeignGenerator.java index 6d5c3fb496..4c91288de7 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/ForeignGenerator.java +++ b/hibernate-core/src/main/java/org/hibernate/id/ForeignGenerator.java @@ -27,7 +27,7 @@ import static org.hibernate.internal.CoreLogging.messageLogger; /** * foreign *
- * An Identifier generator that uses the value of the id property of an + * An {@code Identifier} generator that uses the value of the id property of an * associated object *
* One mapping parameter is required: property. diff --git a/hibernate-core/src/main/java/org/hibernate/id/GUIDGenerator.java b/hibernate-core/src/main/java/org/hibernate/id/GUIDGenerator.java index f18dfe7ac8..83361e5cae 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/GUIDGenerator.java +++ b/hibernate-core/src/main/java/org/hibernate/id/GUIDGenerator.java @@ -17,7 +17,7 @@ import org.hibernate.internal.CoreLogging; import org.hibernate.internal.CoreMessageLogger; /** - * Generates string values using the SQL Server NEWID() function. + * Generates {@code string} values using the SQL Server NEWID() function. * * @author Joseph Fifield * diff --git a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGenerationException.java b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGenerationException.java index 4fc603b02e..4cf973595c 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGenerationException.java +++ b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGenerationException.java @@ -8,7 +8,7 @@ package org.hibernate.id; import org.hibernate.HibernateException; /** - * Thrown by IdentifierGenerator implementation class when + * Thrown by {@code IdentifierGenerator} implementation class when * ID generation fails. * * @see IdentifierGenerator diff --git a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGenerator.java b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGenerator.java index 2c76967307..03198d6ffd 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGenerator.java +++ b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGenerator.java @@ -20,7 +20,7 @@ import org.hibernate.type.Type; /** * The general contract between a class that generates unique - * identifiers and the Session. It is not intended that + * identifiers and the {@code Session}. It is not intended that * this interface ever be exposed to the application. It is * intended that users implement this interface to provide * custom identifier generation strategies. @@ -28,7 +28,7 @@ import org.hibernate.type.Type; * Implementors should provide a public default constructor. *
* Implementations that accept configuration parameters should - * also implement Configurable. + * also implement {@code Configurable}. *
* Implementors must be thread-safe * @@ -60,7 +60,7 @@ public interface IdentifierGenerator extends Configurable, ExportableProducer { /** * Configure this instance, given the value of parameters - * specified by the user as <param> elements. + * specified by the user as {@code <param>} elements. *
* This method is called just once, following instantiation, and before {@link #registerExportables(Database)}. * diff --git a/hibernate-core/src/main/java/org/hibernate/id/IdentityGenerator.java b/hibernate-core/src/main/java/org/hibernate/id/IdentityGenerator.java index dd8a5551ad..e104d140a2 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/IdentityGenerator.java +++ b/hibernate-core/src/main/java/org/hibernate/id/IdentityGenerator.java @@ -25,7 +25,7 @@ import org.hibernate.id.insert.InsertSelectIdentityInsert; * A generator for use with ANSI-SQL IDENTITY columns used as the primary key. * The IdentityGenerator for autoincrement/identity key generation. *
- * Indicates to the Session that identity (ie. identity/autoincrement + * Indicates to the {@code Session} that identity (ie. identity/autoincrement * column) key generation should be used. * * @author Christoph Sturm diff --git a/hibernate-core/src/main/java/org/hibernate/id/IncrementGenerator.java b/hibernate-core/src/main/java/org/hibernate/id/IncrementGenerator.java index ed0ccfa96f..87aa5dfd36 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/IncrementGenerator.java +++ b/hibernate-core/src/main/java/org/hibernate/id/IncrementGenerator.java @@ -33,7 +33,7 @@ import org.hibernate.type.Type; /** * increment *
- * An IdentifierGenerator that returns a long, constructed by + * An {@code IdentifierGenerator} that returns a {@code long}, constructed by * counting from the maximum primary key value at startup. Not safe for use in a * cluster! *
diff --git a/hibernate-core/src/main/java/org/hibernate/id/IntegralDataTypeHolder.java b/hibernate-core/src/main/java/org/hibernate/id/IntegralDataTypeHolder.java index 71ac7ed127..1de2598371 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/IntegralDataTypeHolder.java +++ b/hibernate-core/src/main/java/org/hibernate/id/IntegralDataTypeHolder.java @@ -21,7 +21,7 @@ public interface IntegralDataTypeHolder extends Serializable { * * @param value The primitive integral value. * - * @return this, for method chaining + * @return {@code this}, for method chaining */ public IntegralDataTypeHolder initialize(long value); @@ -32,7 +32,7 @@ public interface IntegralDataTypeHolder extends Serializable { * @param resultSet The JDBC result set * @param defaultValue The default value to use if we did not get a result set value. * - * @return this, for method chaining + * @return {@code this}, for method chaining * * @throws SQLException Any exception from accessing the result set */ @@ -51,7 +51,7 @@ public interface IntegralDataTypeHolder extends Serializable { /** * Equivalent to a ++ operation * - * @return this, for method chaining + * @return {@code this}, for method chaining */ public IntegralDataTypeHolder increment(); @@ -60,14 +60,14 @@ public interface IntegralDataTypeHolder extends Serializable { * * @param addend The value to add to this integral. * - * @return this, for method chaining + * @return {@code this}, for method chaining */ public IntegralDataTypeHolder add(long addend); /** * Equivalent to a -- operation * - * @return this, for method chaining + * @return {@code this}, for method chaining */ public IntegralDataTypeHolder decrement(); @@ -76,7 +76,7 @@ public interface IntegralDataTypeHolder extends Serializable { * * @param subtrahend The value to subtract from this integral. * - * @return this, for method chaining + * @return {@code this}, for method chaining */ public IntegralDataTypeHolder subtract(long subtrahend); @@ -85,7 +85,7 @@ public interface IntegralDataTypeHolder extends Serializable { * * @param factor The factor by which to multiple this integral * - * @return this, for method chaining + * @return {@code this}, for method chaining */ public IntegralDataTypeHolder multiplyBy(IntegralDataTypeHolder factor); @@ -94,7 +94,7 @@ public interface IntegralDataTypeHolder extends Serializable { * * @param factor The factor by which to multiple this integral * - * @return this, for method chaining + * @return {@code this}, for method chaining */ public IntegralDataTypeHolder multiplyBy(long factor); diff --git a/hibernate-core/src/main/java/org/hibernate/id/PersistentIdentifierGenerator.java b/hibernate-core/src/main/java/org/hibernate/id/PersistentIdentifierGenerator.java index dd1a772b0a..442d9acd97 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/PersistentIdentifierGenerator.java +++ b/hibernate-core/src/main/java/org/hibernate/id/PersistentIdentifierGenerator.java @@ -14,9 +14,9 @@ import org.hibernate.service.ServiceRegistry; import org.hibernate.type.Type; /** - * An IdentifierGenerator that requires creation of database objects. + * An {@code IdentifierGenerator} that requires creation of database objects. *
- * All PersistentIdentifierGenerators have access to a special mapping parameter + * All {@code PersistentIdentifierGenerator}s have access to a special mapping parameter * in their {@link #configure(Type, Properties, ServiceRegistry)} method: schema * * @author Gavin King diff --git a/hibernate-core/src/main/java/org/hibernate/id/PostInsertIdentityPersister.java b/hibernate-core/src/main/java/org/hibernate/id/PostInsertIdentityPersister.java index da4daca7df..776bb0410b 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/PostInsertIdentityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/id/PostInsertIdentityPersister.java @@ -9,7 +9,7 @@ import org.hibernate.persister.entity.EntityPersister; /** * A persister that may have an identity assigned by execution of - * a SQL INSERT. + * a SQL {@code INSERT}. * * @author Gavin King */ diff --git a/hibernate-core/src/main/java/org/hibernate/id/UUIDHexGenerator.java b/hibernate-core/src/main/java/org/hibernate/id/UUIDHexGenerator.java index 6504d4964a..4cc2db3dde 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/UUIDHexGenerator.java +++ b/hibernate-core/src/main/java/org/hibernate/id/UUIDHexGenerator.java @@ -19,7 +19,7 @@ import org.hibernate.type.Type; /** * uuid *
- * A UUIDGenerator that returns a string of length 32, + * A {@code UUIDGenerator} that returns a string of length 32, * This string will consist of only hex digits. Optionally, * the string may be generated with separators between each * component of the UUID. diff --git a/hibernate-core/src/main/java/org/hibernate/id/enhanced/InitialValueAwareOptimizer.java b/hibernate-core/src/main/java/org/hibernate/id/enhanced/InitialValueAwareOptimizer.java index 079553288d..dc85fe9070 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/enhanced/InitialValueAwareOptimizer.java +++ b/hibernate-core/src/main/java/org/hibernate/id/enhanced/InitialValueAwareOptimizer.java @@ -18,9 +18,9 @@ public interface InitialValueAwareOptimizer { /** * Reports the user specified initial value to the optimizer. *
- * -1 is used to indicate that the user did not specify. + * {@code -1} is used to indicate that the user did not specify. * - * @param initialValue The initial value specified by the user, or -1 to indicate that the + * @param initialValue The initial value specified by the user, or {@code -1} to indicate that the * user did not specify. */ public void injectInitialValue(long initialValue); diff --git a/hibernate-core/src/main/java/org/hibernate/id/factory/IdentifierGeneratorFactory.java b/hibernate-core/src/main/java/org/hibernate/id/factory/IdentifierGeneratorFactory.java index 7c0679437b..4aa717e934 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/factory/IdentifierGeneratorFactory.java +++ b/hibernate-core/src/main/java/org/hibernate/id/factory/IdentifierGeneratorFactory.java @@ -17,7 +17,7 @@ import org.hibernate.type.descriptor.java.JavaType; import jakarta.persistence.GenerationType; /** - * Contract for a factory of {@link IdentifierGenerator} instances. + * Contract for a {@code factory} of {@link IdentifierGenerator} instances. * * @author Steve Ebersole */ diff --git a/hibernate-core/src/main/java/org/hibernate/id/factory/internal/StandardIdentifierGeneratorFactory.java b/hibernate-core/src/main/java/org/hibernate/id/factory/internal/StandardIdentifierGeneratorFactory.java index ee5ea0fbe6..f1344bc084 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/factory/internal/StandardIdentifierGeneratorFactory.java +++ b/hibernate-core/src/main/java/org/hibernate/id/factory/internal/StandardIdentifierGeneratorFactory.java @@ -55,7 +55,7 @@ import jakarta.persistence.GenerationType; import static org.hibernate.id.factory.IdGenFactoryLogging.ID_GEN_FAC_LOGGER; /** - * Basic templated support for {@link org.hibernate.id.factory.IdentifierGeneratorFactory} implementations. + * Basic {@code templated} support for {@link org.hibernate.id.factory.IdentifierGeneratorFactory} implementations. * * @author Steve Ebersole */ diff --git a/hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java b/hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java index e67fa3c28f..96381c97dc 100644 --- a/hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java @@ -138,16 +138,16 @@ import org.jboss.logging.Logger; /** - * Concrete implementation of the SessionFactory interface. Has the following + * Concrete implementation of the {@code SessionFactory} interface. Has the following * responsibilities *Retrieval operations (including get) generally do not + *
Retrieval operations (including {@code get}) generally do not * block, so may overlap with update operations (including - * put and remove). Retrievals reflect the results + * {@code put} and {@code remove}). Retrievals reflect the results * of the most recently completed update operations holding - * upon their onset. For aggregate operations such as putAll - * and clear, concurrent retrievals may reflect insertion or + * upon their onset. For aggregate operations such as {@code putAll} + * and {@code clear}, concurrent retrievals may reflect insertion or * removal of only some entries. Similarly, Iterators and * Enumerations return elements reflecting the state of the hash table * at some point at or since the creation of the iterator/enumeration. @@ -65,8 +65,8 @@ import static java.util.Collections.unmodifiableMap; * However, iterators are designed to be used by only one thread at a time. *
*The allowed concurrency among update operations is guided by - * the optional concurrencyLevel constructor argument - * (default 16), which is used as a hint for internal sizing. The + * the optional {@code concurrencyLevel} constructor argument + * (default {@code 16}), which is used as a hint for internal sizing. The * table is internally partitioned to try to permit the indicated * number of concurrent updates without contention. Because placement * in hash tables is essentially random, the actual concurrency will @@ -93,7 +93,7 @@ import static java.util.Collections.unmodifiableMap; *
* * Like {@link java.util.Hashtable} but unlike {@link HashMap}, this class
- * does not allow null to be used as a key or value.
+ * does not allow {@code null} to be used as a key or value.
*
* @param The value can be retrieved by calling the get method
+ * The value can be retrieved by calling the {@code get} method
* with a key that is equal to the original key.
*
* @param key key with which the specified value is to be associated
* @param value value to be associated with the specified key
*
- * @return the previous value associated with key, or
- * null if there was no mapping for key
+ * @return the previous value associated with {@code key}, or
+ * {@code null} if there was no mapping for {@code key}
*
* @throws NullPointerException if the specified key or value is null
*/
@@ -1986,7 +1986,7 @@ public class BoundedConcurrentHashMap The view's iterator is a "weakly consistent" iterator
+ * The view's {@code iterator} is a "weakly consistent" iterator
* that will never throw {@link java.util.ConcurrentModificationException},
* and guarantees to traverse elements as they existed upon
* construction of the iterator, and may (but is not guaranteed to)
@@ -2112,12 +2112,12 @@ public class BoundedConcurrentHashMap The view's iterator is a "weakly consistent" iterator
+ *