Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 964a06b

Browse files
authored
Merge pull request #389 from grails/httpsLinks
Update link to HTTPS for docs
2 parents 42610e2 + c3bef0c commit 964a06b

27 files changed

+79
-79
lines changed

docs/src/docs/asciidoc/advancedGORMFeatures/eventsAutoTimestamping.adoc

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -265,40 +265,40 @@ The values of the Map are instances of classes that implement one or more Hibern
265265
|===
266266

267267
*Name*,*Interface*
268-
auto-flush,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/AutoFlushEventListener.html[AutoFlushEventListener]
269-
merge,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/MergeEventListener.html[MergeEventListener]
270-
create,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PersistEventListener.html[PersistEventListener]
271-
create-onflush,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PersistEventListener.html[PersistEventListener]
272-
delete,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/DeleteEventListener.html[DeleteEventListener]
273-
dirty-check,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/DirtyCheckEventListener.html[DirtyCheckEventListener]
274-
evict,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/EvictEventListener.html[EvictEventListener]
275-
flush,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/FlushEventListener.html[FlushEventListener]
276-
flush-entity,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/FlushEntityEventListener.html[FlushEntityEventListener]
277-
load,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/LoadEventListener.html[LoadEventListener]
278-
load-collection,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/InitializeCollectionEventListener.html[InitializeCollectionEventListener]
279-
lock,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/LockEventListener.html[LockEventListener]
280-
refresh,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/RefreshEventListener.html[RefreshEventListener]
281-
replicate,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/ReplicateEventListener.html[ReplicateEventListener]
282-
save-update,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/SaveOrUpdateEventListener.html[SaveOrUpdateEventListener]
283-
save,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/SaveOrUpdateEventListener.html[SaveOrUpdateEventListener]
284-
update,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/SaveOrUpdateEventListener.html[SaveOrUpdateEventListener]
285-
pre-load,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreLoadEventListener.html[PreLoadEventListener]
286-
pre-update,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreUpdateEventListener.html[PreUpdateEventListener]
287-
pre-delete,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreDeleteEventListener.html[PreDeleteEventListener]
288-
pre-insert,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreInsertEventListener.html[PreInsertEventListener]
289-
pre-collection-recreate,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreCollectionRecreateEventListener.html[PreCollectionRecreateEventListener]
290-
pre-collection-remove,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreCollectionRemoveEventListener.html[PreCollectionRemoveEventListener]
291-
pre-collection-update,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreCollectionUpdateEventListener.html[PreCollectionUpdateEventListener]
292-
post-load,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostLoadEventListener.html[PostLoadEventListener]
293-
post-update,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostUpdateEventListener.html[PostUpdateEventListener]
294-
post-delete,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostDeleteEventListener.html[PostDeleteEventListener]
295-
post-insert,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostInsertEventListener.html[PostInsertEventListener]
296-
post-commit-update,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostUpdateEventListener.html[PostUpdateEventListener]
297-
post-commit-delete,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostDeleteEventListener.html[PostDeleteEventListener]
298-
post-commit-insert,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostInsertEventListener.html[PostInsertEventListener]
299-
post-collection-recreate,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostCollectionRecreateEventListener.html[PostCollectionRecreateEventListener]
300-
post-collection-remove,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostCollectionRemoveEventListener.html[PostCollectionRemoveEventListener]
301-
post-collection-update,http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostCollectionUpdateEventListener.html[PostCollectionUpdateEventListener]
268+
auto-flush,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/AutoFlushEventListener.html[AutoFlushEventListener]
269+
merge,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/MergeEventListener.html[MergeEventListener]
270+
create,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PersistEventListener.html[PersistEventListener]
271+
create-onflush,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PersistEventListener.html[PersistEventListener]
272+
delete,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/DeleteEventListener.html[DeleteEventListener]
273+
dirty-check,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/DirtyCheckEventListener.html[DirtyCheckEventListener]
274+
evict,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/EvictEventListener.html[EvictEventListener]
275+
flush,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/FlushEventListener.html[FlushEventListener]
276+
flush-entity,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/FlushEntityEventListener.html[FlushEntityEventListener]
277+
load,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/LoadEventListener.html[LoadEventListener]
278+
load-collection,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/InitializeCollectionEventListener.html[InitializeCollectionEventListener]
279+
lock,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/LockEventListener.html[LockEventListener]
280+
refresh,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/RefreshEventListener.html[RefreshEventListener]
281+
replicate,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/ReplicateEventListener.html[ReplicateEventListener]
282+
save-update,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/SaveOrUpdateEventListener.html[SaveOrUpdateEventListener]
283+
save,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/SaveOrUpdateEventListener.html[SaveOrUpdateEventListener]
284+
update,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/SaveOrUpdateEventListener.html[SaveOrUpdateEventListener]
285+
pre-load,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreLoadEventListener.html[PreLoadEventListener]
286+
pre-update,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreUpdateEventListener.html[PreUpdateEventListener]
287+
pre-delete,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreDeleteEventListener.html[PreDeleteEventListener]
288+
pre-insert,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreInsertEventListener.html[PreInsertEventListener]
289+
pre-collection-recreate,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreCollectionRecreateEventListener.html[PreCollectionRecreateEventListener]
290+
pre-collection-remove,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreCollectionRemoveEventListener.html[PreCollectionRemoveEventListener]
291+
pre-collection-update,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PreCollectionUpdateEventListener.html[PreCollectionUpdateEventListener]
292+
post-load,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostLoadEventListener.html[PostLoadEventListener]
293+
post-update,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostUpdateEventListener.html[PostUpdateEventListener]
294+
post-delete,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostDeleteEventListener.html[PostDeleteEventListener]
295+
post-insert,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostInsertEventListener.html[PostInsertEventListener]
296+
post-commit-update,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostUpdateEventListener.html[PostUpdateEventListener]
297+
post-commit-delete,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostDeleteEventListener.html[PostDeleteEventListener]
298+
post-commit-insert,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostInsertEventListener.html[PostInsertEventListener]
299+
post-collection-recreate,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostCollectionRecreateEventListener.html[PostCollectionRecreateEventListener]
300+
post-collection-remove,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostCollectionRemoveEventListener.html[PostCollectionRemoveEventListener]
301+
post-collection-update,https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/event/PostCollectionUpdateEventListener.html[PostCollectionUpdateEventListener]
302302
|===
303303

304304
For example, you could register a class `AuditEventListener` which implements `PostInsertEventListener`, `PostUpdateEventListener`, and `PostDeleteEventListener` using the following in an application:

docs/src/docs/asciidoc/advancedGORMFeatures/ormdsl/caching.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
===== Setting up caching
22

33

4-
http://www.hibernate.org/[Hibernate] features a second-level cache with a customizable cache provider. This needs to be configured in the `grails-app/conf/application.yml` file as follows:
4+
https://www.hibernate.org/[Hibernate] features a second-level cache with a customizable cache provider. This needs to be configured in the `grails-app/conf/application.yml` file as follows:
55

66
[source,groovy]
77
----
@@ -15,7 +15,7 @@ hibernate:
1515

1616
You can customize any of these settings, for example to use a distributed caching mechanism.
1717

18-
NOTE: For further reading on caching and in particular Hibernate's second-level cache, refer to the http://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#caching[Hibernate documentation] on the subject.
18+
NOTE: For further reading on caching and in particular Hibernate's second-level cache, refer to the https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#caching[Hibernate documentation] on the subject.
1919

2020

2121
===== Caching instances

docs/src/docs/asciidoc/advancedGORMFeatures/ormdsl/customCascadeBehaviour.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
As described in the section on <<cascades,cascading updates>>, the primary mechanism to control the way updates and deletes cascade from one association to another is the static <<ref-domain-classes-belongsTo,belongsTo>> property.
22

3-
However, the ORM DSL gives you complete access to Hibernate's http://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#associations[transitive persistence] capabilities using the `cascade` attribute.
3+
However, the ORM DSL gives you complete access to Hibernate's https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#associations[transitive persistence] capabilities using the `cascade` attribute.
44

55
Valid settings for the cascade attribute include:
66

docs/src/docs/asciidoc/advancedGORMFeatures/ormdsl/customHibernateTypes.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
You saw in an earlier section that you can use composition (with the `embedded` property) to break a table into multiple objects. You can achieve a similar effect with Hibernate's custom user types. These are not domain classes themselves, but plain Java or Groovy classes. Each of these types also has a corresponding "meta-type" class that implements http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/usertype/UserType.html[org.hibernate.usertype.UserType].
1+
You saw in an earlier section that you can use composition (with the `embedded` property) to break a table into multiple objects. You can achieve a similar effect with Hibernate's custom user types. These are not domain classes themselves, but plain Java or Groovy classes. Each of these types also has a corresponding "meta-type" class that implements https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/usertype/UserType.html[org.hibernate.usertype.UserType].
22

3-
The http://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#_custom_type[Hibernate reference manual] has some information on custom types, but here we will focus on how to map them in GORM. Let's start by taking a look at a simple domain class that uses an old-fashioned (pre-Java 1.5) type-safe enum class:
3+
The https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#_custom_type[Hibernate reference manual] has some information on custom types, but here we will focus on how to map them in GORM. Let's start by taking a look at a simple domain class that uses an old-fashioned (pre-Java 1.5) type-safe enum class:
44
55
[source,groovy]
66
----

docs/src/docs/asciidoc/advancedGORMFeatures/ormdsl/fetchingDSL.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Person {
6363
----
6464
If a query returns multiple `Person` instances, then when we access the first `pet` property, Hibernate will fetch that `Pet` plus the four next ones. You can get the same behaviour with eager loading by combining `batchSize` with the `lazy: false` option.
6565

66-
You can find out more about these options in the http://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#fetching[Hibernate user guide]. Note that ORM DSL does not currently support the "subselect" fetching strategy.
66+
You can find out more about these options in the https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#fetching[Hibernate user guide]. Note that ORM DSL does not currently support the "subselect" fetching strategy.
6767

6868

6969
===== Lazy Single-Ended Associations

docs/src/docs/asciidoc/advancedGORMFeatures/ormdsl/identity.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Person {
1919

2020
In this case we're using one of Hibernate's built in 'hilo' generators that uses a separate table to generate ids.
2121

22-
NOTE: For more information on the different Hibernate generators refer to the http://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#identifiers-generators[Hibernate reference documentation]
22+
NOTE: For more information on the different Hibernate generators refer to the https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#identifiers-generators[Hibernate reference documentation]
2323

2424
Although you don't typically specify the `id` field (GORM adds it for you) you can still configure its mapping like the other properties. For example to customise the column for the id property you can do:
2525

docs/src/docs/asciidoc/advancedGORMFeatures/ormdsl/tableAndColumnNames.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Here `firstName` is a dynamic method within the `mapping` Closure that has a sin
4141
===== Column type
4242

4343

44-
GORM supports configuration of Hibernate types with the DSL using the type attribute. This includes specifying user types that implement the Hibernate http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/usertype/UserType.html[org.hibernate.usertype.UserType] interface, which allows complete customization of how a type is persisted. As an example if you had a `PostCodeType` you could use it as follows:
44+
GORM supports configuration of Hibernate types with the DSL using the type attribute. This includes specifying user types that implement the Hibernate https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/usertype/UserType.html[org.hibernate.usertype.UserType] interface, which allows complete customization of how a type is persisted. As an example if you had a `PostCodeType` you could use it as follows:
4545

4646
[source,java]
4747
----
@@ -73,7 +73,7 @@ class Address {
7373

7474
This would make the `postCode` column map to the default large-text type for the database you're using (for example TEXT or CLOB).
7575

76-
See the Hibernate documentation regarding http://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#basic-explicit[Basic Types] for further information.
76+
See the Hibernate documentation regarding https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#basic-explicit[Basic Types] for further information.
7777

7878

7979
===== Many-to-One/One-to-One Mappings

docs/src/docs/asciidoc/configuration/hibernateCustomization.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If you are using Spring, it is registered as a Spring bean using the name `hiber
1212

1313
If you are not using Spring it can be passed to the constructor of the `HibernateDatastore` class on instantiation.
1414

15-
The `HibernateConnectionSourceFactory` has a few useful setters that allow you to specify a Hibernate http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/Interceptor.html[Interceptor] or http://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/boot/spi/MetadataContributor.html[MetadataContributor] (Hibernate 5+ only).
15+
The `HibernateConnectionSourceFactory` has a few useful setters that allow you to specify a Hibernate https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/Interceptor.html[Interceptor] or https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/boot/spi/MetadataContributor.html[MetadataContributor] (Hibernate 5+ only).
1616

1717
==== The HibernateMappingContextConfiguration
1818

docs/src/docs/asciidoc/domainClasses.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
When building applications you have to consider the problem domain you are trying to solve. For example if you were building an http://www.amazon.com/[Amazon]-style bookstore you would be thinking about books, authors, customers and publishers to name a few.
1+
When building applications you have to consider the problem domain you are trying to solve. For example if you were building an https://www.amazon.com/[Amazon]-style bookstore you would be thinking about books, authors, customers and publishers to name a few.
22

33
These are modeled in GORM as Groovy classes, so a `Book` class may have a title, a release date, an ISBN number and so on. The next few sections show how to model the domain in GORM.
44

docs/src/docs/asciidoc/domainClasses/gormAssociation/manyToOneAndOneToOne.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void clearReviews(Book book) {
190190
}
191191
----
192192

193-
Alternatively you could leverage http://docs.grails.org/latest/ref/Database%20Mapping/cascade.html[cascade] behaviour.
193+
Alternatively you could leverage https://docs.grails.org/latest/ref/Database%20Mapping/cascade.html[cascade] behaviour.
194194

195195
[source,groovy]
196196
----

0 commit comments

Comments
 (0)