- restore generic signatures, scoped variables and missing code from original bytecode - remove decompiler artifacts and document classes, methods, fields and packages - restore resources, add Batik/BouncyCastle dependencies and build/runtime docs
121 lines
2.7 KiB
Java
121 lines
2.7 KiB
Java
package com.midm.model.org;
|
||
|
||
import com.mitac.cell.db.DbObject;
|
||
import java.util.UUID;
|
||
import org.springframework.data.annotation.Id;
|
||
import org.springframework.data.mongodb.core.mapping.Document;
|
||
|
||
/**
|
||
* 【MongoDB 文档实体】{@code SitePlan}
|
||
*
|
||
* 类职责:
|
||
* <ul>
|
||
* <li>作为 MongoDB 集合文档,承载该领域对象的持久化字段与索引。</li>
|
||
* <li>通过字段/依赖注入持有运行期状态,字段含义见下方“核心字段”。</li>
|
||
* </ul>
|
||
*
|
||
* 核心字段(按声明顺序):
|
||
* <ul>
|
||
* <li>{@code uuid}(UUID):对象唯一标识(MongoDB 主键)</li>
|
||
* <li>{@code model}(String):模型</li>
|
||
* <li>{@code plan}(DbObject):计划</li>
|
||
* <li>{@code isReseller}(boolean):判断是否Reseller</li>
|
||
* </ul>
|
||
*
|
||
* 协作对象:{@code DbObject}。
|
||
*
|
||
* 持久化/框架标记:{@code @Document} 映射为 MongoDB 集合。
|
||
*
|
||
* 学习提示:先看字段与 @Field/@Indexed,再看对应 Service/Repository 如何构造查询条件。
|
||
*/
|
||
@Document
|
||
public class SitePlan {
|
||
/**
|
||
* 对象唯一标识(MongoDB 主键);MongoDB 主键。
|
||
*
|
||
* 注解:{@code @Id}。
|
||
*/
|
||
@Id
|
||
private UUID uuid;
|
||
/**
|
||
* 模型。
|
||
*/
|
||
private String model = "midm";
|
||
/**
|
||
* 计划。
|
||
*/
|
||
private DbObject plan;
|
||
/**
|
||
* 判断是否Reseller。
|
||
*/
|
||
private boolean isReseller = false;
|
||
|
||
/**
|
||
* 获取 {@code uuid}。
|
||
* @return UUID
|
||
*/
|
||
public UUID getUuid() {
|
||
return this.uuid;
|
||
}
|
||
|
||
/**
|
||
* 设置 {@code uuid}。
|
||
*
|
||
* @param uuid 对象 UUID({@code UUID})
|
||
*/
|
||
public void setUuid(UUID uuid) {
|
||
this.uuid = uuid;
|
||
}
|
||
|
||
/**
|
||
* 获取 {@code model}。
|
||
* @return 字符串结果
|
||
*/
|
||
public String getModel() {
|
||
return this.model;
|
||
}
|
||
|
||
/**
|
||
* 设置 {@code model}。
|
||
*
|
||
* @param model 参数 {@code model}({@code String})
|
||
*/
|
||
public void setModel(String model) {
|
||
this.model = model;
|
||
}
|
||
|
||
/**
|
||
* 获取 {@code plan}。
|
||
* @return MongoDB 文档扩展对象
|
||
*/
|
||
public DbObject getPlan() {
|
||
return this.plan;
|
||
}
|
||
|
||
/**
|
||
* 设置 {@code plan}。
|
||
*
|
||
* @param plan 参数 {@code plan}({@code DbObject})
|
||
*/
|
||
public void setPlan(DbObject plan) {
|
||
this.plan = plan;
|
||
}
|
||
|
||
/**
|
||
* 判断 {@code reseller}。
|
||
* @return 字段/派生属性 {@code reseller} 的值
|
||
*/
|
||
public boolean isReseller() {
|
||
return this.isReseller;
|
||
}
|
||
|
||
/**
|
||
* 设置 {@code reseller}。
|
||
*
|
||
* @param isReseller 参数 {@code isReseller}({@code boolean})
|
||
*/
|
||
public void setReseller(boolean isReseller) {
|
||
this.isReseller = isReseller;
|
||
}
|
||
}
|