Skip to content

Instantly share code, notes, and snippets.

@rafael-as-martins
Created April 11, 2021 17:26
Show Gist options
  • Save rafael-as-martins/565110cdd433e747e7b64be3120b0712 to your computer and use it in GitHub Desktop.
Save rafael-as-martins/565110cdd433e747e7b64be3120b0712 to your computer and use it in GitHub Desktop.
CachedEntity
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