a.binder 8 anni fa
parent
commit
52cca6dbda

+ 186 - 4
SE/schema/ant-object/default_db.BADANIA_W_TERENIE/BADANIA_W_TERENIE/BADANIA_W_TERENIE.xsd

@@ -13,8 +13,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/BADANIA_W_TERENIE.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/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/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
@@ -62,7 +68,9 @@
       </xs:annotation>
       <xs:sequence id="A_W_TERENIE___d5e73649-1">
          <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73650-1_ID"/>
-         <xs:element name="the_geom" id="A_W_TERENIE___d5e73651-1_the_geom">
+         <xs:element name="the_geom"
+                     id="A_W_TERENIE___d5e73651-1_the_geom"
+                     type="gml:AbstractFeatureType">
             <xs:annotation>
                <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
             </xs:annotation>
@@ -76,6 +84,20 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73657-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -140,9 +162,37 @@
          <xs:element name="M_REWIR"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73673-1_M_REWIR"/>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="M_REWIR"
+                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      id="A_W_TERENIE___d5e73674-1_ID_PROJECT"/>
+         <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+            <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_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
       <xs:attribute name="label" id="A_W_TERENIE___d5e73675-1_label"/>
       <xs:assert test="@label = concat(A_STATUS, ' ', L_APPOITMENT_USER)"
@@ -161,7 +211,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73685-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73686-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73687-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73687-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -175,6 +227,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73693-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -239,9 +305,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73709-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73710-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -255,7 +349,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73715-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73716-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73717-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73717-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -273,6 +369,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73726-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -337,9 +447,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73742-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73743-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -353,7 +491,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73748-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73749-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73750-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73750-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -371,6 +511,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73759-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -435,9 +589,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73775-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73776-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 186 - 4
SE/schema/ant-object/default_db.BADANIA_W_TERENIE/BADANIA_W_TERENIE_NORMAL/BADANIA_W_TERENIE_NORMAL.xsd

@@ -13,8 +13,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/BADANIA_W_TERENIE.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/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/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
@@ -62,7 +68,9 @@
       </xs:annotation>
       <xs:sequence id="A_W_TERENIE___d5e73649-1">
          <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73650-1_ID"/>
-         <xs:element name="the_geom" id="A_W_TERENIE___d5e73651-1_the_geom">
+         <xs:element name="the_geom"
+                     id="A_W_TERENIE___d5e73651-1_the_geom"
+                     type="gml:AbstractFeatureType">
             <xs:annotation>
                <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
             </xs:annotation>
@@ -76,6 +84,20 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73657-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -140,9 +162,37 @@
          <xs:element name="M_REWIR"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73673-1_M_REWIR"/>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="M_REWIR"
+                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      id="A_W_TERENIE___d5e73674-1_ID_PROJECT"/>
+         <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+            <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_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
       <xs:attribute name="label" id="A_W_TERENIE___d5e73675-1_label"/>
       <xs:assert test="@label = concat(A_STATUS, ' ', L_APPOITMENT_USER)"
@@ -161,7 +211,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73685-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73686-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73687-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73687-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -175,6 +227,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73693-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -239,9 +305,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73709-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73710-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -255,7 +349,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73715-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73716-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73717-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73717-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -273,6 +369,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73726-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -337,9 +447,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73742-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73743-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -353,7 +491,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73748-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73749-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73750-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73750-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -371,6 +511,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73759-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -435,9 +589,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73775-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73776-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 186 - 4
SE/schema/ant-object/default_db.BADANIA_W_TERENIE/BADANIA_W_TERENIE_OFF_HARD/BADANIA_W_TERENIE_OFF_HARD.xsd

@@ -13,8 +13,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/BADANIA_W_TERENIE.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/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/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
@@ -62,7 +68,9 @@
       </xs:annotation>
       <xs:sequence id="A_W_TERENIE___d5e73649-1">
          <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73650-1_ID"/>
-         <xs:element name="the_geom" id="A_W_TERENIE___d5e73651-1_the_geom">
+         <xs:element name="the_geom"
+                     id="A_W_TERENIE___d5e73651-1_the_geom"
+                     type="gml:AbstractFeatureType">
             <xs:annotation>
                <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
             </xs:annotation>
@@ -76,6 +84,20 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73657-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -140,9 +162,37 @@
          <xs:element name="M_REWIR"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73673-1_M_REWIR"/>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="M_REWIR"
+                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      id="A_W_TERENIE___d5e73674-1_ID_PROJECT"/>
+         <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+            <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_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
       <xs:attribute name="label" id="A_W_TERENIE___d5e73675-1_label"/>
       <xs:assert test="@label = concat(A_STATUS, ' ', L_APPOITMENT_USER)"
@@ -161,7 +211,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73685-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73686-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73687-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73687-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -175,6 +227,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73693-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -239,9 +305,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73709-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73710-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -255,7 +349,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73715-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73716-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73717-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73717-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -273,6 +369,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73726-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -337,9 +447,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73742-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73743-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -353,7 +491,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73748-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73749-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73750-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73750-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -371,6 +511,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73759-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -435,9 +589,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73775-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73776-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 186 - 4
SE/schema/ant-object/default_db.BADANIA_W_TERENIE/BADANIA_W_TERENIE_WAITING/BADANIA_W_TERENIE_WAITING.xsd

@@ -13,8 +13,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/BADANIA_W_TERENIE.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/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/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
@@ -62,7 +68,9 @@
       </xs:annotation>
       <xs:sequence id="A_W_TERENIE___d5e73649-1">
          <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73650-1_ID"/>
-         <xs:element name="the_geom" id="A_W_TERENIE___d5e73651-1_the_geom">
+         <xs:element name="the_geom"
+                     id="A_W_TERENIE___d5e73651-1_the_geom"
+                     type="gml:AbstractFeatureType">
             <xs:annotation>
                <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
             </xs:annotation>
@@ -76,6 +84,20 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73657-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -140,9 +162,37 @@
          <xs:element name="M_REWIR"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73673-1_M_REWIR"/>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="M_REWIR"
+                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      id="A_W_TERENIE___d5e73674-1_ID_PROJECT"/>
+         <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+            <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_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
       <xs:attribute name="label" id="A_W_TERENIE___d5e73675-1_label"/>
       <xs:assert test="@label = concat(A_STATUS, ' ', L_APPOITMENT_USER)"
@@ -161,7 +211,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73685-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73686-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73687-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73687-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -175,6 +227,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73693-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -239,9 +305,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73709-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73710-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -255,7 +349,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73715-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73716-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73717-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73717-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -273,6 +369,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73726-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -337,9 +447,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73742-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73743-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -353,7 +491,9 @@
          <xs:restriction base="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
             <xs:sequence id="A_W_TERENIE___d5e73748-1">
                <xs:element name="ID" type="xs:integer" id="A_W_TERENIE___d5e73749-1_ID"/>
-               <xs:element name="the_geom" id="A_W_TERENIE___d5e73750-1_the_geom">
+               <xs:element name="the_geom"
+                           id="A_W_TERENIE___d5e73750-1_the_geom"
+                           type="gml:AbstractFeatureType">
                   <xs:annotation>
                      <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
                   </xs:annotation>
@@ -371,6 +511,20 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73759-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="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -435,9 +589,37 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73775-1_M_REWIR"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="M_REWIR"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73776-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <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_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>