class ComponentAnalysisCache implements Serializable {

    private static final long serialVersionUID = 1189261128713368621L;

    public enum CacheType {
        REPOSITORY,
        VULNERABILITY,
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.NATIVE)
    @JsonIgnore
    private long id;

    @Persistent
    @Column(name = "LAST_OCCURRENCE", allowsNull = "false")
    @NotNull
    private Date lastOccurrence;

    @Persistent
    @Column(name = "CACHE_TYPE", allowsNull = "false")
    @NotNull
    private CacheType cacheType;

    @Persistent
    @Column(name = "TARGET_HOST", allowsNull = "false")
    @NotNull
    private String targetHost;

    @Persistent
    @Column(name = "TARGET_TYPE", allowsNull = "false")
    @NotNull
    private String targetType;

    @Persistent
    @Column(name = "TARGET", allowsNull = "false", length = 786)
    @NotNull
    private String target;

    @Persistent(defaultFetchGroup = "true")
    @Column(name = "RESULT", allowsNull = "true", jdbcType = "CLOB")
    private String result;

    @Persistent(customValueStrategy = "uuid")
    @Unique(name = "COMPONENTANALYSISCACHE_UUID_IDX")
    @Column(name = "UUID", jdbcType = "VARCHAR", length = 36, allowsNull = "false")
    @NotNull
    private UUID uuid;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Date getLastOccurrence() {
        return lastOccurrence;
    }

    public void setLastOccurrence(Date lastOccurrence) {
        this.lastOccurrence = lastOccurrence;
    }

    public CacheType getCacheType() {
        return cacheType;
    }

    public void setCacheType(CacheType cacheType) {
        this.cacheType = cacheType;
    }

    public String getTargetHost() {
        return targetHost;
    }

    public void setTargetHost(String targetHost) {
        this.targetHost = targetHost;
    }

    public String getTargetType() {
        return targetType;
    }

    public void setTargetType(String targetType) {
        this.targetType = targetType;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public JsonObject getResult() {<FILL_FUNCTION_BODY>}

    public void setResult(JsonObject jsonObject) {
        if (jsonObject == null) {
            result = null;
        } else {
            try (final StringWriter sw = new StringWriter();
                 final JsonWriter jw = Json.createWriter(sw)) {
                jw.write(jsonObject);
                result = sw.toString();
            } catch (Exception e) {
                result = null;
            }
        }
    }

    public UUID getUuid() {
        return uuid;
    }

    public void setUuid(UUID uuid) {
        this.uuid = uuid;
    }
}

        if (result != null) {
            try (final StringReader sr = new StringReader(result);
                 final JsonReader jr = Json.createReader(sr)) {
                return jr.readObject();
            } catch (Exception e) {
                return null;
            }
        }
        return null;
    
<no_super_class>