#413 - Introduce constructor to R2dbcEntityTemplate accepting ConnectionFactory.
This is a short-cut constructor that allows for simpler creation of the Template API.
This commit is contained in:
@@ -76,7 +76,7 @@ class R2dbcEntityTemplateSnippets {
|
||||
|
||||
// tag::insert[]
|
||||
Mono<Person> insert = template.insert(Person.class) // <1>
|
||||
.using(new Person()); // <2>
|
||||
.using(new Person("John", "Doe")); // <2>
|
||||
// end::insert[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user