blob: fddbce0c8d39b925431ebe48b6cf0d5151d79416 [file] [log] [blame]
package org.eclipse.virgo.samples.recipe.data.mongodb;
import org.springframework.data.annotation.Id;
//tag::type[]
public class Customer {
@Id
private String id;
private String firstName;
private String lastName;
public Customer() {}
public Customer(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
@Override
public String toString() {
return String.format(
"Customer[id=%s, firstName='%s', lastName='%s']",
id, firstName, lastName);
}
}
//end::type[]