cn.herodotus.stirrup.logic.bpmn.mongodb.entity.DynamicForm Maven / Gradle / Ivy
The newest version!
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2020-2030 郑庚伟 ZHENGGENGWEI (码匠君), Licensed under the AGPL License
*
* This file is part of Herodotus Stirrup.
*
* Herodotus Stirrup is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Herodotus Stirrup is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package cn.herodotus.stirrup.logic.bpmn.mongodb.entity;
import cn.herodotus.stirrup.data.crud.entity.AbstractMongoEntity;
import cn.herodotus.stirrup.logic.bpmn.mongodb.domain.modeler.FormModeler;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Id;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* Description: 动态表单实体
*
* @author : gengwei.zheng
* @date : 2023/2/13 12:40
*/
@Document(collection = "dynamic-form")
public class DynamicForm extends AbstractMongoEntity {
@Id
private String id;
private String name;
@Schema(name = "流程节点名称", title = "该表单对应的工作流流程节点名称")
private String activityName;
private FormModeler modeler;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getActivityName() {
return activityName;
}
public void setActivityName(String activityName) {
this.activityName = activityName;
}
public FormModeler getModeler() {
return modeler;
}
public void setModeler(FormModeler modeler) {
this.modeler = modeler;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DynamicForm that = (DynamicForm) o;
return Objects.equal(id, that.id) && Objects.equal(name, that.name);
}
@Override
public int hashCode() {
return Objects.hashCode(id, name);
}
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("id", id)
.add("name", name)
.add("activityName", activityName)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy