package com.genpt.nfuse.model.cle; import java.io.Serializable; import lombok.Getter; import org.springframework.data.cassandra.core.cql.PrimaryKeyType; import org.springframework.data.cassandra.core.mapping.PrimaryKeyClass; import org.springframework.data.cassandra.core.mapping.PrimaryKeyColumn; @PrimaryKeyClass @Getter public class ReplayConfigurationKey implements Serializable { @PrimaryKeyColumn(name = "service_name", type = PrimaryKeyType.PARTITIONED, ordinal = 0) private String serviceName; @PrimaryKeyColumn(name = "exception_code", type = PrimaryKeyType.PARTITIONED, ordinal = 1) private int exceptionCode; public ReplayConfigurationKey(final String serviceName, final int exceptionCode) { this.serviceName = serviceName; this.exceptionCode = exceptionCode; } }