Gilhari Relationships With Implicit Attributes Example
Illustrates Gilhari's implicit attributes feature for automatic foreign key management in JSON objects within a RESTful microservice.
Gilhari is a Docker-compatible microservice framework that provides RESTful Object-Relational Mapping (ORM) functionality for JSON objects with any relational database, automating REST API handling and database schema setup without manual coding. This specific example demonstrates Gilhari's powerful implicit attributes feature, which automatically populates foreign key values in contained (referenced) JSON objects based on their containing (referencing) parent objects. This significantly simplifies JSON object creation by eliminating the need for client code to explicitly specify redundant foreign key values in child objects, leading to cleaner JSON structures, reduced errors, and automatic cascading deletions with BYVALUE semantics.