Skip to content

Commit

Permalink
实体属性的get/set方法设置为final,避免无意中被重载覆盖。一般重载都会导致bug,不支持重载get/set逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Dec 26, 2024
1 parent f14d41b commit 9ec177d
Show file tree
Hide file tree
Showing 86 changed files with 2,918 additions and 2,918 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -603,15 +603,15 @@ public void orm_internalSet(int propId, Object value) {
/**
* 主键: DEPT_ID
*/
public java.lang.String getDeptId(){
public final java.lang.String getDeptId(){
onPropGet(PROP_ID_deptId);
return _deptId;
}

/**
* 主键: DEPT_ID
*/
public void setDeptId(java.lang.String value){
public final void setDeptId(java.lang.String value){
if(onPropSet(PROP_ID_deptId,value)){
this._deptId = value;
internalClearRefs(PROP_ID_deptId);
Expand All @@ -622,15 +622,15 @@ public void setDeptId(java.lang.String value){
/**
* 名称: DEPT_NAME
*/
public java.lang.String getDeptName(){
public final java.lang.String getDeptName(){
onPropGet(PROP_ID_deptName);
return _deptName;
}

/**
* 名称: DEPT_NAME
*/
public void setDeptName(java.lang.String value){
public final void setDeptName(java.lang.String value){
if(onPropSet(PROP_ID_deptName,value)){
this._deptName = value;
internalClearRefs(PROP_ID_deptName);
Expand All @@ -641,15 +641,15 @@ public void setDeptName(java.lang.String value){
/**
* 父ID: PARENT_ID
*/
public java.lang.String getParentId(){
public final java.lang.String getParentId(){
onPropGet(PROP_ID_parentId);
return _parentId;
}

/**
* 父ID: PARENT_ID
*/
public void setParentId(java.lang.String value){
public final void setParentId(java.lang.String value){
if(onPropSet(PROP_ID_parentId,value)){
this._parentId = value;
internalClearRefs(PROP_ID_parentId);
Expand All @@ -660,15 +660,15 @@ public void setParentId(java.lang.String value){
/**
* 排序: ORDER_NUM
*/
public java.lang.Integer getOrderNum(){
public final java.lang.Integer getOrderNum(){
onPropGet(PROP_ID_orderNum);
return _orderNum;
}

/**
* 排序: ORDER_NUM
*/
public void setOrderNum(java.lang.Integer value){
public final void setOrderNum(java.lang.Integer value){
if(onPropSet(PROP_ID_orderNum,value)){
this._orderNum = value;
internalClearRefs(PROP_ID_orderNum);
Expand All @@ -679,15 +679,15 @@ public void setOrderNum(java.lang.Integer value){
/**
* 类型: DEPT_TYPE
*/
public java.lang.String getDeptType(){
public final java.lang.String getDeptType(){
onPropGet(PROP_ID_deptType);
return _deptType;
}

/**
* 类型: DEPT_TYPE
*/
public void setDeptType(java.lang.String value){
public final void setDeptType(java.lang.String value){
if(onPropSet(PROP_ID_deptType,value)){
this._deptType = value;
internalClearRefs(PROP_ID_deptType);
Expand All @@ -698,15 +698,15 @@ public void setDeptType(java.lang.String value){
/**
* 部门负责人: MANAGER_ID
*/
public java.lang.String getManagerId(){
public final java.lang.String getManagerId(){
onPropGet(PROP_ID_managerId);
return _managerId;
}

/**
* 部门负责人: MANAGER_ID
*/
public void setManagerId(java.lang.String value){
public final void setManagerId(java.lang.String value){
if(onPropSet(PROP_ID_managerId,value)){
this._managerId = value;
internalClearRefs(PROP_ID_managerId);
Expand All @@ -717,15 +717,15 @@ public void setManagerId(java.lang.String value){
/**
* 邮件: EMAIL
*/
public java.lang.String getEmail(){
public final java.lang.String getEmail(){
onPropGet(PROP_ID_email);
return _email;
}

/**
* 邮件: EMAIL
*/
public void setEmail(java.lang.String value){
public final void setEmail(java.lang.String value){
if(onPropSet(PROP_ID_email,value)){
this._email = value;
internalClearRefs(PROP_ID_email);
Expand All @@ -736,15 +736,15 @@ public void setEmail(java.lang.String value){
/**
* 电话: PHONE
*/
public java.lang.String getPhone(){
public final java.lang.String getPhone(){
onPropGet(PROP_ID_phone);
return _phone;
}

/**
* 电话: PHONE
*/
public void setPhone(java.lang.String value){
public final void setPhone(java.lang.String value){
if(onPropSet(PROP_ID_phone,value)){
this._phone = value;
internalClearRefs(PROP_ID_phone);
Expand All @@ -755,15 +755,15 @@ public void setPhone(java.lang.String value){
/**
* 删除标识: DEL_FLAG
*/
public java.lang.Byte getDelFlag(){
public final java.lang.Byte getDelFlag(){
onPropGet(PROP_ID_delFlag);
return _delFlag;
}

/**
* 删除标识: DEL_FLAG
*/
public void setDelFlag(java.lang.Byte value){
public final void setDelFlag(java.lang.Byte value){
if(onPropSet(PROP_ID_delFlag,value)){
this._delFlag = value;
internalClearRefs(PROP_ID_delFlag);
Expand All @@ -774,15 +774,15 @@ public void setDelFlag(java.lang.Byte value){
/**
* 数据版本: VERSION
*/
public java.lang.Integer getVersion(){
public final java.lang.Integer getVersion(){
onPropGet(PROP_ID_version);
return _version;
}

/**
* 数据版本: VERSION
*/
public void setVersion(java.lang.Integer value){
public final void setVersion(java.lang.Integer value){
if(onPropSet(PROP_ID_version,value)){
this._version = value;
internalClearRefs(PROP_ID_version);
Expand All @@ -793,15 +793,15 @@ public void setVersion(java.lang.Integer value){
/**
* 创建人: CREATED_BY
*/
public java.lang.String getCreatedBy(){
public final java.lang.String getCreatedBy(){
onPropGet(PROP_ID_createdBy);
return _createdBy;
}

/**
* 创建人: CREATED_BY
*/
public void setCreatedBy(java.lang.String value){
public final void setCreatedBy(java.lang.String value){
if(onPropSet(PROP_ID_createdBy,value)){
this._createdBy = value;
internalClearRefs(PROP_ID_createdBy);
Expand All @@ -812,15 +812,15 @@ public void setCreatedBy(java.lang.String value){
/**
* 创建时间: CREATE_TIME
*/
public java.sql.Timestamp getCreateTime(){
public final java.sql.Timestamp getCreateTime(){
onPropGet(PROP_ID_createTime);
return _createTime;
}

/**
* 创建时间: CREATE_TIME
*/
public void setCreateTime(java.sql.Timestamp value){
public final void setCreateTime(java.sql.Timestamp value){
if(onPropSet(PROP_ID_createTime,value)){
this._createTime = value;
internalClearRefs(PROP_ID_createTime);
Expand All @@ -831,15 +831,15 @@ public void setCreateTime(java.sql.Timestamp value){
/**
* 修改人: UPDATED_BY
*/
public java.lang.String getUpdatedBy(){
public final java.lang.String getUpdatedBy(){
onPropGet(PROP_ID_updatedBy);
return _updatedBy;
}

/**
* 修改人: UPDATED_BY
*/
public void setUpdatedBy(java.lang.String value){
public final void setUpdatedBy(java.lang.String value){
if(onPropSet(PROP_ID_updatedBy,value)){
this._updatedBy = value;
internalClearRefs(PROP_ID_updatedBy);
Expand All @@ -850,15 +850,15 @@ public void setUpdatedBy(java.lang.String value){
/**
* 修改时间: UPDATE_TIME
*/
public java.sql.Timestamp getUpdateTime(){
public final java.sql.Timestamp getUpdateTime(){
onPropGet(PROP_ID_updateTime);
return _updateTime;
}

/**
* 修改时间: UPDATE_TIME
*/
public void setUpdateTime(java.sql.Timestamp value){
public final void setUpdateTime(java.sql.Timestamp value){
if(onPropSet(PROP_ID_updateTime,value)){
this._updateTime = value;
internalClearRefs(PROP_ID_updateTime);
Expand All @@ -869,15 +869,15 @@ public void setUpdateTime(java.sql.Timestamp value){
/**
* 备注: REMARK
*/
public java.lang.String getRemark(){
public final java.lang.String getRemark(){
onPropGet(PROP_ID_remark);
return _remark;
}

/**
* 备注: REMARK
*/
public void setRemark(java.lang.String value){
public final void setRemark(java.lang.String value){
if(onPropSet(PROP_ID_remark,value)){
this._remark = value;
internalClearRefs(PROP_ID_remark);
Expand All @@ -888,11 +888,11 @@ public void setRemark(java.lang.String value){
/**
* 父资源
*/
public io.nop.auth.dao.entity.NopAuthDept getParent(){
public final io.nop.auth.dao.entity.NopAuthDept getParent(){
return (io.nop.auth.dao.entity.NopAuthDept)internalGetRefEntity(PROP_NAME_parent);
}

public void setParent(io.nop.auth.dao.entity.NopAuthDept refEntity){
public final void setParent(io.nop.auth.dao.entity.NopAuthDept refEntity){

if(refEntity == null){

Expand All @@ -911,11 +911,11 @@ public void setParent(io.nop.auth.dao.entity.NopAuthDept refEntity){
/**
* 部门负责人
*/
public io.nop.auth.dao.entity.NopAuthUser getManager(){
public final io.nop.auth.dao.entity.NopAuthUser getManager(){
return (io.nop.auth.dao.entity.NopAuthUser)internalGetRefEntity(PROP_NAME_manager);
}

public void setManager(io.nop.auth.dao.entity.NopAuthUser refEntity){
public final void setManager(io.nop.auth.dao.entity.NopAuthUser refEntity){

if(refEntity == null){

Expand All @@ -937,7 +937,7 @@ public void setManager(io.nop.auth.dao.entity.NopAuthUser refEntity){
/**
* 部门用户。 refPropName: dept, keyProp: {rel.keyProp}
*/
public IOrmEntitySet<io.nop.auth.dao.entity.NopAuthUser> getDeptUsers(){
public final IOrmEntitySet<io.nop.auth.dao.entity.NopAuthUser> getDeptUsers(){
return _deptUsers;
}

Expand All @@ -947,7 +947,7 @@ public IOrmEntitySet<io.nop.auth.dao.entity.NopAuthUser> getDeptUsers(){
/**
* 子资源。 refPropName: parent, keyProp: {rel.keyProp}
*/
public IOrmEntitySet<io.nop.auth.dao.entity.NopAuthDept> getChildren(){
public final IOrmEntitySet<io.nop.auth.dao.entity.NopAuthDept> getChildren(){
return _children;
}

Expand All @@ -957,15 +957,15 @@ public IOrmEntitySet<io.nop.auth.dao.entity.NopAuthDept> getChildren(){
/**
* 分组映射。 refPropName: dept, keyProp: {rel.keyProp}
*/
public IOrmEntitySet<io.nop.auth.dao.entity.NopAuthGroupDept> getGroupMappings(){
public final IOrmEntitySet<io.nop.auth.dao.entity.NopAuthGroupDept> getGroupMappings(){
return _groupMappings;
}

public List<io.nop.auth.dao.entity.NopAuthGroup> getRelatedGroupList(){
public final List<io.nop.auth.dao.entity.NopAuthGroup> getRelatedGroupList(){
return (List<io.nop.auth.dao.entity.NopAuthGroup>)io.nop.orm.support.OrmEntityHelper.getRefProps(getGroupMappings(),"group");
}

public List<String> getRelatedGroupList_ids(){
public final List<String> getRelatedGroupList_ids(){
return io.nop.orm.support.OrmEntityHelper.getRefIds(getGroupMappings(),"group");
}

Expand All @@ -974,7 +974,7 @@ public void setRelatedGroupList_ids(List<String> value){
}


public String getRelatedGroupList_label(){
public final String getRelatedGroupList_label(){
return io.nop.orm.support.OrmEntityHelper.getLabelForRefProps(getGroupMappings(),"group");
}

Expand Down
Loading

0 comments on commit 9ec177d

Please sign in to comment.