This is an automated email from the ASF dual-hosted git repository.

pradeep pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b97613  RANGER-3376: Add policy_guid column in x_policy_change_log 
table
4b97613 is described below

commit 4b97613503197f906ff6fe5b7d9c6ac7470ccc0a
Author: pradeep <[email protected]>
AuthorDate: Mon Aug 23 16:05:56 2021 +0530

    RANGER-3376: Add policy_guid column in x_policy_change_log table
---
 .../optimized/current/ranger_core_db_mysql.sql     |  2 ++
 .../056-add-policyguid-in-x_policy_change_log.sql  | 29 ++++++++++++++++++++
 .../optimized/current/ranger_core_db_oracle.sql    |  2 ++
 .../056-add-policyguid-in-x_policy_change_log.sql  | 24 ++++++++++++++++
 .../optimized/current/ranger_core_db_postgres.sql  |  2 ++
 .../056-add-policyguid-in-x_policy_change_log.sql  | 32 ++++++++++++++++++++++
 .../current/ranger_core_db_sqlanywhere.sql         |  5 +++-
 .../056-add-policyguid-in-x_policy_change_log.sql  | 20 ++++++++++++++
 .../optimized/current/ranger_core_db_sqlserver.sql |  2 ++
 .../056-add-policyguid-in-x_policy_change_log.sql  | 22 +++++++++++++++
 .../java/org/apache/ranger/biz/ServiceDBStore.java |  1 +
 .../apache/ranger/entity/XXPolicyChangeLog.java    | 15 +++++++++-
 12 files changed, 154 insertions(+), 2 deletions(-)

diff --git a/security-admin/db/mysql/optimized/current/ranger_core_db_mysql.sql 
b/security-admin/db/mysql/optimized/current/ranger_core_db_mysql.sql
index d5d8129..8e925e5 100644
--- a/security-admin/db/mysql/optimized/current/ranger_core_db_mysql.sql
+++ b/security-admin/db/mysql/optimized/current/ranger_core_db_mysql.sql
@@ -1450,6 +1450,7 @@ CREATE TABLE IF NOT EXISTS `x_policy_change_log` (
 `policy_type` int(11) NULL DEFAULT NULL,
 `zone_name` varchar(256) NULL DEFAULT NULL,
 `policy_id` bigint(20) NULL DEFAULT NULL,
+`policy_guid` varchar(1024) NULL DEFAULT NULL,
 primary key (`id`)
 ) ROW_FORMAT=DYNAMIC;
 
@@ -1738,6 +1739,7 @@ INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('052',UTC_TIMESTAMP(),'Ranger 1.0.0',UTC_TIMESTAMP(),'localhost','Y');
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('054',UTC_TIMESTAMP(),'Ranger 1.0.0',UTC_TIMESTAMP(),'localhost','Y');
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('055',UTC_TIMESTAMP(),'Ranger 1.0.0',UTC_TIMESTAMP(),'localhost','Y');
+INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('056',UTC_TIMESTAMP(),'Ranger 1.0.0',UTC_TIMESTAMP(),'localhost','Y');
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('DB_PATCHES',UTC_TIMESTAMP(),'Ranger 1.0.0',UTC_TIMESTAMP(),'localhost','Y');
 
 INSERT INTO x_user_module_perm 
(user_id,module_id,create_time,update_time,added_by_id,upd_by_id,is_allowed)
diff --git 
a/security-admin/db/mysql/patches/056-add-policyguid-in-x_policy_change_log.sql 
b/security-admin/db/mysql/patches/056-add-policyguid-in-x_policy_change_log.sql
new file mode 100644
index 0000000..8a6909d
--- /dev/null
+++ 
b/security-admin/db/mysql/patches/056-add-policyguid-in-x_policy_change_log.sql
@@ -0,0 +1,29 @@
+-- Licensed to the Apache Software Foundation (ASF) under one or more
+-- contributor license agreements.  See the NOTICE file distributed with
+-- this work for additional information regarding copyright ownership.
+-- The ASF licenses this file to You under the Apache License, Version 2.0
+-- (the "License"); you may not use this file except in compliance with
+-- the License.  You may obtain a copy of the License at
+--
+--     http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+
+drop procedure if exists add_policyguid_in_x_policy_change_log;
+
+delimiter ;;
+create procedure add_policyguid_in_x_policy_change_log() begin
+
+if not exists (select * from information_schema.columns where 
table_schema=database() and table_name = 'x_policy_change_log' and 
column_name='policy_guid') then
+        ALTER TABLE x_policy_change_log ADD policy_guid varchar(1024) NULL 
DEFAULT NULL;
+end if;
+
+end;;
+
+delimiter ;
+
+call add_policyguid_in_x_policy_change_log();
diff --git 
a/security-admin/db/oracle/optimized/current/ranger_core_db_oracle.sql 
b/security-admin/db/oracle/optimized/current/ranger_core_db_oracle.sql
index 2210a2a..638d9fb 100644
--- a/security-admin/db/oracle/optimized/current/ranger_core_db_oracle.sql
+++ b/security-admin/db/oracle/optimized/current/ranger_core_db_oracle.sql
@@ -1507,6 +1507,7 @@ service_type VARCHAR(256) DEFAULT NULL NULL,
 policy_type NUMBER(11) DEFAULT NULL NULL,
 zone_name VARCHAR(256) DEFAULT NULL NULL,
 policy_id NUMBER(20) DEFAULT NULL NULL,
+policy_guid VARCHAR(1024) DEFAULT NULL NULL,
  PRIMARY KEY (id)
 );
 CREATE INDEX x_plcy_chng_log_IDX_service_id ON x_policy_change_log(service_id);
@@ -1963,6 +1964,7 @@ INSERT INTO x_db_version_h 
(id,version,inst_at,inst_by,updated_at,updated_by,act
 INSERT INTO x_db_version_h 
(id,version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
(X_DB_VERSION_H_SEQ.nextval, '052',sys_extract_utc(systimestamp),'Ranger 
1.0.0',sys_extract_utc(systimestamp),'localhost','Y');
 INSERT INTO x_db_version_h 
(id,version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
(X_DB_VERSION_H_SEQ.nextval, '054',sys_extract_utc(systimestamp),'Ranger 
1.0.0',sys_extract_utc(systimestamp),'localhost','Y');
 INSERT INTO x_db_version_h 
(id,version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
(X_DB_VERSION_H_SEQ.nextval, '055',sys_extract_utc(systimestamp),'Ranger 
1.0.0',sys_extract_utc(systimestamp),'localhost','Y');
+INSERT INTO x_db_version_h 
(id,version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
(X_DB_VERSION_H_SEQ.nextval, '056',sys_extract_utc(systimestamp),'Ranger 
1.0.0',sys_extract_utc(systimestamp),'localhost','Y');
 INSERT INTO x_db_version_h 
(id,version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
(X_DB_VERSION_H_SEQ.nextval, 'DB_PATCHES',sys_extract_utc(systimestamp),'Ranger 
1.0.0',sys_extract_utc(systimestamp),'localhost','Y');
 
 INSERT INTO x_user_module_perm 
(id,user_id,module_id,create_time,update_time,added_by_id,upd_by_id,is_allowed) 
VALUES 
(X_USER_MODULE_PERM_SEQ.nextval,getXportalUIdByLoginId('admin'),getModulesIdByName('Reports'),sys_extract_utc(systimestamp),sys_extract_utc(systimestamp),getXportalUIdByLoginId('admin'),getXportalUIdByLoginId('admin'),1);
diff --git 
a/security-admin/db/oracle/patches/056-add-policyguid-in-x_policy_change_log.sql
 
b/security-admin/db/oracle/patches/056-add-policyguid-in-x_policy_change_log.sql
new file mode 100644
index 0000000..c59e4d4
--- /dev/null
+++ 
b/security-admin/db/oracle/patches/056-add-policyguid-in-x_policy_change_log.sql
@@ -0,0 +1,24 @@
+-- Licensed to the Apache Software Foundation (ASF) under one or more
+-- contributor license agreements.  See the NOTICE file distributed with
+-- this work for additional information regarding copyright ownership.
+-- The ASF licenses this file to You under the Apache License, Version 2.0
+-- (the "License"); you may not use this file except in compliance with
+-- the License.  You may obtain a copy of the License at
+--
+--     http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+
+DECLARE
+        v_count number:=0;
+BEGIN
+        select count(*) into v_count from user_tab_cols where 
table_name='X_POLICY_CHANGE_LOG' and column_name='policy_guid';
+        if (v_count = 0) then
+                execute immediate 'ALTER TABLE X_POLICY_CHANGE_LOG ADD 
policy_guid VARCHAR(1024) DEFAULT NULL NULL';
+        end if;
+        commit;
+END;/
diff --git 
a/security-admin/db/postgres/optimized/current/ranger_core_db_postgres.sql 
b/security-admin/db/postgres/optimized/current/ranger_core_db_postgres.sql
index 25fe2bf..500e83f 100644
--- a/security-admin/db/postgres/optimized/current/ranger_core_db_postgres.sql
+++ b/security-admin/db/postgres/optimized/current/ranger_core_db_postgres.sql
@@ -1469,6 +1469,7 @@ service_type varchar(256) DEFAULT NULL NULL,
 policy_type int DEFAULT NULL NULL,
 zone_name varchar(256) DEFAULT NULL NULL,
 policy_id bigint DEFAULT NULL NULL,
+policy_guid varchar(1024) DEFAULT NULL NULL,
 primary key (id),
 CONSTRAINT x_policy_change_log_uk_service_id_policy_version UNIQUE(service_id, 
policy_version)
 );
@@ -1886,6 +1887,7 @@ INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('052',current_timestamp,'Ranger 1.0.0',current_timestamp,'localhost','Y');
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('054',current_timestamp,'Ranger 1.0.0',current_timestamp,'localhost','Y');
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('055',current_timestamp,'Ranger 1.0.0',current_timestamp,'localhost','Y');
+INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('056',current_timestamp,'Ranger 1.0.0',current_timestamp,'localhost','Y');
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('DB_PATCHES',current_timestamp,'Ranger 
1.0.0',current_timestamp,'localhost','Y');
 
 INSERT INTO x_user_module_perm 
(user_id,module_id,create_time,update_time,added_by_id,upd_by_id,is_allowed) 
VALUES
diff --git 
a/security-admin/db/postgres/patches/056-add-policyguid-in-x_policy_change_log.sql
 
b/security-admin/db/postgres/patches/056-add-policyguid-in-x_policy_change_log.sql
new file mode 100644
index 0000000..3630053
--- /dev/null
+++ 
b/security-admin/db/postgres/patches/056-add-policyguid-in-x_policy_change_log.sql
@@ -0,0 +1,32 @@
+-- Licensed to the Apache Software Foundation (ASF) under one or more
+-- contributor license agreements.  See the NOTICE file distributed with
+-- this work for additional information regarding copyright ownership.
+-- The ASF licenses this file to You under the Apache License, Version 2.0
+-- (the "License"); you may not use this file except in compliance with
+-- the License.  You may obtain a copy of the License at
+--
+--     http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+
+select 'delimiter start';
+CREATE OR REPLACE FUNCTION add_policyguid_in_x_policy_change_log()
+RETURNS void AS $$
+DECLARE
+ v_column_exists integer := 0;
+BEGIN
+ select count(*) into v_column_exists from pg_attribute where attrelid 
in(select oid from pg_class where relname='x_policy_change_log') and 
attname='policy_guid';
+ IF v_column_exists = 0 THEN
+  ALTER TABLE x_policy_change_log ADD COLUMN policy_guid VARCHAR(1024) DEFAULT 
NULL NULL;
+ END IF;
+END;
+$$ LANGUAGE plpgsql;
+select 'delimiter end';
+
+select add_policyguid_in_x_policy_change_log();
+select 'delimiter end';
+commit;
diff --git 
a/security-admin/db/sqlanywhere/optimized/current/ranger_core_db_sqlanywhere.sql
 
b/security-admin/db/sqlanywhere/optimized/current/ranger_core_db_sqlanywhere.sql
index cbc5d73..0048e50 100644
--- 
a/security-admin/db/sqlanywhere/optimized/current/ranger_core_db_sqlanywhere.sql
+++ 
b/security-admin/db/sqlanywhere/optimized/current/ranger_core_db_sqlanywhere.sql
@@ -1229,7 +1229,8 @@ CREATE TABLE dbo.x_policy_change_log(
         service_type varchar(256) DEFAULT NULL NULL,
         policy_type int DEFAULT NULL NULL,
         zone_name varchar(256) DEFAULT NULL NULL,
-                   policy_id bigint DEFAULT NULL NULL,
+        policy_id bigint DEFAULT NULL NULL,
+        policy_guid varchar(1024) DEFAULT NULL NULL,
         CONSTRAINT x_policy_change_log_PK_id PRIMARY KEY CLUSTERED(id)
 )
 GO
@@ -2252,6 +2253,8 @@ INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active
 GO
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('055',CURRENT_TIMESTAMP,'Ranger 1.0.0',CURRENT_TIMESTAMP,'localhost','Y');
 GO
+INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('056',CURRENT_TIMESTAMP,'Ranger 1.0.0',CURRENT_TIMESTAMP,'localhost','Y');
+GO
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('DB_PATCHES',CURRENT_TIMESTAMP,'Ranger 
1.0.0',CURRENT_TIMESTAMP,'localhost','Y');
 GO
 INSERT INTO x_user_module_perm 
(user_id,module_id,create_time,update_time,added_by_id,upd_by_id,is_allowed) 
VALUES 
(dbo.getXportalUIdByLoginId('admin'),dbo.getModulesIdByName('Reports'),CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,dbo.getXportalUIdByLoginId('admin'),dbo.getXportalUIdByLoginId('admin'),1);
diff --git 
a/security-admin/db/sqlanywhere/patches/056-add-policyguid-in-x_policy_change_log.sql
 
b/security-admin/db/sqlanywhere/patches/056-add-policyguid-in-x_policy_change_log.sql
new file mode 100644
index 0000000..f9947fc
--- /dev/null
+++ 
b/security-admin/db/sqlanywhere/patches/056-add-policyguid-in-x_policy_change_log.sql
@@ -0,0 +1,20 @@
+-- Licensed to the Apache Software Foundation (ASF) under one or more
+-- contributor license agreements.  See the NOTICE file distributed with
+-- this work for additional information regarding copyright ownership.
+-- The ASF licenses this file to You under the Apache License, Version 2.0
+-- (the "License"); you may not use this file except in compliance with
+-- the License.  You may obtain a copy of the License at
+--
+--     http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+
+IF NOT EXISTS(select * from SYS.SYSCOLUMNS where tname = 'x_policy_change_log' 
and cname = 'policy_guid') THEN
+    ALTER TABLE dbo.x_policy_change_log ADD policy_guid varchar(1024) DEFAULT 
NULL NULL;
+END IF;
+GO
+exit
\ No newline at end of file
diff --git 
a/security-admin/db/sqlserver/optimized/current/ranger_core_db_sqlserver.sql 
b/security-admin/db/sqlserver/optimized/current/ranger_core_db_sqlserver.sql
index a87692e..4d892f6 100644
--- a/security-admin/db/sqlserver/optimized/current/ranger_core_db_sqlserver.sql
+++ b/security-admin/db/sqlserver/optimized/current/ranger_core_db_sqlserver.sql
@@ -2419,6 +2419,7 @@ CREATE TABLE [dbo].[x_policy_change_log](
         [policy_type] [int] DEFAULT NULL NULL,
         [zone_name] [varchar](256) DEFAULT NULL NULL,
         [policy_id] [bigint]  DEFAULT NULL NULL,
+        [policy_guid] [varchar](1024) DEFAULT NULL NULL,
         PRIMARY KEY CLUSTERED
 (
         [id] ASC
@@ -4099,6 +4100,7 @@ INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('053',CURRENT_TIMESTAMP,'Ranger 1.0.0',CURRENT_TIMESTAMP,'localhost','Y');
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('054',CURRENT_TIMESTAMP,'Ranger 1.0.0',CURRENT_TIMESTAMP,'localhost','Y');
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('055',CURRENT_TIMESTAMP,'Ranger 1.0.0',CURRENT_TIMESTAMP,'localhost','Y');
+INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('056',CURRENT_TIMESTAMP,'Ranger 1.0.0',CURRENT_TIMESTAMP,'localhost','Y');
 INSERT INTO x_db_version_h 
(version,inst_at,inst_by,updated_at,updated_by,active) VALUES 
('DB_PATCHES',CURRENT_TIMESTAMP,'Ranger 
1.0.0',CURRENT_TIMESTAMP,'localhost','Y');
 INSERT INTO x_user_module_perm 
(user_id,module_id,create_time,update_time,added_by_id,upd_by_id,is_allowed) 
VALUES 
(dbo.getXportalUIdByLoginId('admin'),dbo.getModulesIdByName('Reports'),CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,dbo.getXportalUIdByLoginId('admin'),dbo.getXportalUIdByLoginId('admin'),1);
 INSERT INTO x_user_module_perm 
(user_id,module_id,create_time,update_time,added_by_id,upd_by_id,is_allowed) 
VALUES (dbo.getXportalUIdByLoginId('admin'),dbo.getModulesIdByName('Resource 
Based 
Policies'),CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,dbo.getXportalUIdByLoginId('admin'),dbo.getXportalUIdByLoginId('admin'),1);
diff --git 
a/security-admin/db/sqlserver/patches/056-add-policyguid-in-x_policy_change_log.sql
 
b/security-admin/db/sqlserver/patches/056-add-policyguid-in-x_policy_change_log.sql
new file mode 100644
index 0000000..d2e56a5
--- /dev/null
+++ 
b/security-admin/db/sqlserver/patches/056-add-policyguid-in-x_policy_change_log.sql
@@ -0,0 +1,22 @@
+-- Licensed to the Apache Software Foundation (ASF) under one or more
+-- contributor license agreements.  See the NOTICE file distributed with
+-- this work for additional information regarding copyright ownership.
+-- The ASF licenses this file to You under the Apache License, Version 2.0
+-- (the "License"); you may not use this file except in compliance with
+-- the License.  You may obtain a copy of the License at
+--
+--     http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+
+GO
+IF NOT EXISTS(select * from INFORMATION_SCHEMA.columns where table_name = 
'x_policy_change_log' and column_name = 'policy_guid')
+BEGIN
+        ALTER TABLE [dbo].[x_policy_change_log] ADD [policy_guid] 
[varchar](1024) DEFAULT NULL NULL;
+END
+GO
+exit
\ No newline at end of file
diff --git 
a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java 
b/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
index b9a926b..5cb983a 100644
--- a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
+++ b/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
@@ -3745,6 +3745,7 @@ public class ServiceDBStore extends AbstractServiceStore {
                                        
policyChangeLog.setServiceType(policy.getServiceType());
                                        
policyChangeLog.setPolicyType(policy.getPolicyType());
                                        
policyChangeLog.setPolicyId(policy.getId());
+                                       
policyChangeLog.setPolicyGuid(policy.getGuid());
                                }
 
                                
serviceVersionUpdater.daoManager.getXXPolicyChangeLog().create(policyChangeLog);
diff --git 
a/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyChangeLog.java 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyChangeLog.java
index bc48d4a..8c95fb9 100644
--- 
a/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyChangeLog.java
+++ 
b/security-admin/src/main/java/org/apache/ranger/entity/XXPolicyChangeLog.java
@@ -77,6 +77,9 @@ public class XXPolicyChangeLog implements 
java.io.Serializable {
        @Column(name = "policy_id")
        protected Long policyId;
 
+       @Column(name = "policy_guid")
+       protected String policyGuid;
+
     /**
      * Default constructor. This will set all the attributes to default value.
      */
@@ -155,6 +158,14 @@ public class XXPolicyChangeLog implements 
java.io.Serializable {
                this.policyId = policyId;
        }
 
+       public String getPolicyGuid() {
+               return this.policyGuid;
+       }
+
+       public void setPolicyGuid(String policyGuid) {
+               this.policyGuid = policyGuid;
+       }
+
     /**
      * This return the bean content in string format
      * @return formatedStr
@@ -171,6 +182,7 @@ public class XXPolicyChangeLog implements 
java.io.Serializable {
         str += "policyType={" + policyType + "} ";
         str += "zoneName={" + zoneName + "} ";
         str += "policyId={" + policyId + "} ";
+        str += "policyGuid={" + policyGuid + "} ";
         str += "}";
         return str;
     }
@@ -194,7 +206,8 @@ public class XXPolicyChangeLog implements 
java.io.Serializable {
 
         return Objects.equals(this.id, other.id) && 
Objects.equals(this.serviceId, other.serviceId) && 
Objects.equals(this.policyVersion, other.policyVersion)
                 && Objects.equals(this.createTime, other.createTime) && 
Objects.equals(this.changeType, other.changeType) && 
Objects.equals(this.serviceType, other.serviceType)
-                && Objects.equals(this.policyType, other.policyType) && 
Objects.equals(this.zoneName, other.zoneName) && Objects.equals(this.policyId, 
other.policyId);
+                && Objects.equals(this.policyType, other.policyType) && 
Objects.equals(this.zoneName, other.zoneName) && Objects.equals(this.policyId, 
other.policyId)
+                && Objects.equals(this.policyGuid, other.policyGuid);
     }
 
 }

Reply via email to