|
|
@@ -10,6 +10,7 @@ import org.hswebframework.ezorm.rdb.mapping.annotation.JsonCodec;
|
|
|
import org.hswebframework.web.api.crud.entity.GenericTreeSortSupportEntity;
|
|
|
import javax.persistence.Column;
|
|
|
import javax.persistence.Table;
|
|
|
+import javax.persistence.Transient;
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
import java.sql.JDBCType;
|
|
|
import java.util.*;
|
|
|
@@ -18,8 +19,8 @@ import java.util.*;
|
|
|
@Data
|
|
|
@EqualsAndHashCode(callSuper = false)
|
|
|
public class GeoRegionEntity extends GenericTreeSortSupportEntity<String> {
|
|
|
- @Column(unique = true)
|
|
|
- @Schema(description = "属性名称")
|
|
|
+
|
|
|
+ @Column
|
|
|
private String name;
|
|
|
|
|
|
@Column
|
|
|
@@ -31,6 +32,9 @@ public class GeoRegionEntity extends GenericTreeSortSupportEntity<String> {
|
|
|
@NotBlank(message = "请绘制坐标区域")
|
|
|
private GeoJson.Feature region;
|
|
|
|
|
|
+// @Transient
|
|
|
+ private String title;
|
|
|
+
|
|
|
//子菜单
|
|
|
private List<GeoRegionEntity> children;
|
|
|
|