|
|
@@ -5,8 +5,10 @@ import io.github.linpeilie.annotations.AutoMapper;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
+import org.hibernate.annotations.GenericGenerator;
|
|
|
|
|
|
import javax.persistence.Entity;
|
|
|
+import javax.persistence.GeneratedValue;
|
|
|
import javax.persistence.Id;
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
@@ -22,6 +24,8 @@ import javax.persistence.Table;
|
|
|
@AutoMapper(target= ChannelTemplate.class)
|
|
|
public class TbChannelTemplate {
|
|
|
@Id
|
|
|
+ @GeneratedValue(generator = "SnowflakeIdGenerator")
|
|
|
+ @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
|
|
|
@ApiModelProperty(value = "通道模板id")
|
|
|
private String id;
|
|
|
|