925ec5cb0507b8f102796c68121ed965648544f3
[sdc/sdc-workflow-designer.git] /
1 package org.onap.sdc.workflow.persistence.types;
2
3 import static org.springframework.data.cassandra.core.cql.PrimaryKeyType.PARTITIONED;
4
5 import lombok.Data;
6 import org.springframework.data.cassandra.core.mapping.PrimaryKeyColumn;
7 import org.springframework.data.cassandra.core.mapping.Table;
8
9 @Table("unique_value")
10 @Data
11 public class UniqueValueEntity {
12
13     @PrimaryKeyColumn(ordinal = 0, type = PARTITIONED)
14     private String type;
15
16     @PrimaryKeyColumn(ordinal = 1, type = PARTITIONED)
17     private String value;
18
19     public UniqueValueEntity(String type, String value) {
20         this.type = type;
21         this.value = value;
22     }
23 }