newdevs:db:fm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
newdevs:db:fm [2023/05/22 10:07] – [fields] tlittle | newdevs:db:fm [2024/02/22 10:47] – [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 a view that is defined by SQL in the IDL (see class id=" | ||
=== oils_persist: | === oils_persist: | ||
Line 57: | Line 68: | ||
=== name === | === name === | ||
- | |||
- | === oils_persist: | ||
=== reporter: | === reporter: | ||
Line 66: | Line 75: | ||
=== reltype === | === reltype === | ||
+ | These distinctions are to indicate key directionality. They are not to indicate nullability. | ||
+ | |||
+ | * has_a | ||
+ | * has_many | ||
+ | * might_have | ||
=== key === | === key === | ||
Line 84: | Line 98: | ||
=== 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.txt · Last modified: 2024/02/22 11:25 by tmccanna