Skip to content

Commit

Permalink
Add defaults for idFromValue() and idFromValueAndType() (#2581)
Browse files Browse the repository at this point in the history
Signed-off-by: wslulciuc <willy@datakin.com>
  • Loading branch information
wslulciuc authored Aug 11, 2023
1 parent 37bbd88 commit 0322365
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ public void init(JavaType baseType) {

@Override
public String idFromValue(Object value) {
return null;
return idFromValueAndType(value, value.getClass());
}

@Override
public String idFromValueAndType(Object value, Class<?> suggestedType) {
return null;
// FIXME: We are hardcoding the 'eventType' for now as we currently don't support static
// lineage!
return "eventType";
}

@Override
Expand Down

0 comments on commit 0322365

Please sign in to comment.