Skip to content
This repository was archived by the owner on Apr 21, 2021. It is now read-only.

Updating the documentatation. #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
10 changes: 0 additions & 10 deletions src/main/docs/guide/writingTheApp/controller.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ include::{sourceDir}/src/main/java/example/micronaut/GenreSaveCommand.java[]
----
include::{sourceDir}/src/main/java/example/micronaut/GenreUpdateCommand.java[]
----

Create a POJO to encapsulate Sorting and Pagination:


[source,java]
.src/main/java/example/micronaut/SortingAndOrderArguments.java
----
include::{sourceDir}/src/main/java/example/micronaut/SortingAndOrderArguments.java[]
----

<1> Use `javax.validation.constraints` Constraints to ensure the incoming data matches your expectations.

Create `GenreController`, a controller which exposes a resource with the common CRUD operations:
Expand Down
9 changes: 9 additions & 0 deletions src/main/docs/guide/writingTheApp/repository.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ include::{sourceDir}/build.gradle[tag="micronaut-data"]
}
----

Create a POJO to encapsulate Sorting and Pagination:


[source,java]
.src/main/java/example/micronaut/SortingAndOrderArguments.java
----
include::{sourceDir}/src/main/java/example/micronaut/SortingAndOrderArguments.java[]
----

Next, create an interface to define the operations to access the database:

[source,java]
Expand Down