Skip to content

Commit f06fa2b

Browse files
authored
Proofreading (#2819)
1 parent 4813729 commit f06fa2b

File tree

93 files changed

+149
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+149
-152
lines changed

ISSUE_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NOTE: If you are unsure about something and the issue is more of a question a be
77

88
- [ ] Steps to reproduce provided
99
- [ ] Stacktrace (if present) provided
10-
- [ ] Example that reproduces the problem uploaded to Github
10+
- [ ] Example that reproduces the problem uploaded to GitHub
1111
- [ ] Full description of the issue provided (see below)
1212

1313
### Steps to Reproduce
@@ -32,5 +32,5 @@ Tell us what happens instead
3232

3333
### Example Application
3434

35-
- TODO: link to github repository with example that reproduces the issue
35+
- TODO: link to GitHub repository with example that reproduces the issue
3636

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Micronaut Data is a database access toolkit that uses Ahead of Time (AoT) compil
99

1010
Micronaut Data is inspired by [GORM](https://gorm.grails.org) and [Spring Data](https://spring.io/projects/spring-data), however improves on those solutions in the following ways:
1111

12-
* *Compilation Time model* - Both GORM and Spring Data maintain a runtime meta-model that uses reflection to model relationships between entities. This model consumes significant memory and memory requirements grow as your application size grows. The problem is worse when combined with Hibernate which maintains its own meta-model as you end up with duplicate meta-models. Micronaut Data instead moves this model into the compiler.
12+
* *Compilation Time model* - Both GORM and Spring Data maintain a runtime metamodel that uses reflection to model relationships between entities. This model consumes significant memory and memory requirements grow as your application size grows. The problem is worse when combined with Hibernate which maintains its own metamodel as you end up with duplicate metamodels. Micronaut Data instead moves this model into the compiler.
1313
* *No query translation* - Both GORM and Spring Data use regular expressions and pattern matching in combination with runtime generated proxies to translate a method definition on a Java interface into a query at runtime. No such runtime translation exists in Micronaut Data and this work is carried out by the Micronaut compiler at compilation time.
1414
* *No Reflection or Runtime Proxies* - Micronaut Data uses no reflection or runtime proxies, resulting in better performance, smaller stack traces and reduced memory consumption due to a complete lack of reflection caches (Note that the backing implementation, for example Hibernate, may use reflection).
1515
* *Type Safety* - Micronaut Data will actively check at compile time that a repository method can be implemented and fail compilation if it cannot.
@@ -30,28 +30,28 @@ Or for Micronaut Data JDBC:
3030
```bash
3131
$ curl https://launch.micronaut.io/demo.zip?features=data-jdbc -o demo.zip
3232
$ unzip demo.zip -d demo
33-
```
33+
```
3434

35-
Note that you can append `&build=maven` to the URL to switch to a Maven build.
35+
Note that you can append `&build=maven` to the URL to switch to a Maven build.
3636

3737

3838
## Documentation
3939

40-
See the [Documentation](https://micronaut-projects.github.io/micronaut-data/latest/guide/) for more information.
40+
See the [Documentation](https://micronaut-projects.github.io/micronaut-data/latest/guide/) for more information.
4141

4242
See the [Snapshot Documentation](https://micronaut-projects.github.io/micronaut-data/snapshot/guide/) for the current development docs.
4343

4444
## Snapshots and Releases
4545

46-
Snaphots are automatically published to [JFrog OSS](https://oss.jfrog.org/artifactory/oss-snapshot-local/) using [Github Actions](https://github.com/micronaut-projects/micronaut-data/actions).
46+
Snaphots are automatically published to [JFrog OSS](https://oss.jfrog.org/artifactory/oss-snapshot-local/) using [GitHub Actions](https://github.com/micronaut-projects/micronaut-data/actions).
4747

4848
See the documentation in the [Micronaut Docs](https://docs.micronaut.io/latest/guide/index.html#usingsnapshots) for how to configure your build to use snapshots.
4949

50-
Releases are published to Maven Central via [Github Actions](https://github.com/micronaut-projects/micronaut-data/actions).
50+
Releases are published to Maven Central via [GitHub Actions](https://github.com/micronaut-projects/micronaut-data/actions).
5151

5252
A release is performed with the following steps:
5353

5454
* [Edit the version](https://github.com/micronaut-projects/micronaut-data/edit/master/gradle.properties) specified by `projectVersion` in `gradle.properties` to a semantic, unreleased version. Example `1.0.0`
5555
* [Create a new release](https://github.com/micronaut-projects/micronaut-data/releases/new). The Git Tag should start with `v`. For example `v1.0.0`.
5656
* [Monitor the Workflow](https://github.com/micronaut-projects/micronaut-data/actions?query=workflow%3ARelease) to check it passed successfully.
57-
* Celebrate!
57+
* Celebrate!

data-connection-jdbc/src/main/java/io/micronaut/data/connection/jdbc/advice/ContextualConnectionInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import java.sql.Connection;
3131

3232
/**
33-
* An interceptor that allows injecting a {@link Connection} that acts a proxy to lookup the connection for the current transaction.
33+
* An interceptor that allows injecting a {@link Connection} that acts a proxy to look up the connection for the current transaction.
3434
*
3535
* @author graemerocher
3636
* @since 1.0

data-jdbc/src/main/java/io/micronaut/data/jdbc/operations/JdbcSchemaHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface JdbcSchemaHandler {
3939
void createSchema(Connection connection, Dialect dialect, String name);
4040

4141
/**
42-
* Uses the given schema..
42+
* Uses the given schema.
4343
*
4444
* @param connection The JDBC connection
4545
* @param dialect The dialect

data-model/src/main/java/io/micronaut/data/annotation/DataTransformer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
/**
2626
* Generic version of allowing transformations to be applied when reading or writing
27-
* data to and from the a database. Inspired by Hibernate's <code>ColumnTransformer</code> concept.
27+
* data to and from the database. Inspired by Hibernate's <code>ColumnTransformer</code> concept.
2828
*
2929
* @author graemerocher
3030
* @since 1.0

data-model/src/main/java/io/micronaut/data/annotation/Id.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.lang.annotation.*;
1919

2020
/**
21-
* Designates a field or method that is annotated with the Id of an entity. Typically not used
21+
* Designates a field or method that is annotated with the ID of an entity. Typically not used
2222
* directly but instead mapped to via annotation such as {@code javax.persistence.Id}.
2323
*
2424
* @author graemerocher

data-model/src/main/java/io/micronaut/data/annotation/Index.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import java.lang.annotation.Target;
2626

2727
/**
28-
* Designates one of the indexes part of the indexes member within an Table annotation. Typically not used
28+
* Designates one of the indexes part of the indexes member within a Table annotation. Typically not used
2929
* directly but instead mapped to via annotation such as {@code javax.persistence.Index}.
3030
*
3131
* @author Davide Pugliese

data-model/src/main/java/io/micronaut/data/annotation/Query.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.lang.annotation.*;
1919

2020
/**
21-
* Defines the query string such as SQL, JPA-QL, Cypher etc that should be executed.
21+
* Defines the query string such as SQL, JPA-QL, Cypher etc. that should be executed.
2222
*
2323
* @author graemerocher
2424
* @since 1.0

data-model/src/main/java/io/micronaut/data/annotation/Relation.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,23 @@ enum Cascade {
7171
*/
7272
enum Kind {
7373
/**
74-
* One to many association.
74+
* One-To-Many association.
7575
*/
7676
ONE_TO_MANY(false),
7777
/**
78-
* One to one association.
78+
* One-to-one association.
7979
*/
8080
ONE_TO_ONE(true),
8181
/**
82-
* Many to many association.
82+
* Many-To-Many association.
8383
*/
8484
MANY_TO_MANY(false),
8585
/**
8686
* Embedded association.
8787
*/
8888
EMBEDDED(true),
89-
9089
/**
91-
* Many to one association.
90+
* Many-To-One association.
9291
*/
9392
MANY_TO_ONE(true);
9493

data-model/src/main/java/io/micronaut/data/annotation/Repository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import java.lang.annotation.Target;
2727

2828
/**
29-
* Designates a type of a data repository. If the type is an interface or abstract
29+
* Designates a type of data repository. If the type is an interface or abstract
3030
* class this annotation will attempt to automatically provide implementations at compilation time.
3131
*
3232
* @author graemerocher

data-model/src/main/java/io/micronaut/data/intercept/CountInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package io.micronaut.data.intercept;
1717

1818
/**
19-
* An interceptor that executes a a count of all records.
19+
* An interceptor that executes a count of all records.
2020
*
2121
* @param <T> The declaring type
2222
* @author graemerocher

data-model/src/main/java/io/micronaut/data/intercept/annotation/DataMethod.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,21 @@
9999
String META_MEMBER_PARAMETER_BINDING_PATHS = META_MEMBER_PARAMETER_BINDING + "Paths";
100100

101101
/**
102-
* The member name that holds parameter auto populated property paths.
102+
* The member name that holds parameter auto-populated property paths.
103103
* @deprecated No longer used
104104
*/
105105
@Deprecated(forRemoval = true)
106106
String META_MEMBER_PARAMETER_AUTO_POPULATED_PROPERTY_PATHS = META_MEMBER_PARAMETER_BINDING + "AutoPopulatedPaths";
107107

108108
/**
109-
* The member name that holds parameter auto populated property paths.
109+
* The member name that holds parameter auto-populated property paths.
110110
* @deprecated No longer used
111111
*/
112112
@Deprecated(forRemoval = true)
113113
String META_MEMBER_PARAMETER_AUTO_POPULATED_PREVIOUS_PROPERTY_PATHS = META_MEMBER_PARAMETER_BINDING + "AutoPopulatedPreviousPaths";
114114

115115
/**
116-
* The member name that holds parameter auto populated property paths.
116+
* The member name that holds parameter auto-populated property paths.
117117
* @deprecated No longer used
118118
*/
119119
@Deprecated(forRemoval = true)
@@ -292,7 +292,7 @@ enum OperationType {
292292
*/
293293
COUNT,
294294
/**
295-
* A exists operation.
295+
* An exists operation.
296296
*/
297297
EXISTS,
298298
/**

data-model/src/main/java/io/micronaut/data/intercept/async/CountAsyncInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.concurrent.CompletionStage;
2121

2222
/**
23-
* An interceptor that executes a a count of all records asynchronously.
23+
* An interceptor that executes a count of all records asynchronously.
2424
*
2525
* @param <T> The declaring type
2626
* @author graemerocher

data-model/src/main/java/io/micronaut/data/intercept/reactive/FindByIdReactiveInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import io.micronaut.data.intercept.DataInterceptor;
1919

2020
/**
21-
* An interceptor that executes an find by id reactively.
21+
* An interceptor that executes a find by id reactively.
2222
*
2323
* @param <T> The declaring type
2424
* @param <R> The result type

data-model/src/main/java/io/micronaut/data/intercept/reactive/UpdateReactiveInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import io.micronaut.data.intercept.DataInterceptor;
1919

2020
/**
21-
* An interceptor that saves a updates entity reactively.
21+
* An interceptor that saves an updates entity reactively.
2222
*
2323
* @param <T> The declaring type
2424
* @param <R> The result type

data-model/src/main/java/io/micronaut/data/model/DataType.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import java.util.*;
3232

3333
/**
34-
* Enum of basic data types allowing compile time computation which can then subsequently be used at runtime for fast
34+
* Enum of basic data types allowing to compile time computation which can then subsequently be used at runtime for fast
3535
* switching.
3636
*
3737
* @author graemerocher

data-model/src/main/java/io/micronaut/data/model/PersistentProperty.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ default boolean isGenerated() {
121121
}
122122

123123
/**
124-
* @return True if the property is autopopulated
124+
* @return True if the property is auto-populated
125125
*/
126126
default boolean isAutoPopulated() {
127127
return !isGenerated() && getAnnotationMetadata().hasStereotype(AutoPopulated.class);

data-model/src/main/java/io/micronaut/data/model/naming/NamingStrategy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
public interface NamingStrategy {
4545

4646
/**
47-
* Constant for the default under score separated lower case strategy.
47+
* Constant for the default underscore separated lower case strategy.
4848
*/
4949
NamingStrategy DEFAULT = new NamingStrategies.UnderScoreSeparatedLowerCase();
5050

data-model/src/main/java/io/micronaut/data/model/query/Criteria.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public interface Criteria {
213213
@NonNull Criteria contains(@NonNull String propertyName, @NonNull Object parameter);
214214

215215
/**
216-
* Creates an ilike Criterion based on the specified property name and value. Unlike a like condition, ilike is case insensitive.
216+
* Creates an ilike Criterion based on the specified property name and value. Unlike a like condition, ilike is case-insensitive.
217217
*
218218
* @param propertyName The property name
219219
* @param parameter The parameter that provides the value
@@ -223,7 +223,7 @@ public interface Criteria {
223223
@NonNull Criteria ilike(@NonNull String propertyName, @NonNull Object parameter);
224224

225225
/**
226-
* Creates an rlike Criterion based on the specified property name and value.
226+
* Creates a rlike Criterion based on the specified property name and value.
227227
*
228228
* @param propertyName The property name
229229
* @param parameter The parameter that provides the value

data-model/src/main/java/io/micronaut/data/model/query/DefaultQuery.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ public List<Projection> getProjections() {
9595
return projections.getProjectionList();
9696
}
9797

98-
9998
/**
100-
* Obtain the joint for for a given association.
99+
* Obtain the joint for a given association.
101100
* @param path The path to the association
102101
* @return The join type
103102
*/

data-model/src/main/java/io/micronaut/data/model/query/QueryModel.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ QueryModel from(@NonNull PersistentEntity entity) {
377377

378378
/**
379379
* Whether to lock the selected entities.
380-
* @return true if the the selected entities should be locked
380+
* @return true if the selected entities should be locked
381381
*/
382382
boolean isForUpdate();
383383

@@ -1293,7 +1293,7 @@ public Junction(List<Criterion> criteria) {
12931293
}
12941294

12951295
/**
1296-
* Adds an additional criterion.
1296+
* Adds another criterion.
12971297
* @param c The criterion
12981298
* @return This junction
12991299
*/

data-model/src/main/java/io/micronaut/data/model/query/builder/AbstractSqlLikeQueryBuilder.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -2529,8 +2529,8 @@ public static final class Placeholder {
25292529
/**
25302530
* Default constructor.
25312531
*
2532-
* @param name The name of the place holder
2533-
* @param key The key to set the value of the place holder
2532+
* @param name The name of the placeholder
2533+
* @param key The key to set the value of the placeholder
25342534
*/
25352535
public Placeholder(String name, String key) {
25362536
this.name = name;
@@ -2543,14 +2543,14 @@ public String toString() {
25432543
}
25442544

25452545
/**
2546-
* @return The place holder name
2546+
* @return The placeholder name
25472547
*/
25482548
public String getName() {
25492549
return name;
25502550
}
25512551

25522552
/**
2553-
* This the precomputed key to set the place holder. In SQL this would be the index.
2553+
* This the precomputed key to set the placeholder. In SQL this would be the index.
25542554
*
25552555
* @return The key used to set the placeholder.
25562556
*/

data-model/src/main/java/io/micronaut/data/model/query/builder/sql/Dialect.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public boolean supportsJsonEntity() {
187187
/**
188188
* Whether the dialect supports UPDATE ... RETURNING clause.
189189
*
190-
* @return true if does supports
190+
* @return true if it does support
191191
* @since 4.2.0
192192
*/
193193
public boolean supportsUpdateReturning() {
@@ -197,7 +197,7 @@ public boolean supportsUpdateReturning() {
197197
/**
198198
* Whether the dialect supports INSERT ... RETURNING clause.
199199
*
200-
* @return true if does supports
200+
* @return true if it does support
201201
* @since 4.2.0
202202
*/
203203
public boolean supportsInsertReturning() {
@@ -207,7 +207,7 @@ public boolean supportsInsertReturning() {
207207
/**
208208
* Whether the dialect supports DELETE ... RETURNING clause.
209209
*
210-
* @return true if does supports
210+
* @return true if it does support
211211
* @since 4.2.0
212212
*/
213213
public boolean supportsDeleteReturning() {

data-model/src/main/java/io/micronaut/data/model/query/builder/sql/SqlQueryBuilder.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public static boolean isForeignKeyWithJoinTable(@NonNull Association association
322322
}
323323

324324
/**
325-
* Builds the create table statement. Designed for testing and not production usage. For production a
325+
* Builds the creation table statement. Designed for testing and not production usage. For production a
326326
* SQL migration tool such as Flyway or Liquibase is recommended.
327327
*
328328
* @param entity The entity
@@ -694,7 +694,7 @@ private String addGeneratedStatementToColumn(PersistentProperty prop, String col
694694
}
695695
break;
696696
case ORACLE:
697-
// for Oracle we use sequences so just add NOT NULL
697+
// for Oracle, we use sequences so just add NOT NULL
698698
// then alter the table for sequences
699699
if (type == UUID) {
700700
column += " NOT NULL DEFAULT SYS_GUID()";
@@ -822,7 +822,7 @@ protected void selectAllColumnsFromJoinPaths(QueryState queryState,
822822
queryBuffer.append(COMMA);
823823

824824
boolean includeIdentity = association.isForeignKey();
825-
// in the case of a foreign key association the ID is not in the table
825+
// in the case of a foreign key association the ID is not in the table,
826826
// so we need to retrieve it
827827
traversePersistentProperties(associatedEntity, includeIdentity, true, (propertyAssociations, prop) -> {
828828
String columnName;

data-model/src/main/java/io/micronaut/data/model/query/builder/sql/SqlQueryConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
Dialect dialect();
4141

4242
/**
43-
* A String format (see {@link String#format(String, Object...)} to format the appearance
43+
* A String format (see {@link String#format(String, Object...)}) to format the appearance
4444
* of position parameters. It receives exactly one parameter which is the parameter index (starting from 1).
4545
* <p>
4646
* NOTE: If {@link #positionalParameterName()} is specified, the formatter will receive the custom name.
@@ -50,7 +50,7 @@
5050
String positionalParameterFormat() default "?";
5151

5252
/**
53-
* A String format (see {@link String#format(String, Object...)} to format the parameter name.
53+
* A String format (see {@link String#format(String, Object...)}) to format the parameter name.
5454
* It receives exactly one parameter which is the parameter index (starting from 1).
5555
*
5656
* @return The position parameter name.

0 commit comments

Comments
 (0)