{"id":20064115,"url":"https://github.com/sagframe/sqltoy-strict","last_synced_at":"2026-03-10T04:34:12.107Z","repository":{"id":56999806,"uuid":"291904975","full_name":"sagframe/sqltoy-strict","owner":"sagframe","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-14T14:21:26.000Z","size":83930,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T17:33:28.731Z","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/sagframe.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-01T05:27:59.000Z","updated_at":"2025-02-12T06:39:02.000Z","dependencies_parsed_at":"2024-03-11T08:57:10.152Z","dependency_job_id":null,"html_url":"https://github.com/sagframe/sqltoy-strict","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sagframe/sqltoy-strict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagframe%2Fsqltoy-strict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagframe%2Fsqltoy-strict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagframe%2Fsqltoy-strict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagframe%2Fsqltoy-strict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sagframe","download_url":"https://codeload.github.com/sagframe/sqltoy-strict/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagframe%2Fsqltoy-strict/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30324453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-13T13:44:53.207Z","updated_at":"2026-03-10T04:34:12.076Z","avatar_url":"https://github.com/sagframe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 演示严格分DTO(VO)和POJO(Entity) 的项目实现过程\n## 1. quickvo-maven-plugin 插件\n\n* 区别在于quickvo.xml的配置,额外增加了entity实体对象生成\n\n```xml\n\u003ctasks dist=\"../../src/main/java\" encoding=\"UTF-8\"\u003e\n\t\t\u003ctask active=\"true\" author=\"zhongxuchen\" include=\"^SAG_\\w+\" datasource=\"quickstart\" swagger-model=\"true\"\u003e\n\t\t    \u003c!-- entity 默认是包含抽象类的，可以通过 has-abstract=\"false\" 关闭 --\u003e\n\t\t    \u003c!-- entity 分成抽象类和实体类目的在于可以在实体类上做一些属性扩展,便于扩展附加查询属性 --\u003e\n\t\t\t\u003centity package=\"${project.package}.sagacity.entity\" substr=\"Sag\" name=\"#{subName}\"/\u003e\n\t\t\t\u003cvo package=\"${project.package}.sagacity.vo\" substr=\"Sag\" name=\"#{subName}VO\" /\u003e\n\t\t\u003c/task\u003e\n\t\t\u003ctask active=\"true\" author=\"zhongxuchen\" include=\"^SYS_\\w+\" datasource=\"quickstart\" swagger-model=\"true\"\u003e\n\t\t\t\u003centity package=\"${project.package}.system.entity\" substr=\"Sys\" name=\"#{subName}\"/\u003e\n\t\t\t\u003cvo package=\"${project.package}.system.vo\" substr=\"Sys\" name=\"#{subName}VO\" /\u003e\n\t\t\u003c/task\u003e\n\u003c/tasks\u003e\n```\n\n## 2. 数据初始化\n* 在mysql中创建strict数据库，并配置src/main/resoruces下面的application.properties\n* 执行src/main/resources/mock/strict_init.sql 完成表结构和数据初始化\n\n## 3. 阅读src/main/java下面com.strict.modules.sagacity 和 system模块下面的代码\n\n## 4. 通过启动StrictApplication进行swagger演示\n* 访问:http://localhost:8080/sqltoy-strict/springdoc/docs.html\n* 可以完成字典分类的维护和唯一性验证，参见:DictTypeController\n\n# 规则说明\n## sqltoy常规情况下通过LightDao来避免开发者写转接式的dao\n* 转接式的Dao就是本质可以通过统一的dao来完成的，为了保持service、dao这种结构形态，刻意写出一个dao然后其中不包含任何的附加逻辑只做一个转调\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagframe%2Fsqltoy-strict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagframe%2Fsqltoy-strict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagframe%2Fsqltoy-strict/lists"}