Skip to content

Commit 5ad04e8

Browse files
committed
Point to docs.hibernate.org instead of docs.jboss.org/hibernate in various docs
1 parent cb49fb2 commit 5ad04e8

File tree

29 files changed

+70
-70
lines changed

29 files changed

+70
-70
lines changed

design/working/6.0-posts.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Steve Ebersole
33
:awestruct-tags: ["Hibernate ORM"]
44
:awestruct-layout: blog-post
5-
:docs-url: https://docs.jboss.org/hibernate/orm/6.0
5+
:docs-url: https://docs.hibernate.org/orm/6.0
66
:javadocs-url: {docs-url}/javadocs
77
:migration-guide-url: {docs-url}/migration-guide/migration-guide.html
88
:user-guide-url: {docs-url}/userguide/html_single/Hibernate_User_Guide.html

documentation/src/main/asciidoc/querylanguage/Expressions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ Recognized Field types are listed below.
763763
| `offset minute` | `Integer` | 0-59 | Minutes of offset | ✖
764764
|===
765765

766-
For a full list of field types, see the Javadoc for https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/query/TemporalUnit.html[`TemporalUnit`].
766+
For a full list of field types, see the Javadoc for https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/query/TemporalUnit.html[`TemporalUnit`].
767767

768768
[source, hql]
769769
----
@@ -811,7 +811,7 @@ The pattern must be written in a subset of the pattern language defined by Java'
811811
select format(local datetime as 'yyyy-MM-dd HH:mm:ss')
812812
----
813813

814-
For a full list of `format()` pattern elements, see the Javadoc for https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/dialect/Dialect.html#appendDatetimeFormat[`Dialect.appendDatetimeFormat`].
814+
For a full list of `format()` pattern elements, see the Javadoc for https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/dialect/Dialect.html#appendDatetimeFormat[`Dialect.appendDatetimeFormat`].
815815

816816
[[function-trunc-datetime]]
817817
[discrete]

documentation/src/main/asciidoc/shared/url-attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
include::./common-attributes.adoc[]
66

7-
:doc-base-url: https://docs.jboss.org/hibernate/orm
7+
:doc-base-url: https://docs.hibernate.org/orm
88
:doc-version-base-url: {doc-base-url}/{majorMinorVersion}
99
:doc-migration-guide-url: {doc-version-base-url}/migration-guide/migration-guide.html
1010
:doc-quick-start-url: {doc-version-base-url}/quickstart/html_single/

documentation/src/main/asciidoc/userguide/appendices/LegacyBasicTypeResolution.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ But first, let's explore how implicit resolution works and how applications can
121121
====
122122
A thorough discussion of `BasicTypeRegistry` and all the different ways to contribute types is beyond the scope of this documentation.
123123
124-
Please see the http://docs.jboss.org/hibernate/orm/{majorMinorVersion}/integrationguide/html_single/Hibernate_Integration_Guide.html[Integration Guide] for complete details.
124+
Please see the http://docs.hibernate.org/orm/{majorMinorVersion}/integrationguide/html_single/[Integration Guide] for complete details.
125125
====
126126

127127
As an example, take a String attribute such as we saw before with Product#sku.

documentation/src/main/asciidoc/userguide/chapters/caching/Caching.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Besides provider specific configuration, there are a number of configurations op
3838

3939
`hibernate.cache.use_second_level_cache`::
4040
Enable or disable second level caching overall. By default, if the currently configured
41-
https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/cache/spi/RegionFactory.html[`RegionFactory`] is not the `NoCachingRegionFactory`, then the second-level cache is going to be enabled. Otherwise, the second-level cache is disabled.
41+
https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/cache/spi/RegionFactory.html[`RegionFactory`] is not the `NoCachingRegionFactory`, then the second-level cache is going to be enabled. Otherwise, the second-level cache is disabled.
4242
`hibernate.cache.use_query_cache`::
4343
Enable or disable second level caching of query results. The default is false.
4444
`hibernate.cache.query_cache_factory`::
@@ -119,7 +119,7 @@ transactional::
119119
====
120120
Rather than using a global setting, it is recommended to define the cache concurrency strategy on a per entity basis.
121121
122-
Use the https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/Cache.html[`@org.hibernate.annotations.Cache`] annotation for this purpose.
122+
Use the https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/Cache.html[`@org.hibernate.annotations.Cache`] annotation for this purpose.
123123
====
124124

125125
The `@Cache` annotation define three attributes:
@@ -376,7 +376,7 @@ include::{example-dir-caching}/SecondLevelCacheTest.java[tags=caching-query-regi
376376

377377
[NOTE]
378378
====
379-
When using {jpaJavadocUrlPrefix}CacheStoreMode.html#REFRESH[`CacheStoreMode.REFRESH`] or https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/CacheMode.html#REFRESH[`CacheMode.REFRESH`] in conjunction with the region you have defined for the given query,
379+
When using {jpaJavadocUrlPrefix}CacheStoreMode.html#REFRESH[`CacheStoreMode.REFRESH`] or https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/CacheMode.html#REFRESH[`CacheMode.REFRESH`] in conjunction with the region you have defined for the given query,
380380
Hibernate will selectively force the results cached in that particular region to be refreshed.
381381
382382
This behavior is particularly useful in cases when the underlying data may have been updated via a separate process
@@ -418,7 +418,7 @@ by placing the annotation on the entity class or the persistent collection attri
418418
[[caching-management]]
419419
=== Managing the cached data
420420

421-
Traditionally, Hibernate defined the https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/CacheMode.html[`CacheMode`] enumeration to describe
421+
Traditionally, Hibernate defined the https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/CacheMode.html[`CacheMode`] enumeration to describe
422422
the ways of interactions with the cached data.
423423
Jakarta Persistence split cache modes by storage ({jpaJavadocUrlPrefix}CacheStoreMode.html[`CacheStoreMode`])
424424
and retrieval ({jpaJavadocUrlPrefix}CacheRetrieveMode.html[`CacheRetrieveMode`]).
@@ -494,7 +494,7 @@ include::{example-dir-caching}/SecondLevelCacheTest.java[tags=caching-management
494494
====
495495

496496
Hibernate is much more flexible in this regard as it offers fine-grained control over what needs to be evicted.
497-
The https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/Cache.html[`org.hibernate.Cache`] interface defines various evicting strategies:
497+
The https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/Cache.html[`org.hibernate.Cache`] interface defines various evicting strategies:
498498

499499
- entities (by their class or region)
500500
- entities stored using the natural-id (by their class or region)
@@ -517,7 +517,7 @@ If you enable the `hibernate.generate_statistics` configuration property,
517517
Hibernate will expose a number of metrics via `SessionFactory.getStatistics()`.
518518
Hibernate can even be configured to expose these statistics via JMX.
519519

520-
This way, you can get access to the https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/stat/Statistics.html[`Statistics`] class which comprises all sort of
520+
This way, you can get access to the https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/stat/Statistics.html[`Statistics`] class which comprises all sort of
521521
second-level cache metrics.
522522

523523
[[caching-statistics-example]]

documentation/src/main/asciidoc/userguide/chapters/domain/associations.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ include::{extrasdir}/associations-many-to-any-example.sql[]
755755
[[associations-JoinFormula]]
756756
==== `@JoinFormula` mapping
757757

758-
The https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/JoinFormula.html[`@JoinFormula`] annotation is used to customize the join between a child Foreign Key and a parent row Primary Key.
758+
The https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/JoinFormula.html[`@JoinFormula`] annotation is used to customize the join between a child Foreign Key and a parent row Primary Key.
759759

760760
[[associations-JoinFormula-example]]
761761
.`@JoinFormula` mapping usage
@@ -805,7 +805,7 @@ Therefore, the `@JoinFormula` annotation is used to define a custom join associa
805805
[[associations-JoinColumnOrFormula]]
806806
==== `@JoinColumnOrFormula` mapping
807807

808-
The https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/JoinColumnOrFormula.html[`@JoinColumnOrFormula`] annotation is used to customize the join between a child Foreign Key and a parent row Primary Key when we need to take into consideration a column value as well as a `@JoinFormula`.
808+
The https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/JoinColumnOrFormula.html[`@JoinColumnOrFormula`] annotation is used to customize the join between a child Foreign Key and a parent row Primary Key when we need to take into consideration a column value as well as a `@JoinFormula`.
809809

810810
[[associations-JoinColumnOrFormula-example]]
811811
.`@JoinColumnOrFormula` mapping usage

documentation/src/main/asciidoc/userguide/chapters/domain/basic_types.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,7 +2022,7 @@ include::{example-dir-resources}/mapping/converter/hbm/MoneyConverterHbmTest.hbm
20222022
A basic type that's converted by a Jakarta Persistence `AttributeConverter` is immutable if the underlying Java type is immutable
20232023
and is mutable if the associated attribute type is mutable as well.
20242024

2025-
Therefore, mutability is given by the https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/type/descriptor/java/JavaType.html#getMutabilityPlan--[`JavaType#getMutabilityPlan`]
2025+
Therefore, mutability is given by the https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/type/descriptor/java/JavaType.html#getMutabilityPlan--[`JavaType#getMutabilityPlan`]
20262026
of the associated entity attribute type.
20272027

20282028
This can be adjusted by using `@Immutable` or `@Mutability` on any of:
@@ -2601,8 +2601,8 @@ include::{example-dir-generated}/temporals/GeneratedUuidTests.java[tags=mapping-
26012601
----
26022602
====
26032603

2604-
See https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/ValueGenerationType.html[`@ValueGenerationType`]
2605-
and https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/generator/AnnotationValueGeneration.html[`AnnotationBasedGenerator`]
2604+
See https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/ValueGenerationType.html[`@ValueGenerationType`]
2605+
and https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/generator/AnnotationValueGeneration.html[`AnnotationBasedGenerator`]
26062606
for details of each contract
26072607

26082608

documentation/src/main/asciidoc/userguide/chapters/domain/collections.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
:core-project-dir: {root-project-dir}/hibernate-core
44
:core-test-base: {core-project-dir}/src/test/java
55
:example-dir-collection: {core-test-base}/org/hibernate/orm/test/mapping/collections
6-
:docs-base: https://docs.jboss.org/hibernate/orm/{majorMinorVersion}
6+
:docs-base: https://docs.hibernate.org/orm/{majorMinorVersion}
77
:javadoc-base: {docs-base}/javadocs
88
:java-javadoc-base: https://docs.oracle.com/en/java/javase/11/docs/api/java.base
99
:extrasdir: extras/collections
@@ -722,7 +722,7 @@ When fetching the collection, Hibernate will use the fetched ordered columns to
722722
[[collections-customizing-ordered-list-ordinal]]
723723
===== Customizing ordered list ordinal
724724

725-
You can customize the ordinal of the underlying ordered list by using the https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/ListIndexBase.html[`@ListIndexBase`] annotation.
725+
You can customize the ordinal of the underlying ordered list by using the https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/ListIndexBase.html[`@ListIndexBase`] annotation.
726726

727727
[[collections-customizing-ordered-list-ordinal-mapping-example]]
728728
.`@ListIndexBase` mapping example
@@ -755,7 +755,7 @@ include::{extrasdir}/collections-customizing-ordered-list-ordinal-persist-exampl
755755
While the Jakarta Persistence
756756
{jpaJavadocUrlPrefix}OrderBy.html[`@OrderBy`] annotation allows you to specify the entity attributes used for sorting
757757
when fetching the current annotated collection, the Hibernate specific
758-
https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/OrderBy.html[`@OrderBy`] annotation is used to specify a *SQL* clause instead.
758+
https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/OrderBy.html[`@OrderBy`] annotation is used to specify a *SQL* clause instead.
759759

760760
In the following example, the `@OrderBy` annotation uses the `CHAR_LENGTH` SQL function to order the `Article` entities
761761
by the number of characters of the `name` attribute.
@@ -936,7 +936,7 @@ include::{extrasdir}/collections-map-value-type-entity-key-add-example.sql[]
936936
===== Maps with a custom key type
937937

938938
Hibernate defines the
939-
https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/MapKeyType.html[`@MapKeyType`] annotation
939+
https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/MapKeyType.html[`@MapKeyType`] annotation
940940
which you can use to customize the `Map` key type.
941941

942942
Considering you have the following tables in your database:

documentation/src/main/asciidoc/userguide/chapters/domain/embeddables.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Embeddable types that are used as collection entries, map keys or entity type id
302302
[[embeddable-Target]]
303303
==== `@TargetEmbeddable` mapping
304304

305-
The https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/TargetEmbeddable.html[`@TargetEmbeddable`] annotation is used to specify the implementation class of an embeddable-valued mapping when the declared type is a non-concrete type (interface, etc).
305+
The https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/TargetEmbeddable.html[`@TargetEmbeddable`] annotation is used to specify the implementation class of an embeddable-valued mapping when the declared type is a non-concrete type (interface, etc).
306306

307307
As an example, consider an `@Embedded` attribute (`City.coordinates`) whose declared type (`Coordinates`) is an interface. However, Hibernate needs to know about the concrete type to use, which is `GPS` in this case. The `@TargetEmbeddable` annotation is used to provide this information.
308308

documentation/src/main/asciidoc/userguide/chapters/domain/entity.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ For details on mapping the identifier, see the <<chapters/domain/identifiers.ado
404404
[[entity-sql-query-mapping]]
405405
==== Mapping the entity to a SQL query
406406

407-
You can map an entity to a SQL query using the https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/Subselect.html[`@Subselect`] annotation.
407+
You can map an entity to a SQL query using the https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/Subselect.html[`@Subselect`] annotation.
408408

409409
[[mapping-Subselect-example]]
410410
.`@Subselect` entity mapping
@@ -463,7 +463,7 @@ Hibernate will trigger a Persistence Context flush if there are pending `Account
463463

464464
When working with lazy associations or entity references for types that define and inheritance hierarchy Hibernate often creates proxies starting from the root class, with no information about the actual subtype that's referenced by the lazy instance. This can be a problem when using `instanceof` to check the type of said lazy entity references or when trying to cast to the concrete subtype.
465465

466-
The https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/ConcreteProxy.html[`@ConcreteProxy`] annotation can be used on an entity hierarchy root mapping to specify that Hibernate should always try to resolve the actual subtype corresponding to the proxy instance created. This effectively means that proxies for that entity hierarchy will always be created from the correct subclass, allowing to preserve laziness and enable using type checks and casts.
466+
The https://docs.hibernate.org/orm/{majorMinorVersion}/javadocs/org/hibernate/annotations/ConcreteProxy.html[`@ConcreteProxy`] annotation can be used on an entity hierarchy root mapping to specify that Hibernate should always try to resolve the actual subtype corresponding to the proxy instance created. This effectively means that proxies for that entity hierarchy will always be created from the correct subclass, allowing to preserve laziness and enable using type checks and casts.
467467

468468
[[entity-concrete-proxy-mapping]]
469469
.Root entity class annotated with `@ConcreteProxy`

0 commit comments

Comments
 (0)