{"id":26404139,"url":"https://github.com/sassine/sqlschema2java","last_synced_at":"2025-03-17T16:20:40.235Z","repository":{"id":41961122,"uuid":"475198063","full_name":"Sassine/sqlschema2java","owner":"Sassine","description":"sqlschema2java generates Java types from SQLSchema and annotate those types for data-binding with Jackson 2.x, Javax Persistence and Spring Repository.","archived":false,"fork":false,"pushed_at":"2023-11-30T14:56:43.000Z","size":171,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-13T15:56:37.415Z","etag":null,"topics":["antlr4","class","classloader","dto","dto-entity-mapper","entity","jackson","java","java-library","jpa-hibernate","lombok","maven","maven-plugin","reflection","sql","sql-schema"],"latest_commit_sha":null,"homepage":"https://sassine.dev","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sassine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","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},"funding":{"github":"Sassine","ko_fi":"sassineasmar"}},"created_at":"2022-03-28T22:25:19.000Z","updated_at":"2023-03-17T04:42:51.000Z","dependencies_parsed_at":"2023-11-30T15:53:23.313Z","dependency_job_id":null,"html_url":"https://github.com/Sassine/sqlschema2java","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sassine%2Fsqlschema2java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sassine%2Fsqlschema2java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sassine%2Fsqlschema2java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sassine%2Fsqlschema2java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sassine","download_url":"https://codeload.github.com/Sassine/sqlschema2java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066191,"owners_count":20392407,"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":["antlr4","class","classloader","dto","dto-entity-mapper","entity","jackson","java","java-library","jpa-hibernate","lombok","maven","maven-plugin","reflection","sql","sql-schema"],"created_at":"2025-03-17T16:20:39.365Z","updated_at":"2025-03-17T16:20:40.223Z","avatar_url":"https://github.com/Sassine.png","language":"Java","funding_links":["https://github.com/sponsors/Sassine","https://ko-fi.com/sassineasmar","https://ko-fi.com/P5P8C2H8Q"],"categories":[],"sub_categories":[],"readme":"# SQLSchema2Java  [![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)\n\n\n[![Coverage Status](https://coveralls.io/repos/github/Sassine/sqlschema2java/badge.svg?branch=main)](https://coveralls.io/github/Sassine/sqlschema2java?branch=main)\n[![CodeQL main](https://github.com/Sassine/sqlschema2java/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Sassine/sqlschema2java/actions/workflows/codeql-analysis.yml)\n\n![Maven Central](https://img.shields.io/maven-central/v/dev.sassine.api/sqlschema2java-core?color=purple\u0026label=SQLSchema2java%20-%20Core\u0026logo=java\u0026logoColor=red\u0026style=flat-square)\n![Maven Central](https://img.shields.io/maven-central/v/dev.sassine.api/sqlschema2java-maven-plugin?color=purple\u0026label=SQLSchema2java%20-%20Maven-Plugin\u0026logo=java\u0026logoColor=red\u0026style=flat-square)\n\n\n![Logo SQL2JAVA  and website adress sassine.dev/sqlschema2java](https://sassine.dev/assets/images/SQLSchema2Java_Logo2.png)\n\n\n_sqlschema2java_ generates Java types from SQLSchema and annotate those types for data-binding with Jackson 2.x, Javax Persistence and Spring Repository.\n\n![File SQL -\u003e Funil -\u003e Generate Files DTO, Entity and Repostiory.java](https://sassine.dev/assets/images/funil.png?a=1)\n\n\n\nYou can use sqlschema2java as a Maven plugin. \n[**Try at the sample project exemple**](https://github.com/Sassine/sqlschema2java/tree/main/sqlschema2java-example)\n\n[**Read Getting Started**](https://github.com/Sassine/sqlschema2java/wiki/Getting-Started)\n\n## Implementation\n\n#### A very simple Maven example:\n```xml \npom.xml\n \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003edev.sassine.api\u003c/groupId\u003e\n                \u003cartifactId\u003esqlschema2java-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e1.0.0-beta\u003c/version\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003egenerate\u003c/goal\u003e\n                        \u003c/goals\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n                \u003cconfiguration\u003e\n                    \u003csourceDirectory\u003e./example.sql\u003c/sourceDirectory\u003e\n                    \u003cpackageName\u003edev.sassine.api\u003c/packageName\u003e\n                    \u003cuseAutoIncrement\u003etrue\u003c/useAutoIncrement\u003e\n                    \u003cusePostgreSQL\u003efalse\u003c/usePostgreSQL\u003e\n                \u003c/configuration\u003e\n            \u003c/plugin\u003e\n\u003c/plugins\u003e\n\n\n```\n###  Parameters\n| Name | required |  type | description |\n|--|--|--|--|\n| sourceDirectory  | true | String | SQL file path |\n| packageName | true | String | package name with points that will be generated |\n| useAutoIncrement| false | Boolean| disable or enable whether the primary key will have its value generated automatically |\n| usePostgreSQL | true | Boolean | disable or enable query conversion compatible with postgres database |\n\n\n#####  Run command \n```bash\nmvn dev.sassine.api:sqlschema2java-maven-plugin:generate\n```\nSuccessful ✨\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/P5P8C2H8Q)\n\n## License\n\n[![GitHub license](https://img.shields.io/github/license/Sassine/sqlschema2java.svg)](https://github.com/Sassine/sqlschema2java/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsassine%2Fsqlschema2java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsassine%2Fsqlschema2java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsassine%2Fsqlschema2java/lists"}