{"id":16909228,"url":"https://github.com/linkinstars/auto-coding","last_synced_at":"2025-07-11T05:04:42.976Z","repository":{"id":149443003,"uuid":"159604128","full_name":"LinkinStars/Auto-Coding","owner":"LinkinStars","description":"change sql 2 pojo （mysql建表语句直接生产实体类）","archived":false,"fork":false,"pushed_at":"2019-03-27T10:13:15.000Z","size":103,"stargazers_count":12,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T15:59:30.911Z","etag":null,"topics":["pojo","sql"],"latest_commit_sha":null,"homepage":"","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/LinkinStars.png","metadata":{"files":{"readme":"README.md","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":"2018-11-29T03:49:53.000Z","updated_at":"2023-01-28T09:32:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"467d794f-c0e8-41ac-ac7a-e5675e5004bd","html_url":"https://github.com/LinkinStars/Auto-Coding","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LinkinStars/Auto-Coding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkinStars%2FAuto-Coding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkinStars%2FAuto-Coding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkinStars%2FAuto-Coding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkinStars%2FAuto-Coding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinkinStars","download_url":"https://codeload.github.com/LinkinStars/Auto-Coding/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkinStars%2FAuto-Coding/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264734729,"owners_count":23655725,"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":["pojo","sql"],"created_at":"2024-10-13T18:54:55.885Z","updated_at":"2025-07-11T05:04:42.960Z","avatar_url":"https://github.com/LinkinStars.png","language":"Java","readme":"Auto-Coding\n===========\n\n# Sql2Pojo\n**change sql 2 pojo**\n\n## 前言\n当我们设计完成数据库之后，通常需要创建对应的实体类，有的称为Entity，有的称为DO，都是一个意思，而自己一个个去写非常的麻烦，所以麻烦的时候就需要相应的自动工具类解决这样的麻烦。\n\n## 最后结果\nhttp://www.linkinstars.com:8090/auto-code\n\n使用起来非常简单，输入对应需要的参数，点击change即可生成你需要的实体类。\nsql可以从navicat等类似工具中获得，这里不做赘述。\n\n## 项目中可以修改的点\nresources/ftl/pojo.ftl  \n这个为模板的文件，在这里可以修改注释的位置，有的人喜欢行尾注释，有的人喜欢使用/** **/这样的注释都可以根据自己的喜欢进行修改  \n\u003cbr\u003e\n\nJdbcType2JavaType.java  \n这个为jdbc类型对应java类型，许多类型我是从mybatis中提取出来的，但是并非全部，而且有的类型对应并不是我喜欢的，如：数据库的DECIMAL对应的java类型应该是BigDecimal但是我还是喜欢用double去对应，所以可以根据你自己的喜欢进行修改  \n\n \n其他根据自己需要进行修改即可如application.yml配置的端口号等\n\n## 项目中用到的技术\nspringboot + freemarker\n\n## 更新\n1.0.2 新增语言选项可以选择golang语言（内测中，有问题请反馈)\n\n1.0.1 新增上传sql文件方式转换，上传navicat导出的建表sql语句即可\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkinstars%2Fauto-coding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkinstars%2Fauto-coding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkinstars%2Fauto-coding/lists"}