Adding source code for article tracked under BAEL-4109.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.baeldung.webflux;
|
||||
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
@Document
|
||||
public class Person {
|
||||
@Id
|
||||
String id;
|
||||
|
||||
public Person(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Person{" + "id='" + id + '\'' + '}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user