#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:
Mark Paluch
2020-09-17 11:13:38 +02:00
parent ce57b25cd0
commit c23485d90e
2 changed files with 21 additions and 1 deletions

View File

@@ -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[]
}