@ -50,6 +50,7 @@ public class UserManagementImpl implements UserManagement {
@@ -50,6 +50,7 @@ public class UserManagementImpl implements UserManagement {
@ -100,10 +100,11 @@ Next, you need to create a table structure in your database, as follows:
@@ -100,10 +100,11 @@ Next, you need to create a table structure in your database, as follows:
[source,sql]
----
CREATE TABLE person
(id VARCHAR(255) PRIMARY KEY,
CREATE TABLE person(
id VARCHAR(255) PRIMARY KEY,
name VARCHAR(255),
age INT);
age INT
);
----
You also need a main application to run, as follows:
@ -117,10 +118,11 @@ When you run the main program, the preceding examples produce output similar to
@@ -117,10 +118,11 @@ When you run the main program, the preceding examples produce output similar to
@ -199,7 +199,7 @@ The following example of a Spring Converter implementation converts from a `Row`
@@ -199,7 +199,7 @@ The following example of a Spring Converter implementation converts from a `Row`
[source,java]
----
@ReadingConverter
public class PersonReadConverter implements Converter<Row, Person> {
public class PersonReadConverter implements Converter<Row, Person> {
public Person convert(Row source) {
Person p = new Person(source.get("id", String.class),source.get("name", String.class));