All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.castled.dtos.querymodel.QueryModelDetails Maven / Gradle / Ivy

package io.castled.dtos.querymodel;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.castled.models.QueryModelType;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.EXISTING_PROPERTY,
        visible = true,
        property = "type")
@JsonSubTypes({
        @JsonSubTypes.Type(value = SqlQueryModelDetails.class, name = "SQL"),
        @JsonSubTypes.Type(value = TableQueryModelDetails.class, name = "TABLE"),
        @JsonSubTypes.Type(value = DbtQueryModelDetails.class, name = "DBT")})
@NoArgsConstructor
@AllArgsConstructor
public abstract class QueryModelDetails {

    private QueryModelType type;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy