Minor cleanup with tests

Added converter on saving in db user
This commit is contained in:
coach88
2015-08-15 00:11:19 +03:00
parent 3e4f69fb74
commit 236b808d05
10 changed files with 167 additions and 7 deletions

View File

@@ -0,0 +1,34 @@
package org.baeldung.model;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class EmailAddress {
@Id
private String id;
private String value;
public EmailAddress(){
}
public EmailAddress(String value) {
this.value = value;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}