Skip to content

Commit 286089a

Browse files
committed
Update docs
- Replace 'GORM for MongoDB' to 'Grace Data MongoDB'
1 parent fb32138 commit 286089a

22 files changed

+38
-37
lines changed

src/docs/guide/gettingStarted.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
== Basic Setup
22

3-
To get started with GORM for MongoDB within Grails you need configure it as a dependency in `build.gradle`:
3+
To get started with Grace Data MongoDB within Grace framework you need configure it as a dependency in `build.gradle`:
44

55
[source,groovy,subs="attributes"]
66
----
77
dependencies {
8-
implementation 'org.graceframework.plugins:mongodb:{version}'
8+
implementation 'org.graceframework:grace-boot-mongodb:{version}'
99
}
1010
----
1111

src/docs/guide/gettingStarted/advancedConfig.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== Mongo Database Connection Configuration
22

3-
As mentioned the GORM for MongoDB plugin will configure all the defaults for you, but if you wish to customize those defaults you can do so in the `app/conf/application.groovy` file:
3+
As mentioned the Grace Data MongoDB plugin will configure all the defaults for you, but if you wish to customize those defaults you can do so in the `app/conf/application.groovy` file:
44

55
[source,groovy]
66
----

src/docs/guide/gettingStarted/outsideGrails.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
If you wish to use GORM for MongoDB outside of a Grace application you should declare the necessary dependencies, for example in Gradle:
1+
If you wish to use Grace Data MongoDB outside of a Grace application you should declare the necessary dependencies, for example in Gradle:
22

33
[source,groovy,subs="attributes"]
44
----
55
implementation "org.graceframework:grace-boot:{version}"
6-
implementation "org.graceframework.plugins:mongodb:{version}"
6+
implementation "org.graceframework:grace-boot-mongodb:{version}"
77
----
88

99
Then annotate your entities with the `grails.gorm.annotation.Entity` annotation:

src/docs/guide/gettingStarted/springBoot.adoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
To use GORM for MongoDB in Spring Boot add the necessary dependencies to your Boot application:
1+
To use Grace Data MongoDB in Spring Boot add the necessary dependencies to your Spring Boot application:
22

33
[source,groovy,subs="attributes"]
44
----
55
implementation "org.graceframework:grace-boot:{version}"
6-
implementation "org.graceframework.plugins:mongodb:{version}"
6+
implementation "org.graceframework:grace-boot-mongodb:{version}"
77
----
88

9-
Ensure your Boot `Application` class is annotated with `GrailsComponentScan`, example:
9+
Ensure your Boot `Application` class is annotated with `@GrailsComponentScan`, example:
1010

1111
[source,groovy]
1212
----
13+
import grails.boot.GrailsComponentScan
1314
import org.springframework.boot.SpringApplication
1415
import org.springframework.boot.autoconfigure.SpringBootApplication
1516
17+
@GrailsComponentScan
1618
@SpringBootApplication
1719
class Application {
1820
static void main(String[] args) {
@@ -21,7 +23,7 @@ class Application {
2123
}
2224
----
2325

24-
NOTE: Using `GrailsComponentScan` without a value results in Boot scanning for classes in the same package or any package nested within the `Application` class package.
26+
NOTE: Using `@GrailsComponentScan` without a value results in Boot scanning for classes in the same package or any package nested within the `Application` class package.
2527
If your GORM entities are in a different package specify the package name as the value of the `GrailsComponentScan` annotation.
2628

2729
Finally create your GORM entities and ensure they are annotated with `grails.persistence.Entity`:

src/docs/guide/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= GORM for MongoDB
1+
= Grace Data MongoDB
22
Graeme Rocher, Burt Beckwith, Puneet Behl
33
:revnumber: {version}
44
:imagesdir: ./images
@@ -50,7 +50,7 @@ include::gettingStarted/advancedConfig.adoc[]
5050
include::gettingStarted/springBoot.adoc[]
5151

5252
[[outsideGrails]]
53-
=== GORM for MongoDB without Grails
53+
=== Grace Data MongoDB without Grails
5454

5555
include::gettingStarted/outsideGrails.adoc[]
5656

src/docs/guide/introduction/upgradeNotes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
==== Dependency Upgrades
22

3-
GORM 2023.3 supports Apache Groovy 4.0, Java 17, MongoDB Driver 5.0 and Spring 6.1.x.
3+
Grace Data MongoDB {version} supports Apache Groovy 4.0, Java 17, MongoDB Driver 5.2 and Spring 6.2.x.
44

55
Each of these underlying components may have changes that require altering your application. These changes are beyond the scope of this documentation.
66

src/docs/guide/multiTenancy/dynamicConnectionSources.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ MongoClient mongoClient =
3030

3131
All new connection sources will be stored within the specified `connectionsCollection` and if the application is restarted will read from the `connectionsCollection`.
3232

33-
WARNING: GORM for MongoDB does not implement provisioning of new MongoDB instances at runtime. This is something that would need to be implemented by a cloud services provider for example.
33+
WARNING: Grace Data MongoDB does not implement provisioning of new MongoDB instances at runtime. This is something that would need to be implemented by a cloud services provider for example.

src/docs/guide/multiTenancy/multiTenancyModes.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
As mentioned previously, GORM for MongoDB supports all three multi tenancy modes however there are some considerations to keep in mind.
1+
As mentioned previously, Grace Data MongoDB supports all three multi tenancy modes however there are some considerations to keep in mind.
22

33
=== Database Per Tenant
44

@@ -35,7 +35,7 @@ MongoClient mongoClient =
3535

3636
=== Schema Per Tenant
3737

38-
When using the `SCHEMA` mode, GORM for MongoDB will use a different MongoDB database, but the same `MongoClient` instance, for each tenant.
38+
When using the `SCHEMA` mode, Grace Data MongoDB will use a different MongoDB database, but the same `MongoClient` instance, for each tenant.
3939

4040
However, once again only GORM methods will use the correct database. For example:
4141

@@ -65,7 +65,7 @@ Book.DB.find()
6565

6666
=== Partitioned Multi-Tenancy
6767

68-
When using the `DISCRIMINATOR` approach, GORM for MongoDB will store a `tenantId` attribute in each MongoDB document and attempt to partition the data.
68+
When using the `DISCRIMINATOR` approach, Grace Data MongoDB will store a `tenantId` attribute in each MongoDB document and attempt to partition the data.
6969

7070
Once again this works only when using GORM methods and even then there are cases where it will not work if you use native MongoDB interfaces.
7171

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
GORM for MongoDB supports the notion of multiple data sources where multiple individual `MongoClient` instances can be configured and switched between.
1+
Grace Data MongoDB supports the notion of multiple data sources where multiple individual `MongoClient` instances can be configured and switched between.

src/docs/guide/multipleDataSources/connectionSources.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Introduced in GORM 6.0, the link:{api}/org/grails/datastore/mapping/core/connections/ConnectionSources.html[ConnectionSources] API allows you to introspect the data sources configured for the application:
1+
Introduced in Grace Data 2022.0, the link:{api}/org/grails/datastore/mapping/core/connections/ConnectionSources.html[ConnectionSources] API allows you to introspect the data sources configured for the application:
22

33
[source,groovy]
44
----

0 commit comments

Comments
 (0)