diff --git a/migration/iD10/oracle/202307100913_IDEMPIERE-5796.sql b/migration/iD10/oracle/202307100913_IDEMPIERE-5796.sql new file mode 100644 index 0000000000..0669d3ecd3 --- /dev/null +++ b/migration/iD10/oracle/202307100913_IDEMPIERE-5796.sql @@ -0,0 +1,357 @@ +-- IDEMPIERE-5796 +SELECT register_migration_script('202307100913_IDEMPIERE-5796.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Jul 10, 2023, 9:15:43 AM CEST +INSERT INTO AD_Table (AD_Table_ID,Name,TableName,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,IsChangeLog,ReplicationType,AD_Table_UU,Processing) VALUES (200387,'Model Generator Template','AD_ModelGeneratorTemplate','4',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:43','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:43','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','N','N','D','Y','L','fbc5362f-9360-44d9-b6d1-e10d197fcc01','N') +; + +-- Jul 10, 2023, 9:15:44 AM CEST +INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('AD_ModelGeneratorTemplate',1000000,'N','N','Table AD_ModelGeneratorTemplate','Y','Y',0,0,TO_TIMESTAMP('2023-07-10 09:15:43','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:43','YYYY-MM-DD HH24:MI:SS'),10,200457,'Y',1000000,1,200000,'af959e08-417e-4561-8ace-974ecb4cd415') +; + +-- Jul 10, 2023, 9:15:44 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,ReadOnlyLogic,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215872,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200387,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','1=1','D','N','eb232dae-420d-452e-8b10-303b2590684e','N') +; + +-- Jul 10, 2023, 9:15:44 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215873,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200387,'AD_Org_ID','@AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','07d892af-f0e5-4717-a073-e4240395a777','N') +; + +-- Jul 10, 2023, 9:15:45 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215874,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200387,'Created',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','736c88f9-45f5-4ec5-853b-13728a0c436b','N') +; + +-- Jul 10, 2023, 9:15:45 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215875,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200387,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','e8562639-5070-41b0-834d-a1a97054fd08','N') +; + +-- Jul 10, 2023, 9:15:45 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215876,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200387,'Updated',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','cc0521c8-05b3-4c26-a59f-df425551298c','N') +; + +-- Jul 10, 2023, 9:15:46 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215877,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200387,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','42da35ed-8b6c-4fe0-86c2-20d8cec61ffa','N') +; + +-- Jul 10, 2023, 9:15:46 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215878,0.0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200387,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','379d922c-1453-4f0a-bfd0-7442a46dc472','N') +; + +-- Jul 10, 2023, 9:15:46 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,PrintName,EntityType,AD_Element_UU) VALUES (203815,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,'AD_ModelGeneratorTemplate_ID','Model Generator Template',NULL,'Model Generator Template','D','0511f2b4-1846-4b91-aee1-fce177c6c0e2') +; + +-- Jul 10, 2023, 9:15:47 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215879,0.0,'Model Generator Template',200387,'AD_ModelGeneratorTemplate_ID',22,'Y','N','Y','N','N','N',13,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,203815,'N','N','D','N','fbc50caa-e280-496d-b28e-9b609c4d781b','N') +; + +-- Jul 10, 2023, 9:15:47 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203816,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,'AD_ModelGeneratorTemplate_UU','AD_ModelGeneratorTemplate_UU','AD_ModelGeneratorTemplate_UU','D','4fb0795c-575e-42b1-84dd-33e4b35aabbf') +; + +-- Jul 10, 2023, 9:15:47 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215880,0.0,'AD_ModelGeneratorTemplate_UU',200387,'AD_ModelGeneratorTemplate_UU',36,'N','N','N','N','N','N',200231,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,203816,'Y','N','D','N','c6a5fbd5-9cb6-49dd-9e94-e1781f9a6662','N') +; + +-- Jul 10, 2023, 9:15:47 AM CEST +INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Table_ID,IsCreateConstraint,IsUnique,Processing,IsKey) VALUES (0,0,201256,'fe454d8b-b7ec-4004-b128-4463f6776625',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','AD_ModelGeneratorTemplate_uu_idx',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,200387,'Y','Y','N','N') +; + +-- Jul 10, 2023, 9:15:48 AM CEST +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201698,'7def4c90-cf49-454d-a712-c1483dc7f9a7',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,215880,201256,10) +; + +-- Jul 10, 2023, 9:15:48 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,SeqNoSelection,IsToolbarButton) VALUES (215881,0.0,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200387,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:48','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','ffb6f4b3-a5eb-4dbc-b145-79f6577028e8',10,'N') +; + +-- Jul 10, 2023, 9:16:17 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215882,0,'Folder','A folder on a local or remote system to store data into','We store files in folders, especially media files.',200387,'Folder',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:16:16','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:16:16','YYYY-MM-DD HH24:MI:SS'),10,3012,'Y','N','D','N','N','N','Y','0921ecb7-602b-4a3f-bb7a-d40833311206','Y',0,'N','N','N') +; + +-- Jul 10, 2023, 9:16:37 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,MandatoryLogic,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (215883,0,'DB Table Name','Name of the table in the database','The DB Table Name indicates the name of the table in database.',200387,'TableName',60,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:16:37','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:16:37','YYYY-MM-DD HH24:MI:SS'),10,587,'Y','Y','D','N','N',NULL,'N','Y','bc675bac-63a6-4f20-be07-b0bd1a44237c','Y',20,'N','N','N','N') +; + +-- Jul 10, 2023, 9:16:50 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203817,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:16:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:16:44','YYYY-MM-DD HH24:MI:SS'),10,'ColumnEntityType','Column Entity Type',NULL,NULL,'Column Entity Type','D','22ad1194-cfdc-4582-bd51-a2d7a4a46f14') +; + +-- Jul 10, 2023, 9:17:03 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215884,0,'Column Entity Type',200387,'ColumnEntityType',20,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:03','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:03','YYYY-MM-DD HH24:MI:SS'),10,203817,'Y','N','D','N','N','N','Y','420b64ca-4e0a-4a8b-8488-08381bbe94df','Y',0,'N','N','N') +; + +-- Jul 10, 2023, 9:17:26 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203818,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:17','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:17','YYYY-MM-DD HH24:MI:SS'),10,'PackageName','Package Name',NULL,NULL,'Package Name','D','262c6963-8b1e-4d7d-9c20-98be2868f4f5') +; + +-- Jul 10, 2023, 9:17:34 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215885,0,'Package Name',200387,'PackageName',60,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:33','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:33','YYYY-MM-DD HH24:MI:SS'),10,203818,'Y','N','D','N','N','N','Y','76784d8d-5d05-48eb-b96e-6a63386e3215','Y',0,'N','N','N') +; + +-- Jul 10, 2023, 9:17:47 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203819,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:40','YYYY-MM-DD HH24:MI:SS'),10,'TableEntityType','Table Entity Type',NULL,NULL,'Table Entity Type','D','86a1747f-f3ca-4a32-ba6b-e4461eb99f77') +; + +-- Jul 10, 2023, 9:17:52 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215886,0,'Table Entity Type',200387,'TableEntityType',20,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:52','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:52','YYYY-MM-DD HH24:MI:SS'),10,203819,'Y','N','D','N','N','N','Y','0df44055-c22d-4f63-ad7a-c8706fb2861e','Y',0,'N','N','N') +; + +-- Jul 10, 2023, 9:18:31 AM CEST +UPDATE AD_Column SET IsAllowCopy='N', FKConstraintName='ADClient_ADModelGeneratorTempl', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-07-10 09:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=215872 +; + +-- Jul 10, 2023, 9:18:31 AM CEST +UPDATE AD_Column SET IsAllowCopy='N', FKConstraintName='ADOrg_ADModelGeneratorTemplate', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-07-10 09:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=215873 +; + +-- Jul 10, 2023, 9:18:31 AM CEST +UPDATE AD_Column SET IsAllowCopy='N', FKConstraintName='CreatedBy_ADModelGeneratorTemp', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-07-10 09:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=215875 +; + +-- Jul 10, 2023, 9:18:31 AM CEST +UPDATE AD_Column SET IsAllowCopy='N', FKConstraintName='UpdatedBy_ADModelGeneratorTemp', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-07-10 09:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=215877 +; + +-- Jul 10, 2023, 9:18:31 AM CEST +CREATE TABLE AD_ModelGeneratorTemplate (AD_Client_ID NUMBER(10) NOT NULL, AD_ModelGeneratorTemplate_ID NUMBER(10) NOT NULL, AD_ModelGeneratorTemplate_UU VARCHAR2(36 CHAR) DEFAULT NULL , AD_Org_ID NUMBER(10) NOT NULL, ColumnEntityType VARCHAR2(20 CHAR) DEFAULT NULL , Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, Folder VARCHAR2(255 CHAR) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Name VARCHAR2(60 CHAR) NOT NULL, PackageName VARCHAR2(60 CHAR) DEFAULT NULL , TableEntityType VARCHAR2(20 CHAR) DEFAULT NULL , TableName VARCHAR2(60 CHAR) DEFAULT NULL , Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT AD_ModelGeneratorTemplate_Key PRIMARY KEY (AD_ModelGeneratorTemplate_ID), CONSTRAINT AD_ModelGeneratorTemplateuuidx UNIQUE (AD_ModelGeneratorTemplate_UU)) +; + +-- Jul 10, 2023, 9:18:31 AM CEST +ALTER TABLE AD_ModelGeneratorTemplate ADD CONSTRAINT ADClient_ADModelGeneratorTempl FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jul 10, 2023, 9:18:31 AM CEST +ALTER TABLE AD_ModelGeneratorTemplate ADD CONSTRAINT ADOrg_ADModelGeneratorTemplate FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jul 10, 2023, 9:18:31 AM CEST +ALTER TABLE AD_ModelGeneratorTemplate ADD CONSTRAINT CreatedBy_ADModelGeneratorTemp FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jul 10, 2023, 9:18:31 AM CEST +ALTER TABLE AD_ModelGeneratorTemplate ADD CONSTRAINT UpdatedBy_ADModelGeneratorTemp FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jul 10, 2023, 9:18:45 AM CEST +INSERT INTO AD_Window (AD_Window_ID,Name,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,WindowType,Processing,EntityType,IsSOTrx,IsDefault,IsBetaFunctionality,AD_Window_UU) VALUES (200141,'Model Generator Template',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,'M','N','D','N','N','N','03d9636a-892c-4663-8839-19618b7a0055') +; + +-- Jul 10, 2023, 9:18:45 AM CEST +INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsTranslationTab,IsReadOnly,OrderByClause,Processing,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU) VALUES (200353,'Model Generator Template',200141,10,'Y',200387,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','AD_ModelGeneratorTemplate.Name','N',0,'N','D','Y','N','1134c289-64e4-4adf-8a04-34f875147bcd') +; + +-- Jul 10, 2023, 9:18:46 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207689,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200353,215872,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','e0b49823-457d-4d52-8934-398450d5044e','N',2) +; + +-- Jul 10, 2023, 9:18:46 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,XPosition,ColumnSpan) VALUES (207690,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200353,215873,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','404401b5-1291-477a-a96e-069ca16289ca','Y','N',4,2) +; + +-- Jul 10, 2023, 9:18:46 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207691,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200353,215881,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','a37ace1d-5f41-48d3-8089-9684ea972a87','Y',10,5) +; + +-- Jul 10, 2023, 9:18:47 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207692,'Model Generator Template',200353,215879,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','3d776ac5-36e5-4549-8554-7eef75b1d618','N',2) +; + +-- Jul 10, 2023, 9:18:47 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207693,'AD_ModelGeneratorTemplate_UU',200353,215880,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','494728f1-3500-46a7-93d7-102f9d5a7eea','N',2) +; + +-- Jul 10, 2023, 9:18:47 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207694,'Folder','A folder on a local or remote system to store data into','We store files in folders, especially media files.',200353,215882,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','6534b52f-4abf-42fe-9319-49d9e7841b8d','Y',20,5) +; + +-- Jul 10, 2023, 9:18:48 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207695,'DB Table Name','Name of the table in the database','The DB Table Name indicates the name of the table in database.',200353,215883,'Y',60,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','d249d485-9152-463b-9818-ec1217007003','Y',30,5) +; + +-- Jul 10, 2023, 9:18:48 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207696,'Column Entity Type',200353,215884,'Y',20,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4a480bf9-4c34-40f8-af2a-6d767a401e2b','Y',40,2) +; + +-- Jul 10, 2023, 9:18:48 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207697,'Package Name',200353,215885,'Y',60,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','6f7e1377-39f9-4bdc-91d4-2678e966961f','Y',50,5) +; + +-- Jul 10, 2023, 9:18:49 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207698,'Table Entity Type',200353,215886,'Y',20,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','415fe084-6fb3-4419-86b5-3a6d163ae3f6','Y',60,2) +; + +-- Jul 10, 2023, 9:18:49 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207699,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200353,215878,'Y',1,90,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','640a9c98-57bf-456b-ad29-1e945d76f1f8','Y',70,2,2) +; + +-- Jul 10, 2023, 9:18:49 AM CEST +INSERT INTO AD_Menu (AD_Menu_ID,Name,Action,AD_Window_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,AD_Menu_UU) VALUES (200227,'Model Generator Template','W',200141,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','D','2064a6f0-0300-4fc5-9c91-a4252b6de727') +; + +-- Jul 10, 2023, 9:18:49 AM CEST +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', getDate(), 10, getDate(), 10,t.AD_Tree_ID, 200227, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200227) +; + +-- Jul 10, 2023, 9:18:49 AM CEST +UPDATE AD_Table SET AD_Window_ID=200141,Updated=TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200387 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=30, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207691 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, XPosition=6, ColumnSpan=1,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207699 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=50, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207694 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=60, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207695 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70, XPosition=1, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207697 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, XPosition=4,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207696 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207693 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207692 +; + +-- Jul 10, 2023, 9:20:41 AM CEST +INSERT INTO AD_Process (AD_Process_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,IsReport,Value,IsDirectPrint,Classname,AccessLevel,EntityType,Statistic_Count,Statistic_Seconds,IsBetaFunctionality,ShowHelp,CopyFromProcess,AD_Process_UU,AllowMultipleExecution) VALUES (200154,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:20:41','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:20:41','YYYY-MM-DD HH24:MI:SS'),10,'Generate Model','N','GenerateModel','N','org.idempiere.process.GenerateModel','4','D',0,0,'N','Y','N','5d3ccc79-089d-485c-af7e-b1d7e79a088a','P') +; + +-- Jul 10, 2023, 9:21:09 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200439,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:21:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:21:09','YYYY-MM-DD HH24:MI:SS'),10,'Model Generator Template',200154,10,19,'N',22,'N','AD_ModelGeneratorTemplate_ID','Y','D',203815,'205ebbbb-15d9-4b88-b51f-12dc244d3361','N','N','D','N') +; + +-- Jul 10, 2023, 9:22:35 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200440,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:22:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:22:35','YYYY-MM-DD HH24:MI:SS'),10,'Folder','A folder on a local or remote system to store data into','We store files in folders, especially media files.',200154,20,10,'N',255,'Y','Folder','Y','D',3012,'844c2ec6-8fdb-475b-be5f-b777e9d0195d','N','N','D','N') +; + +-- Jul 10, 2023, 9:22:44 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200441,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:22:43','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:22:43','YYYY-MM-DD HH24:MI:SS'),10,'DB Table Name','Name of the table in the database','The DB Table Name indicates the name of the table in database.',200154,30,10,'N',27,'Y',NULL,'TableName','Y','D',587,'6069d087-e62c-4032-aab2-77ec74fc3cd6','N','N','D','N') +; + +-- Jul 10, 2023, 9:22:51 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200442,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:22:51','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:22:51','YYYY-MM-DD HH24:MI:SS'),10,'Package Name',200154,40,10,'N',60,'Y','PackageName','Y','D',203818,'7aeb8885-a5c1-4660-829b-5aa2da831274','N','N','D','N') +; + +-- Jul 10, 2023, 9:22:59 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200443,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:22:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:22:58','YYYY-MM-DD HH24:MI:SS'),10,'Table Entity Type',200154,50,10,'N',20,'Y','TableEntityType','Y','D',203819,'ce80d469-64fa-425a-b95f-975c315fd9c2','N','N','D','N') +; + +-- Jul 10, 2023, 9:23:04 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200444,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:23:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:23:04','YYYY-MM-DD HH24:MI:SS'),10,'Column Entity Type',200154,60,10,'N',20,'N','ColumnEntityType','Y','D',203817,'e7cc8411-1c55-40f7-b11c-1c5edc48b1cb','N','N','D','N') +; + +-- Jul 10, 2023, 9:23:51 AM CEST +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=38,Updated=TO_TIMESTAMP('2023-07-10 09:23:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200227 +; + +-- Jul 10, 2023, 9:23:51 AM CEST +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=39,Updated=TO_TIMESTAMP('2023-07-10 09:23:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- Jul 10, 2023, 9:24:07 AM CEST +INSERT INTO AD_Menu (AD_Menu_ID,Name,Action,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,AD_Process_ID,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU) VALUES (200228,'Generate Model','P',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:24:06','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:24:06','YYYY-MM-DD HH24:MI:SS'),10,'N',200154,'N','N','D','Y','4976012a-2141-488d-a313-fe3e07cace16') +; + +-- Jul 10, 2023, 9:24:07 AM CEST +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', getDate(), 10, getDate(), 10,t.AD_Tree_ID, 200228, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200228) +; + +-- Jul 10, 2023, 9:24:34 AM CEST +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=39,Updated=TO_TIMESTAMP('2023-07-10 09:24:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200228 +; + +-- Jul 10, 2023, 9:24:34 AM CEST +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=40,Updated=TO_TIMESTAMP('2023-07-10 09:24:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- Jul 10, 2023, 9:25:38 AM CEST +INSERT INTO AD_ToolBarButton (AD_Client_ID,AD_Org_ID,Created,CreatedBy,ComponentName,IsActive,AD_ToolBarButton_ID,Name,Updated,UpdatedBy,IsCustomization,AD_ToolBarButton_UU,Action,AD_Tab_ID,AD_Process_ID,DisplayLogic,SeqNo,EntityType) VALUES (0,0,TO_TIMESTAMP('2023-07-10 09:25:38','YYYY-MM-DD HH24:MI:SS'),10,'Generate Model','Y',200130,'Generate Model',TO_TIMESTAMP('2023-07-10 09:25:38','YYYY-MM-DD HH24:MI:SS'),10,'N','377fe2bc-d17c-4952-b549-faaa88ba773e','W',100,200154,'@IsView@=N & @#DeveloperMode@ = Y',30,'D') +; + +-- Jul 10, 2023, 9:27:00 AM CEST +INSERT INTO AD_ToolBarButton (AD_Client_ID,AD_Org_ID,Created,CreatedBy,ComponentName,IsActive,AD_ToolBarButton_ID,Name,Updated,UpdatedBy,IsCustomization,AD_ToolBarButton_UU,Action,AD_Tab_ID,AD_Process_ID,DisplayLogic,SeqNo,EntityType) VALUES (0,0,TO_TIMESTAMP('2023-07-10 09:27:00','YYYY-MM-DD HH24:MI:SS'),10,'Generate Model','Y',200131,'Generate Model',TO_TIMESTAMP('2023-07-10 09:27:00','YYYY-MM-DD HH24:MI:SS'),10,'N','cb91ee8b-1271-4f45-9556-01240345b225','W',102,200154,'@ValidationType@ = L & @#DeveloperMode@ = Y',10,'D') +; + +-- Jul 12, 2023, 6:50:28 AM CEST +UPDATE AD_Process_Para SET Name='Table Like', Description='You can use % or a comma separated list of table names (case sensitive)', ColumnName='TableLike', AD_Element_ID=NULL,Updated=TO_TIMESTAMP('2023-07-12 06:50:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_Para_ID=200441 +; + +-- Jul 12, 2023, 7:03:28 AM CEST +UPDATE AD_Field SET Description=NULL, Help='You can use % or a comma separated list of table names (case sensitive) +Using ''@TableName@'' will change to current table when executing the process', IsCentrallyMaintained='N',Updated=TO_TIMESTAMP('2023-07-12 07:03:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207695 +; + +-- Jul 12, 2023, 3:52:47 PM CEST +UPDATE AD_Process_Para SET AD_Reference_ID=200162, AD_Reference_Value_ID=389,Updated=TO_TIMESTAMP('2023-07-12 15:52:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_Para_ID=200443 +; + +-- Jul 12, 2023, 3:52:55 PM CEST +UPDATE AD_Process_Para SET AD_Reference_ID=200162, AD_Reference_Value_ID=389,Updated=TO_TIMESTAMP('2023-07-12 15:52:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_Para_ID=200444 +; + +-- Jul 13, 2023, 1:55:59 PM CEST +UPDATE AD_Column SET FieldLength=2000,Updated=TO_TIMESTAMP('2023-07-13 13:55:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215883 +; + +-- Jul 13, 2023, 1:56:04 PM CEST +ALTER TABLE AD_ModelGeneratorTemplate MODIFY TableName VARCHAR2(2000 CHAR) DEFAULT NULL +; + +-- Jul 13, 2023, 1:56:50 PM CEST +UPDATE AD_Process_Para SET Description='You can use % or a comma separated list of table names enclosed within single quotes (case sensitive)', FieldLength=2000,Updated=TO_TIMESTAMP('2023-07-13 13:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200441 +; + +-- Jul 13, 2023, 2:14:18 PM CEST +UPDATE AD_Process_Para SET SeqNo=41,Updated=TO_TIMESTAMP('2023-07-13 14:14:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200441 +; + +-- Jul 13, 2023, 2:14:22 PM CEST +UPDATE AD_Process_Para SET SeqNo=30,Updated=TO_TIMESTAMP('2023-07-13 14:14:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200442 +; + +-- Jul 13, 2023, 2:14:25 PM CEST +UPDATE AD_Process_Para SET SeqNo=40,Updated=TO_TIMESTAMP('2023-07-13 14:14:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200441 +; + +-- Jul 13, 2023, 2:14:53 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203820,0,0,'Y',TO_TIMESTAMP('2023-07-13 14:14:41','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-07-13 14:14:41','YYYY-MM-DD HH24:MI:SS'),100,'IsGenerateInterface','Generate Interface',NULL,NULL,'Generate Interface','D','011f0493-36d7-4bc7-a7d8-7ac01662ba67') +; + +-- Jul 13, 2023, 2:15:07 PM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200445,0,0,'Y',TO_TIMESTAMP('2023-07-13 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-07-13 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,'Generate Interface',200154,70,20,'N',1,'Y','Y','IsGenerateInterface','Y','D',203820,'a681b7c6-56b4-465e-a750-ebd0874d308d','N','N','D','N') +; + +-- Jul 13, 2023, 2:15:23 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203821,0,0,'Y',TO_TIMESTAMP('2023-07-13 14:15:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-07-13 14:15:12','YYYY-MM-DD HH24:MI:SS'),100,'IsGenerateClass','Generate Class',NULL,NULL,'Generate Class','D','5534d687-c084-4ea7-8943-842f6ad05b2c') +; + +-- Jul 13, 2023, 2:15:33 PM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200446,0,0,'Y',TO_TIMESTAMP('2023-07-13 14:15:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-07-13 14:15:33','YYYY-MM-DD HH24:MI:SS'),100,'Generate Class',200154,80,20,'N',1,'Y','Y','IsGenerateClass','Y','D',203821,'f439bed8-22bb-4627-a9b9-8626a95844a1','N','N','D','N') +; + diff --git a/migration/iD10/postgresql/202307100913_IDEMPIERE-5796.sql b/migration/iD10/postgresql/202307100913_IDEMPIERE-5796.sql new file mode 100644 index 0000000000..ddda51087c --- /dev/null +++ b/migration/iD10/postgresql/202307100913_IDEMPIERE-5796.sql @@ -0,0 +1,354 @@ +-- IDEMPIERE-5796 +SELECT register_migration_script('202307100913_IDEMPIERE-5796.sql') FROM dual; + +-- Jul 10, 2023, 9:15:43 AM CEST +INSERT INTO AD_Table (AD_Table_ID,Name,TableName,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,IsChangeLog,ReplicationType,AD_Table_UU,Processing) VALUES (200387,'Model Generator Template','AD_ModelGeneratorTemplate','4',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:43','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:43','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','N','N','D','Y','L','fbc5362f-9360-44d9-b6d1-e10d197fcc01','N') +; + +-- Jul 10, 2023, 9:15:44 AM CEST +INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('AD_ModelGeneratorTemplate',1000000,'N','N','Table AD_ModelGeneratorTemplate','Y','Y',0,0,TO_TIMESTAMP('2023-07-10 09:15:43','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:43','YYYY-MM-DD HH24:MI:SS'),10,200457,'Y',1000000,1,200000,'af959e08-417e-4561-8ace-974ecb4cd415') +; + +-- Jul 10, 2023, 9:15:44 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,ReadOnlyLogic,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215872,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200387,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','1=1','D','N','eb232dae-420d-452e-8b10-303b2590684e','N') +; + +-- Jul 10, 2023, 9:15:44 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215873,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200387,'AD_Org_ID','@AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','07d892af-f0e5-4717-a073-e4240395a777','N') +; + +-- Jul 10, 2023, 9:15:45 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215874,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200387,'Created',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:44','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','736c88f9-45f5-4ec5-853b-13728a0c436b','N') +; + +-- Jul 10, 2023, 9:15:45 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215875,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200387,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','e8562639-5070-41b0-834d-a1a97054fd08','N') +; + +-- Jul 10, 2023, 9:15:45 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215876,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200387,'Updated',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','cc0521c8-05b3-4c26-a59f-df425551298c','N') +; + +-- Jul 10, 2023, 9:15:46 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215877,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200387,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:45','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','42da35ed-8b6c-4fe0-86c2-20d8cec61ffa','N') +; + +-- Jul 10, 2023, 9:15:46 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215878,0.0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200387,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','379d922c-1453-4f0a-bfd0-7442a46dc472','N') +; + +-- Jul 10, 2023, 9:15:46 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,PrintName,EntityType,AD_Element_UU) VALUES (203815,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,'AD_ModelGeneratorTemplate_ID','Model Generator Template',NULL,'Model Generator Template','D','0511f2b4-1846-4b91-aee1-fce177c6c0e2') +; + +-- Jul 10, 2023, 9:15:47 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215879,0.0,'Model Generator Template',200387,'AD_ModelGeneratorTemplate_ID',22,'Y','N','Y','N','N','N',13,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:46','YYYY-MM-DD HH24:MI:SS'),10,203815,'N','N','D','N','fbc50caa-e280-496d-b28e-9b609c4d781b','N') +; + +-- Jul 10, 2023, 9:15:47 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203816,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,'AD_ModelGeneratorTemplate_UU','AD_ModelGeneratorTemplate_UU','AD_ModelGeneratorTemplate_UU','D','4fb0795c-575e-42b1-84dd-33e4b35aabbf') +; + +-- Jul 10, 2023, 9:15:47 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (215880,0.0,'AD_ModelGeneratorTemplate_UU',200387,'AD_ModelGeneratorTemplate_UU',36,'N','N','N','N','N','N',200231,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,203816,'Y','N','D','N','c6a5fbd5-9cb6-49dd-9e94-e1781f9a6662','N') +; + +-- Jul 10, 2023, 9:15:47 AM CEST +INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Table_ID,IsCreateConstraint,IsUnique,Processing,IsKey) VALUES (0,0,201256,'fe454d8b-b7ec-4004-b128-4463f6776625',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','AD_ModelGeneratorTemplate_uu_idx',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,200387,'Y','Y','N','N') +; + +-- Jul 10, 2023, 9:15:48 AM CEST +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201698,'7def4c90-cf49-454d-a712-c1483dc7f9a7',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2023-07-10 09:15:47','YYYY-MM-DD HH24:MI:SS'),10,215880,201256,10) +; + +-- Jul 10, 2023, 9:15:48 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,SeqNoSelection,IsToolbarButton) VALUES (215881,0.0,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200387,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:15:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:15:48','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','ffb6f4b3-a5eb-4dbc-b145-79f6577028e8',10,'N') +; + +-- Jul 10, 2023, 9:16:17 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215882,0,'Folder','A folder on a local or remote system to store data into','We store files in folders, especially media files.',200387,'Folder',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:16:16','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:16:16','YYYY-MM-DD HH24:MI:SS'),10,3012,'Y','N','D','N','N','N','Y','0921ecb7-602b-4a3f-bb7a-d40833311206','Y',0,'N','N','N') +; + +-- Jul 10, 2023, 9:16:37 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,MandatoryLogic,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (215883,0,'DB Table Name','Name of the table in the database','The DB Table Name indicates the name of the table in database.',200387,'TableName',60,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:16:37','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:16:37','YYYY-MM-DD HH24:MI:SS'),10,587,'Y','Y','D','N','N',NULL,'N','Y','bc675bac-63a6-4f20-be07-b0bd1a44237c','Y',20,'N','N','N','N') +; + +-- Jul 10, 2023, 9:16:50 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203817,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:16:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:16:44','YYYY-MM-DD HH24:MI:SS'),10,'ColumnEntityType','Column Entity Type',NULL,NULL,'Column Entity Type','D','22ad1194-cfdc-4582-bd51-a2d7a4a46f14') +; + +-- Jul 10, 2023, 9:17:03 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215884,0,'Column Entity Type',200387,'ColumnEntityType',20,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:03','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:03','YYYY-MM-DD HH24:MI:SS'),10,203817,'Y','N','D','N','N','N','Y','420b64ca-4e0a-4a8b-8488-08381bbe94df','Y',0,'N','N','N') +; + +-- Jul 10, 2023, 9:17:26 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203818,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:17','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:17','YYYY-MM-DD HH24:MI:SS'),10,'PackageName','Package Name',NULL,NULL,'Package Name','D','262c6963-8b1e-4d7d-9c20-98be2868f4f5') +; + +-- Jul 10, 2023, 9:17:34 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215885,0,'Package Name',200387,'PackageName',60,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:33','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:33','YYYY-MM-DD HH24:MI:SS'),10,203818,'Y','N','D','N','N','N','Y','76784d8d-5d05-48eb-b96e-6a63386e3215','Y',0,'N','N','N') +; + +-- Jul 10, 2023, 9:17:47 AM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203819,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:40','YYYY-MM-DD HH24:MI:SS'),10,'TableEntityType','Table Entity Type',NULL,NULL,'Table Entity Type','D','86a1747f-f3ca-4a32-ba6b-e4461eb99f77') +; + +-- Jul 10, 2023, 9:17:52 AM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215886,0,'Table Entity Type',200387,'TableEntityType',20,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:17:52','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:17:52','YYYY-MM-DD HH24:MI:SS'),10,203819,'Y','N','D','N','N','N','Y','0df44055-c22d-4f63-ad7a-c8706fb2861e','Y',0,'N','N','N') +; + +-- Jul 10, 2023, 9:18:31 AM CEST +UPDATE AD_Column SET IsAllowCopy='N', FKConstraintName='ADClient_ADModelGeneratorTempl', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-07-10 09:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=215872 +; + +-- Jul 10, 2023, 9:18:31 AM CEST +UPDATE AD_Column SET IsAllowCopy='N', FKConstraintName='ADOrg_ADModelGeneratorTemplate', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-07-10 09:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=215873 +; + +-- Jul 10, 2023, 9:18:31 AM CEST +UPDATE AD_Column SET IsAllowCopy='N', FKConstraintName='CreatedBy_ADModelGeneratorTemp', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-07-10 09:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=215875 +; + +-- Jul 10, 2023, 9:18:31 AM CEST +UPDATE AD_Column SET IsAllowCopy='N', FKConstraintName='UpdatedBy_ADModelGeneratorTemp', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-07-10 09:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=215877 +; + +-- Jul 10, 2023, 9:18:31 AM CEST +CREATE TABLE AD_ModelGeneratorTemplate (AD_Client_ID NUMERIC(10) NOT NULL, AD_ModelGeneratorTemplate_ID NUMERIC(10) NOT NULL, AD_ModelGeneratorTemplate_UU VARCHAR(36) DEFAULT NULL , AD_Org_ID NUMERIC(10) NOT NULL, ColumnEntityType VARCHAR(20) DEFAULT NULL , Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, Folder VARCHAR(255) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Name VARCHAR(60) NOT NULL, PackageName VARCHAR(60) DEFAULT NULL , TableEntityType VARCHAR(20) DEFAULT NULL , TableName VARCHAR(60) DEFAULT NULL , Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT AD_ModelGeneratorTemplate_Key PRIMARY KEY (AD_ModelGeneratorTemplate_ID), CONSTRAINT AD_ModelGeneratorTemplateuuidx UNIQUE (AD_ModelGeneratorTemplate_UU)) +; + +-- Jul 10, 2023, 9:18:31 AM CEST +ALTER TABLE AD_ModelGeneratorTemplate ADD CONSTRAINT ADClient_ADModelGeneratorTempl FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jul 10, 2023, 9:18:31 AM CEST +ALTER TABLE AD_ModelGeneratorTemplate ADD CONSTRAINT ADOrg_ADModelGeneratorTemplate FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jul 10, 2023, 9:18:31 AM CEST +ALTER TABLE AD_ModelGeneratorTemplate ADD CONSTRAINT CreatedBy_ADModelGeneratorTemp FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jul 10, 2023, 9:18:31 AM CEST +ALTER TABLE AD_ModelGeneratorTemplate ADD CONSTRAINT UpdatedBy_ADModelGeneratorTemp FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jul 10, 2023, 9:18:45 AM CEST +INSERT INTO AD_Window (AD_Window_ID,Name,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,WindowType,Processing,EntityType,IsSOTrx,IsDefault,IsBetaFunctionality,AD_Window_UU) VALUES (200141,'Model Generator Template',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,'M','N','D','N','N','N','03d9636a-892c-4663-8839-19618b7a0055') +; + +-- Jul 10, 2023, 9:18:45 AM CEST +INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsTranslationTab,IsReadOnly,OrderByClause,Processing,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU) VALUES (200353,'Model Generator Template',200141,10,'Y',200387,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','AD_ModelGeneratorTemplate.Name','N',0,'N','D','Y','N','1134c289-64e4-4adf-8a04-34f875147bcd') +; + +-- Jul 10, 2023, 9:18:46 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207689,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200353,215872,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:45','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','e0b49823-457d-4d52-8934-398450d5044e','N',2) +; + +-- Jul 10, 2023, 9:18:46 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,XPosition,ColumnSpan) VALUES (207690,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200353,215873,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','404401b5-1291-477a-a96e-069ca16289ca','Y','N',4,2) +; + +-- Jul 10, 2023, 9:18:46 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207691,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200353,215881,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','a37ace1d-5f41-48d3-8089-9684ea972a87','Y',10,5) +; + +-- Jul 10, 2023, 9:18:47 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207692,'Model Generator Template',200353,215879,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:46','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','3d776ac5-36e5-4549-8554-7eef75b1d618','N',2) +; + +-- Jul 10, 2023, 9:18:47 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207693,'AD_ModelGeneratorTemplate_UU',200353,215880,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','494728f1-3500-46a7-93d7-102f9d5a7eea','N',2) +; + +-- Jul 10, 2023, 9:18:47 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207694,'Folder','A folder on a local or remote system to store data into','We store files in folders, especially media files.',200353,215882,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','6534b52f-4abf-42fe-9319-49d9e7841b8d','Y',20,5) +; + +-- Jul 10, 2023, 9:18:48 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207695,'DB Table Name','Name of the table in the database','The DB Table Name indicates the name of the table in database.',200353,215883,'Y',60,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:47','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','d249d485-9152-463b-9818-ec1217007003','Y',30,5) +; + +-- Jul 10, 2023, 9:18:48 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207696,'Column Entity Type',200353,215884,'Y',20,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4a480bf9-4c34-40f8-af2a-6d767a401e2b','Y',40,2) +; + +-- Jul 10, 2023, 9:18:48 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207697,'Package Name',200353,215885,'Y',60,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','6f7e1377-39f9-4bdc-91d4-2678e966961f','Y',50,5) +; + +-- Jul 10, 2023, 9:18:49 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207698,'Table Entity Type',200353,215886,'Y',20,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:48','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','415fe084-6fb3-4419-86b5-3a6d163ae3f6','Y',60,2) +; + +-- Jul 10, 2023, 9:18:49 AM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207699,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200353,215878,'Y',1,90,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','640a9c98-57bf-456b-ad29-1e945d76f1f8','Y',70,2,2) +; + +-- Jul 10, 2023, 9:18:49 AM CEST +INSERT INTO AD_Menu (AD_Menu_ID,Name,"action",AD_Window_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,AD_Menu_UU) VALUES (200227,'Model Generator Template','W',200141,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','D','2064a6f0-0300-4fc5-9c91-a4252b6de727') +; + +-- Jul 10, 2023, 9:18:49 AM CEST +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', statement_timestamp(), 10, statement_timestamp(), 10,t.AD_Tree_ID, 200227, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200227) +; + +-- Jul 10, 2023, 9:18:49 AM CEST +UPDATE AD_Table SET AD_Window_ID=200141,Updated=TO_TIMESTAMP('2023-07-10 09:18:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200387 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=30, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207691 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, XPosition=6, ColumnSpan=1,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207699 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=50, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207694 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=60, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207695 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70, XPosition=1, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207697 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, XPosition=4,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207696 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207693 +; + +-- Jul 10, 2023, 9:19:34 AM CEST +UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2023-07-10 09:19:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207692 +; + +-- Jul 10, 2023, 9:20:41 AM CEST +INSERT INTO AD_Process (AD_Process_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,IsReport,Value,IsDirectPrint,Classname,AccessLevel,EntityType,Statistic_Count,Statistic_Seconds,IsBetaFunctionality,ShowHelp,CopyFromProcess,AD_Process_UU,AllowMultipleExecution) VALUES (200154,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:20:41','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:20:41','YYYY-MM-DD HH24:MI:SS'),10,'Generate Model','N','GenerateModel','N','org.idempiere.process.GenerateModel','4','D',0,0,'N','Y','N','5d3ccc79-089d-485c-af7e-b1d7e79a088a','P') +; + +-- Jul 10, 2023, 9:21:09 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200439,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:21:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:21:09','YYYY-MM-DD HH24:MI:SS'),10,'Model Generator Template',200154,10,19,'N',22,'N','AD_ModelGeneratorTemplate_ID','Y','D',203815,'205ebbbb-15d9-4b88-b51f-12dc244d3361','N','N','D','N') +; + +-- Jul 10, 2023, 9:22:35 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200440,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:22:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:22:35','YYYY-MM-DD HH24:MI:SS'),10,'Folder','A folder on a local or remote system to store data into','We store files in folders, especially media files.',200154,20,10,'N',255,'Y','Folder','Y','D',3012,'844c2ec6-8fdb-475b-be5f-b777e9d0195d','N','N','D','N') +; + +-- Jul 10, 2023, 9:22:44 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200441,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:22:43','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:22:43','YYYY-MM-DD HH24:MI:SS'),10,'DB Table Name','Name of the table in the database','The DB Table Name indicates the name of the table in database.',200154,30,10,'N',27,'Y',NULL,'TableName','Y','D',587,'6069d087-e62c-4032-aab2-77ec74fc3cd6','N','N','D','N') +; + +-- Jul 10, 2023, 9:22:51 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200442,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:22:51','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:22:51','YYYY-MM-DD HH24:MI:SS'),10,'Package Name',200154,40,10,'N',60,'Y','PackageName','Y','D',203818,'7aeb8885-a5c1-4660-829b-5aa2da831274','N','N','D','N') +; + +-- Jul 10, 2023, 9:22:59 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200443,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:22:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:22:58','YYYY-MM-DD HH24:MI:SS'),10,'Table Entity Type',200154,50,10,'N',20,'Y','TableEntityType','Y','D',203819,'ce80d469-64fa-425a-b95f-975c315fd9c2','N','N','D','N') +; + +-- Jul 10, 2023, 9:23:04 AM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200444,0,0,'Y',TO_TIMESTAMP('2023-07-10 09:23:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:23:04','YYYY-MM-DD HH24:MI:SS'),10,'Column Entity Type',200154,60,10,'N',20,'N','ColumnEntityType','Y','D',203817,'e7cc8411-1c55-40f7-b11c-1c5edc48b1cb','N','N','D','N') +; + +-- Jul 10, 2023, 9:23:51 AM CEST +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=38,Updated=TO_TIMESTAMP('2023-07-10 09:23:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200227 +; + +-- Jul 10, 2023, 9:23:51 AM CEST +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=39,Updated=TO_TIMESTAMP('2023-07-10 09:23:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- Jul 10, 2023, 9:24:07 AM CEST +INSERT INTO AD_Menu (AD_Menu_ID,Name,"action",AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,AD_Process_ID,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU) VALUES (200228,'Generate Model','P',0,0,'Y',TO_TIMESTAMP('2023-07-10 09:24:06','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2023-07-10 09:24:06','YYYY-MM-DD HH24:MI:SS'),10,'N',200154,'N','N','D','Y','4976012a-2141-488d-a313-fe3e07cace16') +; + +-- Jul 10, 2023, 9:24:07 AM CEST +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', statement_timestamp(), 10, statement_timestamp(), 10,t.AD_Tree_ID, 200228, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200228) +; + +-- Jul 10, 2023, 9:24:34 AM CEST +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=39,Updated=TO_TIMESTAMP('2023-07-10 09:24:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200228 +; + +-- Jul 10, 2023, 9:24:34 AM CEST +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=40,Updated=TO_TIMESTAMP('2023-07-10 09:24:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- Jul 10, 2023, 9:25:38 AM CEST +INSERT INTO AD_ToolBarButton (AD_Client_ID,AD_Org_ID,Created,CreatedBy,ComponentName,IsActive,AD_ToolBarButton_ID,Name,Updated,UpdatedBy,IsCustomization,AD_ToolBarButton_UU,"action",AD_Tab_ID,AD_Process_ID,DisplayLogic,SeqNo,EntityType) VALUES (0,0,TO_TIMESTAMP('2023-07-10 09:25:38','YYYY-MM-DD HH24:MI:SS'),10,'Generate Model','Y',200130,'Generate Model',TO_TIMESTAMP('2023-07-10 09:25:38','YYYY-MM-DD HH24:MI:SS'),10,'N','377fe2bc-d17c-4952-b549-faaa88ba773e','W',100,200154,'@IsView@=N & @#DeveloperMode@ = Y',30,'D') +; + +-- Jul 10, 2023, 9:27:00 AM CEST +INSERT INTO AD_ToolBarButton (AD_Client_ID,AD_Org_ID,Created,CreatedBy,ComponentName,IsActive,AD_ToolBarButton_ID,Name,Updated,UpdatedBy,IsCustomization,AD_ToolBarButton_UU,"action",AD_Tab_ID,AD_Process_ID,DisplayLogic,SeqNo,EntityType) VALUES (0,0,TO_TIMESTAMP('2023-07-10 09:27:00','YYYY-MM-DD HH24:MI:SS'),10,'Generate Model','Y',200131,'Generate Model',TO_TIMESTAMP('2023-07-10 09:27:00','YYYY-MM-DD HH24:MI:SS'),10,'N','cb91ee8b-1271-4f45-9556-01240345b225','W',102,200154,'@ValidationType@ = L & @#DeveloperMode@ = Y',10,'D') +; + +-- Jul 12, 2023, 6:50:28 AM CEST +UPDATE AD_Process_Para SET Name='Table Like', Description='You can use % or a comma separated list of table names (case sensitive)', ColumnName='TableLike', AD_Element_ID=NULL,Updated=TO_TIMESTAMP('2023-07-12 06:50:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_Para_ID=200441 +; + +-- Jul 12, 2023, 7:03:28 AM CEST +UPDATE AD_Field SET Description=NULL, Help='You can use % or a comma separated list of table names (case sensitive) +Using ''@TableName@'' will change to current table when executing the process', IsCentrallyMaintained='N',Updated=TO_TIMESTAMP('2023-07-12 07:03:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207695 +; + +-- Jul 12, 2023, 3:52:47 PM CEST +UPDATE AD_Process_Para SET AD_Reference_ID=200162, AD_Reference_Value_ID=389,Updated=TO_TIMESTAMP('2023-07-12 15:52:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_Para_ID=200443 +; + +-- Jul 12, 2023, 3:52:55 PM CEST +UPDATE AD_Process_Para SET AD_Reference_ID=200162, AD_Reference_Value_ID=389,Updated=TO_TIMESTAMP('2023-07-12 15:52:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_Para_ID=200444 +; + +-- Jul 13, 2023, 1:55:59 PM CEST +UPDATE AD_Column SET FieldLength=2000,Updated=TO_TIMESTAMP('2023-07-13 13:55:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215883 +; + +-- Jul 13, 2023, 1:56:04 PM CEST +INSERT INTO t_alter_column values('ad_modelgeneratortemplate','TableName','VARCHAR(2000)',null,'NULL') +; + +-- Jul 13, 2023, 1:56:50 PM CEST +UPDATE AD_Process_Para SET Description='You can use % or a comma separated list of table names enclosed within single quotes (case sensitive)', FieldLength=2000,Updated=TO_TIMESTAMP('2023-07-13 13:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200441 +; + +-- Jul 13, 2023, 2:14:18 PM CEST +UPDATE AD_Process_Para SET SeqNo=41,Updated=TO_TIMESTAMP('2023-07-13 14:14:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200441 +; + +-- Jul 13, 2023, 2:14:22 PM CEST +UPDATE AD_Process_Para SET SeqNo=30,Updated=TO_TIMESTAMP('2023-07-13 14:14:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200442 +; + +-- Jul 13, 2023, 2:14:25 PM CEST +UPDATE AD_Process_Para SET SeqNo=40,Updated=TO_TIMESTAMP('2023-07-13 14:14:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200441 +; + +-- Jul 13, 2023, 2:14:53 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203820,0,0,'Y',TO_TIMESTAMP('2023-07-13 14:14:41','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-07-13 14:14:41','YYYY-MM-DD HH24:MI:SS'),100,'IsGenerateInterface','Generate Interface',NULL,NULL,'Generate Interface','D','011f0493-36d7-4bc7-a7d8-7ac01662ba67') +; + +-- Jul 13, 2023, 2:15:07 PM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200445,0,0,'Y',TO_TIMESTAMP('2023-07-13 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-07-13 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,'Generate Interface',200154,70,20,'N',1,'Y','Y','IsGenerateInterface','Y','D',203820,'a681b7c6-56b4-465e-a750-ebd0874d308d','N','N','D','N') +; + +-- Jul 13, 2023, 2:15:23 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203821,0,0,'Y',TO_TIMESTAMP('2023-07-13 14:15:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-07-13 14:15:12','YYYY-MM-DD HH24:MI:SS'),100,'IsGenerateClass','Generate Class',NULL,NULL,'Generate Class','D','5534d687-c084-4ea7-8943-842f6ad05b2c') +; + +-- Jul 13, 2023, 2:15:33 PM CEST +INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Process_ID,SeqNo,AD_Reference_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted,IsAutocomplete,DateRangeOption,IsShowNegateButton) VALUES (200446,0,0,'Y',TO_TIMESTAMP('2023-07-13 14:15:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-07-13 14:15:33','YYYY-MM-DD HH24:MI:SS'),100,'Generate Class',200154,80,20,'N',1,'Y','Y','IsGenerateClass','Y','D',203821,'f439bed8-22bb-4627-a9b9-8626a95844a1','N','N','D','N') +; + diff --git a/org.adempiere.base.process/src/org/idempiere/process/GenerateModel.java b/org.adempiere.base.process/src/org/idempiere/process/GenerateModel.java new file mode 100644 index 0000000000..1f678bd8ee --- /dev/null +++ b/org.adempiere.base.process/src/org/idempiere/process/GenerateModel.java @@ -0,0 +1,98 @@ +/*********************************************************************** + * This file is part of iDempiere ERP Open Source * + * http://www.idempiere.org * + * * + * Copyright (C) Contributors * + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program 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 General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Nicolas Micoud (TGI) * + **********************************************************************/ +package org.idempiere.process; + +import org.adempiere.util.ModelClassGenerator; +import org.adempiere.util.ModelInterfaceGenerator; +import org.compiere.model.MProcessPara; +import org.compiere.process.ProcessInfoParameter; +import org.compiere.process.SvrProcess; + +/** + * IDEMPIERE-5796 - Generate Model Template + * @author Nicolas Micoud - TGI + */ +@org.adempiere.base.annotation.Process +public class GenerateModel extends SvrProcess { + + private String p_sourceFolder = ""; + private String p_packageName = ""; + private String p_tableName = ""; + private String p_tableEntityType = ""; + private String p_columnEntityType = ""; + private boolean p_isGenerateInterface = true; + private boolean p_isGenerateClass = true; + + /** + * Prepare - e.g., get Parameters. + */ + protected void prepare() { + for (ProcessInfoParameter para : getParameter()) { + String name = para.getParameterName(); + switch (name) { + case "Folder": + p_sourceFolder = para.getParameterAsString(); + break; + case "PackageName": + p_packageName = para.getParameterAsString(); + break; + case "TableLike": + p_tableName = para.getParameterAsString(); + break; + case "TableEntityType": + p_tableEntityType = para.getParameterAsString(); + break; + case "ColumnEntityType": + p_columnEntityType = para.getParameterAsString(); + break; + case "IsGenerateInterface": + p_isGenerateInterface = para.getParameterAsBoolean(); + break; + case "IsGenerateClass": + p_isGenerateClass = para.getParameterAsBoolean(); + break; + + default: + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); + } + } + } // prepare + + /** + * Perform process. + * @return Message + * @throws Exception + */ + protected String doIt() { + + if (p_isGenerateInterface) + ModelInterfaceGenerator.generateSource(p_sourceFolder, p_packageName, p_tableEntityType, p_tableName, p_columnEntityType); + if (p_isGenerateClass) + ModelClassGenerator.generateSource(p_sourceFolder, p_packageName, p_tableEntityType, p_tableName, p_columnEntityType); + + return "@ProcessOK@"; + } + +} // GenerateModel diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_ModelGeneratorTemplate.java b/org.adempiere.base/src/org/compiere/model/I_AD_ModelGeneratorTemplate.java new file mode 100644 index 0000000000..b78f216ac0 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/I_AD_ModelGeneratorTemplate.java @@ -0,0 +1,193 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program 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 General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_ModelGeneratorTemplate + * @author iDempiere (generated) + * @version Release 11 + */ +public interface I_AD_ModelGeneratorTemplate +{ + + /** TableName=AD_ModelGeneratorTemplate */ + public static final String Table_Name = "AD_ModelGeneratorTemplate"; + + /** AD_Table_ID=200387 */ + public static final int Table_ID = 200387; + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = BigDecimal.valueOf(4); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Tenant. + * Tenant for this installation. + */ + public int getAD_Client_ID(); + + /** Column name AD_ModelGeneratorTemplate_ID */ + public static final String COLUMNNAME_AD_ModelGeneratorTemplate_ID = "AD_ModelGeneratorTemplate_ID"; + + /** Set Model Generator Template */ + public void setAD_ModelGeneratorTemplate_ID (int AD_ModelGeneratorTemplate_ID); + + /** Get Model Generator Template */ + public int getAD_ModelGeneratorTemplate_ID(); + + /** Column name AD_ModelGeneratorTemplate_UU */ + public static final String COLUMNNAME_AD_ModelGeneratorTemplate_UU = "AD_ModelGeneratorTemplate_UU"; + + /** Set AD_ModelGeneratorTemplate_UU */ + public void setAD_ModelGeneratorTemplate_UU (String AD_ModelGeneratorTemplate_UU); + + /** Get AD_ModelGeneratorTemplate_UU */ + public String getAD_ModelGeneratorTemplate_UU(); + + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within tenant + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within tenant + */ + public int getAD_Org_ID(); + + /** Column name ColumnEntityType */ + public static final String COLUMNNAME_ColumnEntityType = "ColumnEntityType"; + + /** Set Column Entity Type */ + public void setColumnEntityType (String ColumnEntityType); + + /** Get Column Entity Type */ + public String getColumnEntityType(); + + /** Column name Created */ + public static final String COLUMNNAME_Created = "Created"; + + /** Get Created. + * Date this record was created + */ + public Timestamp getCreated(); + + /** Column name CreatedBy */ + public static final String COLUMNNAME_CreatedBy = "CreatedBy"; + + /** Get Created By. + * User who created this records + */ + public int getCreatedBy(); + + /** Column name Folder */ + public static final String COLUMNNAME_Folder = "Folder"; + + /** Set Folder. + * A folder on a local or remote system to store data into + */ + public void setFolder (String Folder); + + /** Get Folder. + * A folder on a local or remote system to store data into + */ + public String getFolder(); + + /** Column name IsActive */ + public static final String COLUMNNAME_IsActive = "IsActive"; + + /** Set Active. + * The record is active in the system + */ + public void setIsActive (boolean IsActive); + + /** Get Active. + * The record is active in the system + */ + public boolean isActive(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PackageName */ + public static final String COLUMNNAME_PackageName = "PackageName"; + + /** Set Package Name */ + public void setPackageName (String PackageName); + + /** Get Package Name */ + public String getPackageName(); + + /** Column name TableEntityType */ + public static final String COLUMNNAME_TableEntityType = "TableEntityType"; + + /** Set Table Entity Type */ + public void setTableEntityType (String TableEntityType); + + /** Get Table Entity Type */ + public String getTableEntityType(); + + /** Column name TableName */ + public static final String COLUMNNAME_TableName = "TableName"; + + /** Set DB Table Name. + * Name of the table in the database + */ + public void setTableName (String TableName); + + /** Get DB Table Name. + * Name of the table in the database + */ + public String getTableName(); + + /** Column name Updated */ + public static final String COLUMNNAME_Updated = "Updated"; + + /** Get Updated. + * Date this record was updated + */ + public Timestamp getUpdated(); + + /** Column name UpdatedBy */ + public static final String COLUMNNAME_UpdatedBy = "UpdatedBy"; + + /** Get Updated By. + * User who updated this records + */ + public int getUpdatedBy(); +} diff --git a/org.adempiere.base/src/org/compiere/model/MModelGeneratorTemplate.java b/org.adempiere.base/src/org/compiere/model/MModelGeneratorTemplate.java new file mode 100644 index 0000000000..84caedf98a --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/MModelGeneratorTemplate.java @@ -0,0 +1,70 @@ +/*********************************************************************** + * This file is part of iDempiere ERP Open Source * + * http://www.idempiere.org * + * * + * Copyright (C) Contributors * + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program 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 General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Nicolas Micoud (TGI) * + **********************************************************************/ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; + +/** + * Generate Model Template + */ +public class MModelGeneratorTemplate extends X_AD_ModelGeneratorTemplate { + + /** + * + */ + private static final long serialVersionUID = -8215029851779075135L; + + /** + * UUID based Constructor + * @param ctx Context + * @param AD_ModelGeneratorTemplate_UU UUID key + * @param trxName Transaction + */ + public MModelGeneratorTemplate(Properties ctx, String AD_ModelGeneratorTemplate_UU, String trxName) { + super(ctx, AD_ModelGeneratorTemplate_UU, trxName); + } // MModelGeneratorTemplate + + /** + * SMTP constructor + * @param ctx context + * @param AD_ModelGeneratorTemplate_ID ID + * @param trxName transaction + */ + public MModelGeneratorTemplate(Properties ctx, int AD_ModelGeneratorTemplate_ID, String trxName) { + super(ctx, AD_ModelGeneratorTemplate_ID, trxName); + } // MModelGeneratorTemplate + + /** + * SMTP constructor + * @param ctx context + * @param rs ResultSet + * @param trxName transaction + */ + public MModelGeneratorTemplate(Properties ctx, ResultSet rs, String trxName) { + super(ctx, rs, trxName); + } // MModelGeneratorTemplate + +} // MModelGeneratorTemplate diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_ModelGeneratorTemplate.java b/org.adempiere.base/src/org/compiere/model/X_AD_ModelGeneratorTemplate.java new file mode 100644 index 0000000000..1a5abe1a9f --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/X_AD_ModelGeneratorTemplate.java @@ -0,0 +1,235 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program 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 General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; + +/** Generated Model for AD_ModelGeneratorTemplate + * @author iDempiere (generated) + * @version Release 11 - $Id$ */ +@org.adempiere.base.Model(table="AD_ModelGeneratorTemplate") +public class X_AD_ModelGeneratorTemplate extends PO implements I_AD_ModelGeneratorTemplate, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20230710L; + + /** Standard Constructor */ + public X_AD_ModelGeneratorTemplate (Properties ctx, int AD_ModelGeneratorTemplate_ID, String trxName) + { + super (ctx, AD_ModelGeneratorTemplate_ID, trxName); + /** if (AD_ModelGeneratorTemplate_ID == 0) + { + setAD_ModelGeneratorTemplate_ID (0); + setName (null); + } */ + } + + /** Standard Constructor */ + public X_AD_ModelGeneratorTemplate (Properties ctx, int AD_ModelGeneratorTemplate_ID, String trxName, String ... virtualColumns) + { + super (ctx, AD_ModelGeneratorTemplate_ID, trxName, virtualColumns); + /** if (AD_ModelGeneratorTemplate_ID == 0) + { + setAD_ModelGeneratorTemplate_ID (0); + setName (null); + } */ + } + + /** Standard Constructor */ + public X_AD_ModelGeneratorTemplate (Properties ctx, String AD_ModelGeneratorTemplate_UU, String trxName) + { + super (ctx, AD_ModelGeneratorTemplate_UU, trxName); + /** if (AD_ModelGeneratorTemplate_UU == null) + { + setAD_ModelGeneratorTemplate_ID (0); + setName (null); + } */ + } + + /** Standard Constructor */ + public X_AD_ModelGeneratorTemplate (Properties ctx, String AD_ModelGeneratorTemplate_UU, String trxName, String ... virtualColumns) + { + super (ctx, AD_ModelGeneratorTemplate_UU, trxName, virtualColumns); + /** if (AD_ModelGeneratorTemplate_UU == null) + { + setAD_ModelGeneratorTemplate_ID (0); + setName (null); + } */ + } + + /** Load Constructor */ + public X_AD_ModelGeneratorTemplate (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); + return poi; + } + + public String toString() + { + StringBuilder sb = new StringBuilder ("X_AD_ModelGeneratorTemplate[") + .append(get_ID()).append(",Name=").append(getName()).append("]"); + return sb.toString(); + } + + /** Set Model Generator Template. + @param AD_ModelGeneratorTemplate_ID Model Generator Template + */ + public void setAD_ModelGeneratorTemplate_ID (int AD_ModelGeneratorTemplate_ID) + { + if (AD_ModelGeneratorTemplate_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ModelGeneratorTemplate_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ModelGeneratorTemplate_ID, Integer.valueOf(AD_ModelGeneratorTemplate_ID)); + } + + /** Get Model Generator Template. + @return Model Generator Template */ + public int getAD_ModelGeneratorTemplate_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ModelGeneratorTemplate_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_ModelGeneratorTemplate_UU. + @param AD_ModelGeneratorTemplate_UU AD_ModelGeneratorTemplate_UU + */ + public void setAD_ModelGeneratorTemplate_UU (String AD_ModelGeneratorTemplate_UU) + { + set_Value (COLUMNNAME_AD_ModelGeneratorTemplate_UU, AD_ModelGeneratorTemplate_UU); + } + + /** Get AD_ModelGeneratorTemplate_UU. + @return AD_ModelGeneratorTemplate_UU */ + public String getAD_ModelGeneratorTemplate_UU() + { + return (String)get_Value(COLUMNNAME_AD_ModelGeneratorTemplate_UU); + } + + /** Set Column Entity Type. + @param ColumnEntityType Column Entity Type + */ + public void setColumnEntityType (String ColumnEntityType) + { + set_Value (COLUMNNAME_ColumnEntityType, ColumnEntityType); + } + + /** Get Column Entity Type. + @return Column Entity Type */ + public String getColumnEntityType() + { + return (String)get_Value(COLUMNNAME_ColumnEntityType); + } + + /** Set Folder. + @param Folder A folder on a local or remote system to store data into + */ + public void setFolder (String Folder) + { + set_Value (COLUMNNAME_Folder, Folder); + } + + /** Get Folder. + @return A folder on a local or remote system to store data into + */ + public String getFolder() + { + return (String)get_Value(COLUMNNAME_Folder); + } + + /** Set Name. + @param Name Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName() + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Package Name. + @param PackageName Package Name + */ + public void setPackageName (String PackageName) + { + set_Value (COLUMNNAME_PackageName, PackageName); + } + + /** Get Package Name. + @return Package Name */ + public String getPackageName() + { + return (String)get_Value(COLUMNNAME_PackageName); + } + + /** Set Table Entity Type. + @param TableEntityType Table Entity Type + */ + public void setTableEntityType (String TableEntityType) + { + set_Value (COLUMNNAME_TableEntityType, TableEntityType); + } + + /** Get Table Entity Type. + @return Table Entity Type */ + public String getTableEntityType() + { + return (String)get_Value(COLUMNNAME_TableEntityType); + } + + /** Set DB Table Name. + @param TableName Name of the table in the database + */ + public void setTableName (String TableName) + { + set_Value (COLUMNNAME_TableName, TableName); + } + + /** Get DB Table Name. + @return Name of the table in the database + */ + public String getTableName() + { + return (String)get_Value(COLUMNNAME_TableName); + } +} \ No newline at end of file diff --git a/org.adempiere.ui.zk/OSGI-INF/generatemodelparameterslistener.xml b/org.adempiere.ui.zk/OSGI-INF/generatemodelparameterslistener.xml new file mode 100644 index 0000000000..a4c1f1a881 --- /dev/null +++ b/org.adempiere.ui.zk/OSGI-INF/generatemodelparameterslistener.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/GenerateModelParameterListener.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/GenerateModelParameterListener.java new file mode 100644 index 0000000000..ebc798d82d --- /dev/null +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/GenerateModelParameterListener.java @@ -0,0 +1,66 @@ +/********************************************************************** + * This file is part of iDempiere ERP Open Source * + * http://www.idempiere.org * + * * + * Copyright (C) Contributors * + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program 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 General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Nicolas Micoud (TGI) * + **********************************************************************/ + +package org.adempiere.webui.process; + +import org.adempiere.webui.apps.IProcessParameterListener; +import org.adempiere.webui.apps.ProcessParameterPanel; +import org.adempiere.webui.editor.WEditor; +import org.compiere.model.MModelGeneratorTemplate; +import org.compiere.util.Env; +import org.compiere.util.Util; + +public class GenerateModelParameterListener implements IProcessParameterListener { + + private static final String[] parameters = {"Folder", "PackageName", "TableLike", "TableEntityType", "ColumnEntityType"}; + + @Override + public void onChange(ProcessParameterPanel parameterPanel, String columnName, WEditor editor) { + if (editor.getValue() != null) { + if ("AD_ModelGeneratorTemplate_ID".equals(columnName) && !editor.isNullOrEmpty()) { + + MModelGeneratorTemplate mgt = new MModelGeneratorTemplate(Env.getCtx(), (Integer) editor.getValue(), null); + + for (String paramName : parameters) { + WEditor param = parameterPanel.getEditor(paramName); + if (param != null) { + + if (paramName.equals("TableLike")) + paramName = "TableName"; + + String rawValue = mgt.get_ValueAsString(paramName); + + if (paramName.equals("TableName") && !Util.isEmpty(rawValue) && rawValue.equals("@TableName@")) + param.setValue(Env.getContext(Env.getCtx(), parameterPanel.getWindowNo(), "TableName")); + else if ((paramName.equals("TableEntityType") || paramName.equals("ColumnEntityType")) && !Util.isEmpty(rawValue) && rawValue.equals("@EntityType@")) + param.setValue(Env.getContext(Env.getCtx(), parameterPanel.getWindowNo(), "EntityType")); + else + param.setValue(mgt.get_Value(paramName)); + } + } + } + } + } +}