com.github.shoothzj.sdk.distribute.impl.mongo.dao.ElectionId Maven / Gradle / Ivy
package com.github.shoothzj.sdk.distribute.impl.mongo.dao;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* @author hezhangjian
*/
@Document(collection = "T_ElectionId")
@CompoundIndex(def = "{'scene':1,'incrId':1}", name = "electionId_index_scene_incrId", unique = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ElectionId {
private String scene;
private Long incrId;
}