a.binder 8 лет назад
Родитель
Сommit
b52c960418

+ 60 - 12
SE/schema/ant-object/default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd

@@ -162,7 +162,18 @@
          <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS"/>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
+                     ref="default_db__x3A__SALES_PLAN:SALES_PLAN">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__SALES_PLAN:SALES_PLAN/ID_PROJECT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>podstawowa relacja - od SALES_PLAN jest jako BACKREF</xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -645,8 +656,8 @@
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
                      <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                   system_cache__appinfo:name=""
-                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                                                   system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID_PROJECT"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
                <xs:documentation>
@@ -661,8 +672,8 @@
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
                      <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                   system_cache__appinfo:name=""
-                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                                                   system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID_PROJECT"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
                <xs:documentation>
@@ -672,7 +683,20 @@
          </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
+                     ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
+            <xs:annotation>
+               <xs:documentation>
+                  Podstawowa relacja, jest jeszcze od BADANIA_W_TERENIE jako backref
+               </xs:documentation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE/ID_PROJECT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
                      minOccurs="0"/>
@@ -781,7 +805,18 @@
                <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS"/>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
+                           ref="default_db__x3A__SALES_PLAN:SALES_PLAN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                         system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SALES_PLAN:SALES_PLAN/ID_PROJECT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>podstawowa relacja - od SALES_PLAN jest jako BACKREF</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -1264,8 +1299,8 @@
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
                            <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name=""
-                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                                                         system_cache__appinfo:name="ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID_PROJECT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      <xs:documentation>
@@ -1280,8 +1315,8 @@
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
                            <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name=""
-                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                                                         system_cache__appinfo:name="ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID_PROJECT"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      <xs:documentation>
@@ -1291,7 +1326,20 @@
                </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
+                           ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE">
+                  <xs:annotation>
+                     <xs:documentation>
+                        Podstawowa relacja, jest jeszcze od BADANIA_W_TERENIE jako backref
+                     </xs:documentation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE/ID_PROJECT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
                            minOccurs="0"/>

+ 2 - 1
SE/schema/ant-object/default_db.SALES_PLAN/SALES_PLAN/SALES_PLAN.xsd

@@ -199,10 +199,11 @@ Protopyowy obiekt, który powinien mieć typy konkretnych rodzaji dla różnych
                </system_cache__appinfo:flat_relation_cache>
             </xs:appinfo>-->
                <xs:appinfo>
-                     <system_cache__appinfo:flat_relation_cache>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="NAZWA_REWI" system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
                      </system_cache__appinfo:flat_relation_cache>
                   </xs:appinfo>
+               <xs:documentation>dodatk relacja na backref </xs:documentation>
             </xs:annotation>
          </xs:element>
       </xs:sequence>