I have created this class
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of = { "id" })
@Builder(toBuilder = true)
@JsonInclude(NON_NULL)
public class Hostel<T> implements Serializable {
@Field
private Long version;
@JsonProperty("_data")
private @NotNull T data;
}
But I have this SonarQube error:
Make "data" transient or serializable SonarQube Error
but data is a Generic type