{"id":18826201,"url":"https://github.com/otaviojava/static-metamodel-data","last_synced_at":"2026-01-21T04:30:18.236Z","repository":{"id":201386635,"uuid":"707324253","full_name":"otaviojava/static-metamodel-data","owner":"otaviojava","description":"A prototype to Jakarta Data StaticMetamodel data","archived":false,"fork":false,"pushed_at":"2023-10-31T14:13:36.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T05:28:27.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/otaviojava.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-19T16:58:44.000Z","updated_at":"2023-10-21T00:22:06.000Z","dependencies_parsed_at":"2023-10-27T15:34:10.171Z","dependency_job_id":"5561138d-4b9f-4bf7-a3ea-473ead349117","html_url":"https://github.com/otaviojava/static-metamodel-data","commit_stats":null,"previous_names":["otaviojava/static-metamodel-data"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviojava%2Fstatic-metamodel-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviojava%2Fstatic-metamodel-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviojava%2Fstatic-metamodel-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviojava%2Fstatic-metamodel-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otaviojava","download_url":"https://codeload.github.com/otaviojava/static-metamodel-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239763670,"owners_count":19692800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T01:03:05.050Z","updated_at":"2026-01-21T04:30:18.082Z","avatar_url":"https://github.com/otaviojava.png","language":"Java","readme":"= Jakarta Data and NoSQL Prototype\n:toc: auto\n:toclevels: 2\n\nThis repository is a prototype for exploring and utilizing the Jakarta Data StaticMetamodel annotation. The goal is to generate a model for Jakarta NoSQL and Jakarta Persistence entities using two different approaches: one at build time using a Java Annotation Processor and the other at runtime using reflection and CDI extension.\n\n== Build Time Generation\n\nIn this approach, a Java Annotation Processor is used to generate a final and immutable model at build time. The processor generates `AttributeInfo` implementations using a Mustache template as immutable classes.\n\n== Runtime Generation\n\nThe second approach involves using reflection and CDI extension to generate the model at runtime. It scans a `StaticMetamodel` class and sets the instances matching the field names.\n\n=== Project Structure\n\nThe project is structured into three main folders:\n\n==== `build-time`\n\nThe `build-time` folder contains the project engine for generating classes at build time. It uses a Mustache template to generate immutable `AttributeInfo` implementations. This approach ensures compile-time safety and efficiency.\n\n==== `runtime`\n\nThe `runtime` folder contains the engine that operates in reflection with CDI. It scans a `StaticMetamodel` class and sets instances matching the field names. This approach allows for runtime generation and flexibility.\n\n==== `entity-sample-build`\n\nThe `entity-sample-build` folder includes sample entities and tests for the build-time project. This folder is a useful resource to demonstrate and test the build-time generation process.\n\nEach of these folders serves a specific purpose in the prototype's development.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotaviojava%2Fstatic-metamodel-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotaviojava%2Fstatic-metamodel-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotaviojava%2Fstatic-metamodel-data/lists"}