Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes some typos in javadoc #1756

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixes some typos in javadoc
  • Loading branch information
matrei committed Sep 28, 2023
commit 39f3bad9669dd0c04d8cc4c5d23e635b4cc4ec8c
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,25 @@ interface GormStaticOperations<D> {
D create()

/**
* Retrieves and object from the datastore. eg. Book.get(1)
* Retrieves an object from the datastore. eg. Book.get(1)
*/
D get(Serializable id)

/**
* Retrieves and object from the datastore. eg. Book.read(1)
* Retrieves an object from the datastore. eg. Book.read(1)
*
* Since the datastore abstraction doesn't support dirty checking yet this
* just delegates to {@link #get(Serializable)}
*/
D read(Serializable id)

/**
* Retrieves and object from the datastore as a proxy. eg. Book.load(1)
* Retrieves an object from the datastore as a proxy. eg. Book.load(1)
*/
D load(Serializable id)

/**
* Retrieves and object from the datastore as a proxy. eg. Book.proxy(1)
* Retrieves an object from the datastore as a proxy. eg. Book.proxy(1)
*/
D proxy(Serializable id)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,14 +547,14 @@ trait GormEntity<D> implements GormValidateable, DirtyCheckable, GormEntityApi<D
}

/**
* Retrieves and object from the datastore. eg. Book.get(1)
* Retrieves an object from the datastore. eg. Book.get(1)
*/
static D get(Serializable id) {
currentGormStaticApi().get id
}

/**
* Retrieves and object from the datastore. eg. Book.read(1)
* Retrieves an object from the datastore. eg. Book.read(1)
*
* Since the datastore abstraction doesn't support dirty checking yet this
* just delegates to {@link #get(Serializable)}
Expand All @@ -564,14 +564,14 @@ trait GormEntity<D> implements GormValidateable, DirtyCheckable, GormEntityApi<D
}

/**
* Retrieves and object from the datastore as a proxy. eg. Book.load(1)
* Retrieves an object from the datastore as a proxy. eg. Book.load(1)
*/
static D load(Serializable id) {
currentGormStaticApi().load id
}

/**
* Retrieves and object from the datastore as a proxy. eg. Book.proxy(1)
* Retrieves an object from the datastore as a proxy. eg. Book.proxy(1)
*/
static D proxy(Serializable id) {
currentGormStaticApi().proxy id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class GormStaticApi<D> extends AbstractGormApi<D> implements GormAllOperations<D
}

/**
* Retrieves and object from the datastore. eg. Book.get(1)
* Retrieves an object from the datastore. eg. Book.get(1)
*/
D get(Serializable id) {
(D)execute({ Session session ->
Expand All @@ -342,7 +342,7 @@ class GormStaticApi<D> extends AbstractGormApi<D> implements GormAllOperations<D
}

/**
* Retrieves and object from the datastore. eg. Book.read(1)
* Retrieves an object from the datastore. eg. Book.read(1)
*
* Since the datastore abstraction doesn't support dirty checking yet this
* just delegates to {@link #get(Serializable)}
Expand All @@ -354,7 +354,7 @@ class GormStaticApi<D> extends AbstractGormApi<D> implements GormAllOperations<D
}

/**
* Retrieves and object from the datastore as a proxy. eg. Book.load(1)
* Retrieves an object from the datastore as a proxy. eg. Book.load(1)
*/
D load(Serializable id) {
(D)execute ({ Session session ->
Expand All @@ -363,7 +363,7 @@ class GormStaticApi<D> extends AbstractGormApi<D> implements GormAllOperations<D
}

/**
* Retrieves and object from the datastore as a proxy. eg. Book.proxy(1)
* Retrieves an object from the datastore as a proxy. eg. Book.proxy(1)
*/
D proxy(Serializable id) {
load(id)
Expand Down