Skip to content

Commit

Permalink
add missing @id annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmann committed Oct 7, 2022
1 parent e94303d commit 85e3128
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.graylog2.bindings.providers.MongoJackObjectMapperProvider;
import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
import org.mongojack.DBQuery;
Expand Down Expand Up @@ -56,7 +55,7 @@ public static class TestDTO {
public String title;

@JsonCreator
public TestDTO(@JsonProperty("id") String id, @JsonProperty("title") String title) {
public TestDTO(@JsonProperty("id") @Id String id, @JsonProperty("title") String title) {
this.id = id;
this.title = title;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public static TestDTO create(@JsonProperty EncryptedValue passwordValue) {
}

@JsonCreator
public static TestDTO create(@JsonProperty("id") String id, @JsonProperty("password_value") EncryptedValue passwordValue) {
public static TestDTO create(@JsonProperty("id") @Id String id, @JsonProperty("password_value") EncryptedValue passwordValue) {
return new AutoValue_EncryptedValueTest_TestDTO(id, passwordValue);
}
}
Expand Down

0 comments on commit 85e3128

Please sign in to comment.