Created
April 11, 2021 17:26
-
-
Save rafael-as-martins/565110cdd433e747e7b64be3120b0712 to your computer and use it in GitHub Desktop.
CachedEntity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.medium.kafka.controller; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import lombok.Data; | |
@Data | |
public class CachedEntity { | |
private int entityId; | |
public CachedEntity(@JsonProperty("entityId") int entityId){ | |
this.entityId = entityId; | |
} | |
@Override | |
public String toString() { | |
return String.format("Cached Entity with id %d", entityId); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment