摘要 |
The systems and methods described herein relate to dynamic runtime modifications of an object-relational mapping behavior associated with a relational persistence layer. In various embodiments, access to a relational persistence layer, such as a relational database management system may be provided via an object-relational mapper (ORM). The ORM may map data from the relational persistence layer to an object oriented domain model. The ORM may include a plurality of field mappers configured with an original mapping strategy to map an entity field from the relational persistence layer to the object-oriented domain model. One or more of the field mappers may be configured with a dynamic adjustment strategy that allows the selected field mapper(s) to be injected with a temporary or conditional mapping behavior. The dynamic adjustment strategy may be initialized with the field mapper at startup, while the injection of temporary or conditional mappings may be performed during runtime. |