a.binder 8 年之前
父节点
当前提交
ccd61ac2c0

+ 9 - 8
SE/schema/ant-object/default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd

@@ -194,7 +194,7 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
                <xs:appinfo>
@@ -376,7 +376,7 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
@@ -531,7 +531,7 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
@@ -575,7 +575,7 @@ Kombinacja: bazowa</xs:documentation>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__PROBLEMS:PROBLEMS">
-                  \<xs:annotation>
+                  <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                            <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
@@ -592,7 +592,8 @@ Kombinacja: bazowa</xs:documentation>
                            <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
-                  </xs:annotation>\</xs:element>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -713,7 +714,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
@@ -873,7 +874,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
@@ -1031,7 +1032,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>

+ 112 - 1
SE/schema/ant-object/default_db.InvestArrangements/InvestArrangements/InvestArrangements.xsd

@@ -18,8 +18,14 @@
    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
    xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
    targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/InvestArrangements.xsd"
    vc:minVersion="1.1">
+   <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
+      schemaLocation="../../../types.xsd"/>
+   <xs:import namespace="http://www.opengis.net/gml/3.2"
+      schemaLocation="http://www.opengis.net/gml/3.2"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/Dzialki.xsd"
       schemaLocation="../../default_db.Dzialki/Dzialki/Dzialki.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
@@ -31,6 +37,8 @@
       schemaLocation="../../default_db.rurociagi_obce_wsg84/rurociagi_obce_wsg84/rurociagi_obce_wsg84.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BUILDINGS.xsd"
       schemaLocation="../../default_db.BUILDINGS/BUILDINGS/BUILDINGS.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
+      schemaLocation="../../default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd"/>
    <xs:simpleType name="A_STATUS_Type" id="rrangements___d4e7067-1_A_STATUS_T">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
@@ -58,6 +66,18 @@
          <xs:element name="A_STATUS_INFO" type="xs:string" id="rrangements___d4e7076-1_A_STATUS_I"/>
          <xs:element name="L_APPOITMENT_USER" type="xs:string"
             id="rrangements___d4e7077-1_L_APPOITME"/>
+         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
                      id="rrangements___d4e7078-1">
             <xs:annotation>
@@ -110,7 +130,23 @@
             </xs:annotation>
          </xs:element>
          <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL" type="xs:int"
-            id="rrangements___d4e7107-1_ID_KORESP_"/>
+            id="rrangements___d4e7107-1_ID_KORESP_">
+            <xs:annotation>
+               <xs:documentation>Powiazany natywny numer korespondencji</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL" system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="ID_BUILDINGS" type="xs:int" id="rrangements___d4e7108-1_ID_BUILDIN"/>
          <xs:element ref="default_db__x3A__BUILDINGS:BUILDINGS" minOccurs="0"
             id="rrangements___d4e7109-1">
@@ -181,6 +217,18 @@
                   id="rrangements___d4e7150-1_A_STATUS_I"/>
                <xs:element name="L_APPOITMENT_USER" type="xs:string"
                   id="rrangements___d4e7151-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
                   id="rrangements___d4e7152-1">
                   <xs:annotation>
@@ -230,6 +278,19 @@
                </xs:element>
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL" type="xs:int"
                   id="rrangements___d4e7180-1_ID_KORESP_"/>
+               <xs:element
+                  ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL" system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS" type="xs:int" id="rrangements___d4e7181-1_ID_BUILDIN"/>
                <xs:element ref="default_db__x3A__BUILDINGS:BUILDINGS" minOccurs="0" maxOccurs="0"
                   id="rrangements___d4e7182-1">
@@ -305,6 +366,18 @@
                   id="rrangements___d4e7223-1_A_STATUS_I"/>
                <xs:element name="L_APPOITMENT_USER" type="xs:string"
                   id="rrangements___d4e7224-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
                   id="rrangements___d4e7225-1">
                   <xs:annotation>
@@ -354,6 +427,19 @@
                </xs:element>
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL" type="xs:int"
                   id="rrangements___d4e7254-1_ID_KORESP_"/>
+               <xs:element
+                  ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL" system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS" type="xs:int" id="rrangements___d4e7255-1_ID_BUILDIN"/>
                <xs:element ref="default_db__x3A__BUILDINGS:BUILDINGS" minOccurs="0" maxOccurs="0"
                   id="rrangements___d4e7256-1">
@@ -435,6 +521,18 @@
                   id="rrangements___d4e7302-1_A_STATUS_I"/>
                <xs:element name="L_APPOITMENT_USER" type="xs:string"
                   id="rrangements___d4e7303-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
                   id="rrangements___d4e7304-1">
                   <xs:annotation>
@@ -484,6 +582,19 @@
                </xs:element>
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL" type="xs:int"
                   id="rrangements___d4e7333-1_ID_KORESP_"/>
+               <xs:element
+                  ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL" system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS" type="xs:int" id="rrangements___d4e7334-1_ID_BUILDIN"/>
                <xs:element ref="default_db__x3A__BUILDINGS:BUILDINGS" minOccurs="1"
                   id="rrangements___d4e7335-1">

+ 209 - 181
SE/schema/ant-object/default_db.InvestArrangements/InvestArrangements_Infrastructure_Placement_Buildings/InvestArrangements_Infrastructure_Placement_Buildings.xsd

@@ -19,24 +19,26 @@
            xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
            xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
            xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+           xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/InvestArrangements.xsd"
            vc:minVersion="1.1">
+   <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
+              schemaLocation="../../../types.xsd"/>
    <xs:import namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="../Types/gml.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
-              schemaLocation="../SystemObjects/AccessOwner.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
-              schemaLocation="../SystemObjects/AccessGroup.xsd"/>
+              schemaLocation="http://www.opengis.net/gml/3.2"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/Dzialki.xsd"
-              schemaLocation="Dzialki.xsd"/>
+              schemaLocation="../../default_db.Dzialki/Dzialki/Dzialki.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
-              schemaLocation="IN7_DZIENNIK_KORESP.xsd"/>
+              schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW_OFFERS.xsd"
-              schemaLocation="CRM_LISTA_ZASOBOW_OFFERS.xsd"/>
+              schemaLocation="../../default_db.CRM_LISTA_ZASOBOW_OFFERS/CRM_LISTA_ZASOBOW_OFFERS/CRM_LISTA_ZASOBOW_OFFERS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/rurociagi_obce_wsg84.xsd"
-              schemaLocation="rurociagi_obce_wsg84.xsd"/>
+              schemaLocation="../../default_db.rurociagi_obce_wsg84/rurociagi_obce_wsg84/rurociagi_obce_wsg84.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BUILDINGS.xsd"
-              schemaLocation="BUILDINGS.xsd"/>
+              schemaLocation="../../default_db.BUILDINGS/BUILDINGS/BUILDINGS.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
+              schemaLocation="../../default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd"/>
    <xs:simpleType name="A_STATUS_Type" id="rrangements___d4e7067-1_A_STATUS_T">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
@@ -47,12 +49,14 @@
             realizacji. </xs:documentation>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
-               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:InvestArrangements" system_cache__appinfo:heritage_acl="true">
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:InvestArrangements"
+                                              system_cache__appinfo:heritage_acl="true">
                   <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
                   <acl_rule_inherit_to_all_refs_by_primary/>
                   <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_ADM_COMPANY"/>
                </system_cache__appinfo:inherit>
-               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
       </xs:annotation>
@@ -71,71 +75,61 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="rrangements___d4e7077-1_L_APPOITME"/>
-         <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
                      id="rrangements___d4e7078-1">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
-         </xs:element>
+         </xs:element>-->
          <xs:element name="A_CLASSIFIED"
                      type="xs:string"
                      id="rrangements___d4e7083-1_A_CLASSIFI"/>
-         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+         <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="rrangements___d4e7084-1">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
-         </xs:element>
+         </xs:element>-->
          <xs:element name="A_ADM_COMPANY"
                      type="xs:string"
                      id="rrangements___d4e7089-1_A_ADM_COMP"/>
-         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+         <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
                      id="rrangements___d4e7090-1">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
-         </xs:element>
-         <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-         <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-         <!--<xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
-                     id="rrangements___d4e7086-1">
-            <xs:annotation>
-               <xs:documentation>Oznaczenie elementu oferty w ramach ktorej wystepuje dane uzgodnienie/kolizja/przeciecie</xs:documentation>
-            </xs:annotation>
          </xs:element>-->
          <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7099-1_ID_OFFER"/>
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -144,7 +138,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -154,7 +149,25 @@
          </xs:element>
          <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                      type="xs:int"
-                     id="rrangements___d4e7107-1_ID_KORESP_"/>
+                     id="rrangements___d4e7107-1_ID_KORESP_">
+            <xs:annotation>
+               <xs:documentation>Powiazany natywny numer korespondencji</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="ID_BUILDINGS"
                      type="xs:int"
                      id="rrangements___d4e7108-1_ID_BUILDIN"/>
@@ -164,7 +177,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -183,7 +197,8 @@
                   uzgodnienie</xs:documentation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -198,7 +213,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -248,66 +264,56 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="rrangements___d4e7151-1_L_APPOITME"/>
-               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
-                           id="rrangements___d4e7152-1">
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
                   </xs:annotation>
                </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                  id="rrangements___d4e7152-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            id="rrangements___d4e7157-1_A_CLASSIFI"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
-                           id="rrangements___d4e7158-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="rrangements___d4e7158-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
+               </xs:element>-->
                <xs:element name="A_ADM_COMPANY"
                            type="xs:string"
                            id="rrangements___d4e7163-1_A_ADM_COMP"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
-                           id="rrangements___d4e7164-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                  id="rrangements___d4e7164-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
-               <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
+               </xs:element>-->
                <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7172-1_ID_OFFER"/>
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
                            minOccurs="0"
@@ -315,7 +321,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -326,6 +333,20 @@
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                            type="xs:int"
                            id="rrangements___d4e7180-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS"
                            type="xs:int"
                            id="rrangements___d4e7181-1_ID_BUILDIN"/>
@@ -336,7 +357,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -352,7 +374,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -369,7 +392,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -424,72 +448,56 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="rrangements___d4e7224-1_L_APPOITME"/>
-               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
-                           id="rrangements___d4e7225-1">
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
                   </xs:annotation>
                </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                  id="rrangements___d4e7225-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            id="rrangements___d4e7230-1_A_CLASSIFI"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
-                           id="rrangements___d4e7231-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="rrangements___d4e7231-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
+               </xs:element>-->
                <xs:element name="A_ADM_COMPANY"
                            type="xs:string"
                            id="rrangements___d4e7236-1_A_ADM_COMP"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
-                           id="rrangements___d4e7237-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                  id="rrangements___d4e7237-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
-               <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
-                     id="rrangements___d4e7086-1">
-            <xs:annotation>
-               <xs:documentation>Oznaczenie elementu oferty w ramach ktorej wystepuje dane uzgodnienie/kolizja/przeciecie</xs:documentation>
-            </xs:annotation>
-         </xs:element>-->
+               </xs:element>-->
                <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7246-1_ID_OFFER"/>
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
                            minOccurs="0"
@@ -497,7 +505,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -508,6 +517,20 @@
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                            type="xs:int"
                            id="rrangements___d4e7254-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS"
                            type="xs:int"
                            id="rrangements___d4e7255-1_ID_BUILDIN"/>
@@ -518,7 +541,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -537,7 +561,8 @@
                         uzgodnienie</xs:documentation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -553,7 +578,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -612,72 +638,56 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="rrangements___d4e7303-1_L_APPOITME"/>
-               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
-                           id="rrangements___d4e7304-1">
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
                   </xs:annotation>
                </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                  id="rrangements___d4e7304-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            id="rrangements___d4e7309-1_A_CLASSIFI"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
-                           id="rrangements___d4e7310-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="rrangements___d4e7310-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
+               </xs:element>-->
                <xs:element name="A_ADM_COMPANY"
                            type="xs:string"
                            id="rrangements___d4e7315-1_A_ADM_COMP"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
-                           id="rrangements___d4e7316-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                  id="rrangements___d4e7316-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
-               <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
-                     id="rrangements___d4e7086-1">
-            <xs:annotation>
-               <xs:documentation>Oznaczenie elementu oferty w ramach ktorej wystepuje dane uzgodnienie/kolizja/przeciecie</xs:documentation>
-            </xs:annotation>
-         </xs:element>-->
+               </xs:element>-->
                <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7325-1_ID_OFFER"/>
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
                            minOccurs="0"
@@ -685,7 +695,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -696,6 +707,20 @@
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                            type="xs:int"
                            id="rrangements___d4e7333-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS"
                            type="xs:int"
                            id="rrangements___d4e7334-1_ID_BUILDIN"/>
@@ -705,7 +730,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -723,7 +749,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -741,7 +768,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>

+ 2 - 1
SE/schema/ant-object/default_db.InvestArrangements/InvestArrangements_Infrastructure_Placement_Buildings/build.xml

@@ -1 +1,2 @@
-
+<?xml version="1.0" encoding="UTF-8"?>
+<empty/>

+ 209 - 181
SE/schema/ant-object/default_db.InvestArrangements/InvestArrangements_Infrastructure_Placement_Ground/InvestArrangements_Infrastructure_Placement_Ground.xsd

@@ -19,24 +19,26 @@
            xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
            xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
            xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+           xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/InvestArrangements.xsd"
            vc:minVersion="1.1">
+   <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
+              schemaLocation="../../../types.xsd"/>
    <xs:import namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="../Types/gml.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
-              schemaLocation="../SystemObjects/AccessOwner.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
-              schemaLocation="../SystemObjects/AccessGroup.xsd"/>
+              schemaLocation="http://www.opengis.net/gml/3.2"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/Dzialki.xsd"
-              schemaLocation="Dzialki.xsd"/>
+              schemaLocation="../../default_db.Dzialki/Dzialki/Dzialki.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
-              schemaLocation="IN7_DZIENNIK_KORESP.xsd"/>
+              schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW_OFFERS.xsd"
-              schemaLocation="CRM_LISTA_ZASOBOW_OFFERS.xsd"/>
+              schemaLocation="../../default_db.CRM_LISTA_ZASOBOW_OFFERS/CRM_LISTA_ZASOBOW_OFFERS/CRM_LISTA_ZASOBOW_OFFERS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/rurociagi_obce_wsg84.xsd"
-              schemaLocation="rurociagi_obce_wsg84.xsd"/>
+              schemaLocation="../../default_db.rurociagi_obce_wsg84/rurociagi_obce_wsg84/rurociagi_obce_wsg84.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BUILDINGS.xsd"
-              schemaLocation="BUILDINGS.xsd"/>
+              schemaLocation="../../default_db.BUILDINGS/BUILDINGS/BUILDINGS.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
+              schemaLocation="../../default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd"/>
    <xs:simpleType name="A_STATUS_Type" id="rrangements___d4e7067-1_A_STATUS_T">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
@@ -47,12 +49,14 @@
             realizacji. </xs:documentation>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
-               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:InvestArrangements" system_cache__appinfo:heritage_acl="true">
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:InvestArrangements"
+                                              system_cache__appinfo:heritage_acl="true">
                   <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
                   <acl_rule_inherit_to_all_refs_by_primary/>
                   <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_ADM_COMPANY"/>
                </system_cache__appinfo:inherit>
-               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
       </xs:annotation>
@@ -71,71 +75,61 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="rrangements___d4e7077-1_L_APPOITME"/>
-         <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
                      id="rrangements___d4e7078-1">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
-         </xs:element>
+         </xs:element>-->
          <xs:element name="A_CLASSIFIED"
                      type="xs:string"
                      id="rrangements___d4e7083-1_A_CLASSIFI"/>
-         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+         <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="rrangements___d4e7084-1">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
-         </xs:element>
+         </xs:element>-->
          <xs:element name="A_ADM_COMPANY"
                      type="xs:string"
                      id="rrangements___d4e7089-1_A_ADM_COMP"/>
-         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+         <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
                      id="rrangements___d4e7090-1">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
-         </xs:element>
-         <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-         <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-         <!--<xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
-                     id="rrangements___d4e7086-1">
-            <xs:annotation>
-               <xs:documentation>Oznaczenie elementu oferty w ramach ktorej wystepuje dane uzgodnienie/kolizja/przeciecie</xs:documentation>
-            </xs:annotation>
          </xs:element>-->
          <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7099-1_ID_OFFER"/>
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -144,7 +138,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -154,7 +149,25 @@
          </xs:element>
          <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                      type="xs:int"
-                     id="rrangements___d4e7107-1_ID_KORESP_"/>
+                     id="rrangements___d4e7107-1_ID_KORESP_">
+            <xs:annotation>
+               <xs:documentation>Powiazany natywny numer korespondencji</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="ID_BUILDINGS"
                      type="xs:int"
                      id="rrangements___d4e7108-1_ID_BUILDIN"/>
@@ -164,7 +177,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -183,7 +197,8 @@
                   uzgodnienie</xs:documentation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -198,7 +213,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -248,66 +264,56 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="rrangements___d4e7151-1_L_APPOITME"/>
-               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
-                           id="rrangements___d4e7152-1">
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
                   </xs:annotation>
                </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                  id="rrangements___d4e7152-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            id="rrangements___d4e7157-1_A_CLASSIFI"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
-                           id="rrangements___d4e7158-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="rrangements___d4e7158-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
+               </xs:element>-->
                <xs:element name="A_ADM_COMPANY"
                            type="xs:string"
                            id="rrangements___d4e7163-1_A_ADM_COMP"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
-                           id="rrangements___d4e7164-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                  id="rrangements___d4e7164-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
-               <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
+               </xs:element>-->
                <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7172-1_ID_OFFER"/>
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
                            minOccurs="0"
@@ -315,7 +321,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -326,6 +333,20 @@
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                            type="xs:int"
                            id="rrangements___d4e7180-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS"
                            type="xs:int"
                            id="rrangements___d4e7181-1_ID_BUILDIN"/>
@@ -336,7 +357,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -352,7 +374,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -369,7 +392,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -424,72 +448,56 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="rrangements___d4e7224-1_L_APPOITME"/>
-               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
-                           id="rrangements___d4e7225-1">
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
                   </xs:annotation>
                </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                  id="rrangements___d4e7225-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            id="rrangements___d4e7230-1_A_CLASSIFI"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
-                           id="rrangements___d4e7231-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="rrangements___d4e7231-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
+               </xs:element>-->
                <xs:element name="A_ADM_COMPANY"
                            type="xs:string"
                            id="rrangements___d4e7236-1_A_ADM_COMP"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
-                           id="rrangements___d4e7237-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                  id="rrangements___d4e7237-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
-               <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
-                     id="rrangements___d4e7086-1">
-            <xs:annotation>
-               <xs:documentation>Oznaczenie elementu oferty w ramach ktorej wystepuje dane uzgodnienie/kolizja/przeciecie</xs:documentation>
-            </xs:annotation>
-         </xs:element>-->
+               </xs:element>-->
                <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7246-1_ID_OFFER"/>
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
                            minOccurs="0"
@@ -497,7 +505,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -508,6 +517,20 @@
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                            type="xs:int"
                            id="rrangements___d4e7254-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS"
                            type="xs:int"
                            id="rrangements___d4e7255-1_ID_BUILDIN"/>
@@ -518,7 +541,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -537,7 +561,8 @@
                         uzgodnienie</xs:documentation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -553,7 +578,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -612,72 +638,56 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="rrangements___d4e7303-1_L_APPOITME"/>
-               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
-                           id="rrangements___d4e7304-1">
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
                   </xs:annotation>
                </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                  id="rrangements___d4e7304-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            id="rrangements___d4e7309-1_A_CLASSIFI"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
-                           id="rrangements___d4e7310-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="rrangements___d4e7310-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
+               </xs:element>-->
                <xs:element name="A_ADM_COMPANY"
                            type="xs:string"
                            id="rrangements___d4e7315-1_A_ADM_COMP"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
-                           id="rrangements___d4e7316-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                  id="rrangements___d4e7316-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
-               <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
-                     id="rrangements___d4e7086-1">
-            <xs:annotation>
-               <xs:documentation>Oznaczenie elementu oferty w ramach ktorej wystepuje dane uzgodnienie/kolizja/przeciecie</xs:documentation>
-            </xs:annotation>
-         </xs:element>-->
+               </xs:element>-->
                <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7325-1_ID_OFFER"/>
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
                            minOccurs="0"
@@ -685,7 +695,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -696,6 +707,20 @@
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                            type="xs:int"
                            id="rrangements___d4e7333-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS"
                            type="xs:int"
                            id="rrangements___d4e7334-1_ID_BUILDIN"/>
@@ -705,7 +730,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -723,7 +749,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -741,7 +768,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>

+ 2 - 1
SE/schema/ant-object/default_db.InvestArrangements/InvestArrangements_Infrastructure_Placement_Ground/build.xml

@@ -1 +1,2 @@
-
+<?xml version="1.0" encoding="UTF-8"?>
+<empty/>

+ 209 - 181
SE/schema/ant-object/default_db.InvestArrangements/InvestArrangements_Network_Crossings/InvestArrangements_Network_Crossings.xsd

@@ -19,24 +19,26 @@
            xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
            xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
            xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+           xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/InvestArrangements.xsd"
            vc:minVersion="1.1">
+   <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
+              schemaLocation="../../../types.xsd"/>
    <xs:import namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="../Types/gml.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
-              schemaLocation="../SystemObjects/AccessOwner.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
-              schemaLocation="../SystemObjects/AccessGroup.xsd"/>
+              schemaLocation="http://www.opengis.net/gml/3.2"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/Dzialki.xsd"
-              schemaLocation="Dzialki.xsd"/>
+              schemaLocation="../../default_db.Dzialki/Dzialki/Dzialki.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
-              schemaLocation="IN7_DZIENNIK_KORESP.xsd"/>
+              schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW_OFFERS.xsd"
-              schemaLocation="CRM_LISTA_ZASOBOW_OFFERS.xsd"/>
+              schemaLocation="../../default_db.CRM_LISTA_ZASOBOW_OFFERS/CRM_LISTA_ZASOBOW_OFFERS/CRM_LISTA_ZASOBOW_OFFERS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/rurociagi_obce_wsg84.xsd"
-              schemaLocation="rurociagi_obce_wsg84.xsd"/>
+              schemaLocation="../../default_db.rurociagi_obce_wsg84/rurociagi_obce_wsg84/rurociagi_obce_wsg84.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BUILDINGS.xsd"
-              schemaLocation="BUILDINGS.xsd"/>
+              schemaLocation="../../default_db.BUILDINGS/BUILDINGS/BUILDINGS.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
+              schemaLocation="../../default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd"/>
    <xs:simpleType name="A_STATUS_Type" id="rrangements___d4e7067-1_A_STATUS_T">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
@@ -47,12 +49,14 @@
             realizacji. </xs:documentation>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
-               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:InvestArrangements" system_cache__appinfo:heritage_acl="true">
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:InvestArrangements"
+                                              system_cache__appinfo:heritage_acl="true">
                   <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
                   <acl_rule_inherit_to_all_refs_by_primary/>
                   <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_ADM_COMPANY"/>
                </system_cache__appinfo:inherit>
-               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
       </xs:annotation>
@@ -71,71 +75,61 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="rrangements___d4e7077-1_L_APPOITME"/>
-         <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
                      id="rrangements___d4e7078-1">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
-         </xs:element>
+         </xs:element>-->
          <xs:element name="A_CLASSIFIED"
                      type="xs:string"
                      id="rrangements___d4e7083-1_A_CLASSIFI"/>
-         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+         <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="rrangements___d4e7084-1">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
-         </xs:element>
+         </xs:element>-->
          <xs:element name="A_ADM_COMPANY"
                      type="xs:string"
                      id="rrangements___d4e7089-1_A_ADM_COMP"/>
-         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+         <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
                      id="rrangements___d4e7090-1">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
-         </xs:element>
-         <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-         <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-         <!--<xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
-                     id="rrangements___d4e7086-1">
-            <xs:annotation>
-               <xs:documentation>Oznaczenie elementu oferty w ramach ktorej wystepuje dane uzgodnienie/kolizja/przeciecie</xs:documentation>
-            </xs:annotation>
          </xs:element>-->
          <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7099-1_ID_OFFER"/>
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -144,7 +138,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -154,7 +149,25 @@
          </xs:element>
          <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                      type="xs:int"
-                     id="rrangements___d4e7107-1_ID_KORESP_"/>
+                     id="rrangements___d4e7107-1_ID_KORESP_">
+            <xs:annotation>
+               <xs:documentation>Powiazany natywny numer korespondencji</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="ID_BUILDINGS"
                      type="xs:int"
                      id="rrangements___d4e7108-1_ID_BUILDIN"/>
@@ -164,7 +177,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -183,7 +197,8 @@
                   uzgodnienie</xs:documentation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -198,7 +213,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                   system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
@@ -248,66 +264,56 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="rrangements___d4e7151-1_L_APPOITME"/>
-               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
-                           id="rrangements___d4e7152-1">
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
                   </xs:annotation>
                </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                  id="rrangements___d4e7152-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            id="rrangements___d4e7157-1_A_CLASSIFI"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
-                           id="rrangements___d4e7158-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="rrangements___d4e7158-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
+               </xs:element>-->
                <xs:element name="A_ADM_COMPANY"
                            type="xs:string"
                            id="rrangements___d4e7163-1_A_ADM_COMP"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
-                           id="rrangements___d4e7164-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                  id="rrangements___d4e7164-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
-               <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
+               </xs:element>-->
                <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7172-1_ID_OFFER"/>
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
                            minOccurs="0"
@@ -315,7 +321,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -326,6 +333,20 @@
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                            type="xs:int"
                            id="rrangements___d4e7180-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS"
                            type="xs:int"
                            id="rrangements___d4e7181-1_ID_BUILDIN"/>
@@ -336,7 +357,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -352,7 +374,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -369,7 +392,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -424,72 +448,56 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="rrangements___d4e7224-1_L_APPOITME"/>
-               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
-                           id="rrangements___d4e7225-1">
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
                   </xs:annotation>
                </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                  id="rrangements___d4e7225-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            id="rrangements___d4e7230-1_A_CLASSIFI"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
-                           id="rrangements___d4e7231-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="rrangements___d4e7231-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
+               </xs:element>-->
                <xs:element name="A_ADM_COMPANY"
                            type="xs:string"
                            id="rrangements___d4e7236-1_A_ADM_COMP"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
-                           id="rrangements___d4e7237-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                  id="rrangements___d4e7237-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
-               <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
-                     id="rrangements___d4e7086-1">
-            <xs:annotation>
-               <xs:documentation>Oznaczenie elementu oferty w ramach ktorej wystepuje dane uzgodnienie/kolizja/przeciecie</xs:documentation>
-            </xs:annotation>
-         </xs:element>-->
+               </xs:element>-->
                <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7246-1_ID_OFFER"/>
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
                            minOccurs="0"
@@ -497,7 +505,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -508,6 +517,20 @@
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                            type="xs:int"
                            id="rrangements___d4e7254-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS"
                            type="xs:int"
                            id="rrangements___d4e7255-1_ID_BUILDIN"/>
@@ -518,7 +541,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -537,7 +561,8 @@
                         uzgodnienie</xs:documentation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -553,7 +578,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -612,72 +638,56 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="rrangements___d4e7303-1_L_APPOITME"/>
-               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
-                           id="rrangements___d4e7304-1">
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
                   </xs:annotation>
                </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                  id="rrangements___d4e7304-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            id="rrangements___d4e7309-1_A_CLASSIFI"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
-                           id="rrangements___d4e7310-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="rrangements___d4e7310-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
+               </xs:element>-->
                <xs:element name="A_ADM_COMPANY"
                            type="xs:string"
                            id="rrangements___d4e7315-1_A_ADM_COMP"/>
-               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
-                           id="rrangements___d4e7316-1">
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                  id="rrangements___d4e7316-1">
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                   </xs:annotation>
-               </xs:element>
-               <!--<xs:element ref="default_db__x3A__CRM_PROCES:PROCES_INIT" back reffered
-                     minOccurs="0"
-                     id="_SALES_PLAN___d4e31890-1">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROCES"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT" minOccurs="0"> to be backreferred
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>
-         </xs:element>-->
-               <!--<xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
-                     id="rrangements___d4e7086-1">
-            <xs:annotation>
-               <xs:documentation>Oznaczenie elementu oferty w ramach ktorej wystepuje dane uzgodnienie/kolizja/przeciecie</xs:documentation>
-            </xs:annotation>
-         </xs:element>-->
+               </xs:element>-->
                <xs:element name="ID_OFFER" type="xs:int" id="rrangements___d4e7325-1_ID_OFFER"/>
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
                            minOccurs="0"
@@ -685,7 +695,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_OFFER"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -696,6 +707,20 @@
                <xs:element name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
                            type="xs:int"
                            id="rrangements___d4e7333-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_KORESP_INVEST_ARRANGEMENT_DEAL"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_BUILDINGS"
                            type="xs:int"
                            id="rrangements___d4e7334-1_ID_BUILDIN"/>
@@ -705,7 +730,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BUILDINGS"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:BUILDINGS/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -723,7 +749,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_Dzialki"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__Dzialki:Dzialki_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
@@ -741,7 +768,8 @@
                   <xs:annotation>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known" system_cache__appinfo:ref_engine="view"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_rurociagi_obce_wsg84_Known"
+                                                         system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__rurociagi_obce_wsg84:rurociagi_obce_wsg84_Known/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>

+ 2 - 1
SE/schema/ant-object/default_db.InvestArrangements/InvestArrangements_Network_Crossings/build.xml

@@ -1 +1,2 @@
-
+<?xml version="1.0" encoding="UTF-8"?>
+<empty/>