add sequence for it to behave properly
authorChris Sharp <csharp@georgialibraries.org>
Wed, 7 Jul 2021 15:29:46 +0000 (11:29 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 19 Nov 2022 20:08:00 +0000 (15:08 -0500)
Open-ILS/examples/fm_IDL.xml

index 89d4208..2994e51 100644 (file)
@@ -15645,7 +15645,7 @@ SELECT  usr,
        </class>
 
        <class id="scd" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="student_card::district" oils_persist:tablename="student_card.district" reporter:label="Student Card School District">
-               <fields oils_persist:primary="id">
+               <fields oils_persist:primary="id" oils_persist:sequence="student_card.district_id_seq">
                        <field name="id"                reporter:datatype="id"       reporter:label="District ID"/>
                        <field name="code"              reporter:datatype="text"     reporter:label="District Code"/>
                        <field name="name"              reporter:datatype="text"     reporter:label="District Name"/>
@@ -15667,7 +15667,7 @@ SELECT  usr,
        </class>
 
        <class id="scs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="student_card::school" oils_persist:tablename="student_card.school" reporter:label="Student Card School">
-               <fields oils_persist:primary="id">
+               <fields oils_persist:primary="id" oils_persist:sequence="student_card.school_id_seq">
                        <field name="id"                reporter:datatype="id"       reporter:label="School ID"/>
                        <field name="district_id"       reporter:datatype="link"     reporter:label="District Link"/>
                        <field name="name"              reporter:datatype="text"     reporter:label="School Name"/>