From ff78ecf1be517b59d7dbc4eb65fcc3ac4f0b7b8f Mon Sep 17 00:00:00 2001 From: "J. Brisbin" Date: Wed, 6 Apr 2011 11:51:13 -0500 Subject: [PATCH] Fix for test case using a different constructor --- .../data/document/mongodb/mapping/PersonCustomIdName.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/document/mongodb/mapping/PersonCustomIdName.java b/spring-data-mongodb/src/test/java/org/springframework/data/document/mongodb/mapping/PersonCustomIdName.java index 556abf66f..7abbfde25 100644 --- a/spring-data-mongodb/src/test/java/org/springframework/data/document/mongodb/mapping/PersonCustomIdName.java +++ b/spring-data-mongodb/src/test/java/org/springframework/data/document/mongodb/mapping/PersonCustomIdName.java @@ -26,6 +26,12 @@ public class PersonCustomIdName extends BasePerson { @Id private String lastName; + + public PersonCustomIdName(Integer ssn, String firstName) { + this.ssn = ssn; + this.firstName = firstName; + } + public PersonCustomIdName(Integer ssn, String firstName, String lastName) { this.ssn = ssn; this.firstName = firstName;