{"id":19002782,"url":"https://github.com/teamapps-org/universal-db-maven-plugin","last_synced_at":"2025-07-23T10:35:05.540Z","repository":{"id":98502650,"uuid":"209983046","full_name":"teamapps-org/universal-db-maven-plugin","owner":"teamapps-org","description":"Maven plugin for UniversalDB","archived":false,"fork":false,"pushed_at":"2024-07-08T17:55:34.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T13:43:52.421Z","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/teamapps-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2019-09-21T12:40:04.000Z","updated_at":"2024-07-08T17:55:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f688a070-3ccf-4f54-971f-6ec1f0ccdfe3","html_url":"https://github.com/teamapps-org/universal-db-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/teamapps-org/universal-db-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamapps-org%2Funiversal-db-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamapps-org%2Funiversal-db-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamapps-org%2Funiversal-db-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamapps-org%2Funiversal-db-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teamapps-org","download_url":"https://codeload.github.com/teamapps-org/universal-db-maven-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamapps-org%2Funiversal-db-maven-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260089724,"owners_count":22957144,"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-08T18:16:21.189Z","updated_at":"2025-06-16T03:07:46.212Z","avatar_url":"https://github.com/teamapps-org.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# UniversalDB maven plugin\n\nMaven plugin for UniversalDB\n\n## Build configuration\n\nAdd this to your pom.xml:\n\n```xml\n    \u003cbuild\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003eorg.teamapps\u003c/groupId\u003e\n                \u003cartifactId\u003euniversal-db-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e1.2\u003c/version\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cphase\u003egenerate-sources\u003c/phase\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003egenerate-model\u003c/goal\u003e\n                        \u003c/goals\u003e\n                        \u003cconfiguration\u003e\n                            \u003cmodelSourceDirectory\u003e${project.basedir}/src/main/model\u003c/modelSourceDirectory\u003e\n                            \u003cmodelClasses\u003e\n                                \u003cmodelClass\u003eModel\u003c/modelClass\u003e\n                            \u003c/modelClasses\u003e\n                        \u003c/configuration\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n    \u003c/build\u003e\n```\n\n## Create UniversalDB schema\n\nAdd a source folder e.g. `/src/main/model` and create a model class e.g. `Model`:\n\n```java\nimport org.teamapps.universaldb.Database;\nimport org.teamapps.universaldb.Schema;\nimport org.teamapps.universaldb.SchemaInfoProvider;\nimport org.teamapps.universaldb.index.Table;\n\npublic class Model implements SchemaInfoProvider {\n\n\tpublic String getSchema() {\n\t\tSchema schema = Schema.create();\n\t\tDatabase database = schema.createDatabase(\"databaseName\");\n\t\tTable table = database.createTable(\"table1\");\n\t\tTable table2 = database.createTable(\"table2\");\n\t\ttable\n\t\t\t\t.addText(\"textColumn1\")\n\t\t\t\t.addText(\"textColumn2\")\n\t\t\t\t.addTimestamp(\"timestamp\")\n\t\t\t\t.addEnum(\"enumValue\", \"value1\", \"value2\", \"value3\")\n\t\t\t\t.addInteger(\"number\")\n\t\t\t\t.addLong(\"bigNumber\")\n\t\t\t\t.addReference(\"reference\", table2, true, \"backRef\");\n\n\t\ttable2\n\t\t\t\t.addText(\"text\")\n\t\t\t\t.addReference(\"backRef\", table, false, \"reference\");\n\n\t\treturn schema.getSchema();\n\t}\n}\n```\n\n## License\n\nThe UniversalDB maven plugin is released under version 2.0 of the [Apache License](https://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamapps-org%2Funiversal-db-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamapps-org%2Funiversal-db-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamapps-org%2Funiversal-db-maven-plugin/lists"}