newdevs:db:fm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
newdevs:db:fm [2023/05/22 10:07] – [fields] tlittle | newdevs:db:fm [2024/02/22 11:25] (current) – [oils_persist:virtual] tmccanna | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== The Fieldmapper ====== | ====== The Fieldmapper ====== | ||
- | The fieldmapper (fm_IDL.xml) maps the fields! It defines objects’ fields, linked fields from other objects, and permissions needed to access various things. Most of the Evergreen code (including the reports engine) accesses the database content via the fieldmapper rather than accessing the database directly. | + | The fieldmapper ('' |
* [[https:// | * [[https:// | ||
Line 13: | Line 13: | ||
* < | * < | ||
+ | |||
+ | Outline of fieldmapper classes: | ||
+ | |||
+ | * [[evergreen-user: | ||
Line 23: | Line 27: | ||
===== Parts of the Fieldmapper ===== | ===== Parts of the Fieldmapper ===== | ||
- | ==== Class header ==== | + | ==== class header ==== |
=== class === | === class === | ||
Line 35: | Line 39: | ||
* open-ils.pcrud | * open-ils.pcrud | ||
* open-ils.reporter-store | * open-ils.reporter-store | ||
+ | |||
=== oils_obj: | === oils_obj: | ||
+ | |||
+ | === oils_persist: | ||
=== oils_persist: | === oils_persist: | ||
+ | This essentially means that the class or field is not " | ||
+ | |||
+ | < | ||
+ | | ||
+ | It can also be used to indicate such things as a view that is defined by SQL in the IDL rather than in the database. | ||
=== oils_persist: | === oils_persist: | ||
Line 64: | Line 76: | ||
=== reltype === | === reltype === | ||
+ | These distinctions are to indicate key directionality. They are not to indicate nullability. | ||
+ | |||
+ | * has_a | ||
+ | * has_many | ||
+ | * might_have | ||
=== key === | === key === | ||
Line 82: | Line 99: | ||
=== actions === | === actions === | ||
== options == | == options == | ||
- | The create, update, and delete permissions __must__ correspond to a permission. | ||
- | * create | + | |
- | * retrieve | + | |
- | * update | + | |
- | * delete | + | |
+ | |||
+ | If using the create/ | ||
== context_field == | == context_field == |
newdevs/db/fm.1684764450.txt.gz · Last modified: 2023/05/22 10:07 by tlittle