{"id":19439153,"url":"https://github.com/fartherp/code-generator-core","last_synced_at":"2026-05-17T07:40:03.621Z","repository":{"id":90742243,"uuid":"115404957","full_name":"fartherp/code-generator-core","owner":"fartherp","description":"自动生成自定义mybatis基础代码","archived":false,"fork":false,"pushed_at":"2018-05-28T01:36:28.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T21:35:32.265Z","etag":null,"topics":["mybatis","mybatis-generator","spring"],"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/fartherp.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":"2017-12-26T08:58:09.000Z","updated_at":"2018-05-28T01:36:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f073abe-8cd6-4684-a482-3a4271ed18d8","html_url":"https://github.com/fartherp/code-generator-core","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fartherp%2Fcode-generator-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fartherp%2Fcode-generator-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fartherp%2Fcode-generator-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fartherp%2Fcode-generator-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fartherp","download_url":"https://codeload.github.com/fartherp/code-generator-core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619554,"owners_count":19830226,"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":["mybatis","mybatis-generator","spring"],"created_at":"2024-11-10T15:21:35.791Z","updated_at":"2026-05-17T07:39:58.581Z","avatar_url":"https://github.com/fartherp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mybatis自动生成工具\n\n### 表命名规范：\n表名以tb_或td_开头(留个好习惯),如:菜单表:tb_menu\n\n### Framework生成的文件\n#### JAVA文件\n* Bo\n    基本对象,对应数据库相应的表信息。\n\t如:菜单表,MenuBase,Menu两个类Base对应的是数据的各个字段信息,非Base类是对基础类的扩展.\n* Dao\n    持久层。\n\t如:MenuMapper,对应mybatis文件中相应的SQL方法.MenuDao,MenuDaoImpl.\n* Service\n    service层,事务配置在此.\n\t如:MenuService，MenuServiceImpl.\n目前只能使用XML方式来配置事务.基本方法中增删改查为,save,update,del,find.\n\n#### XML文件\n* xml文件mapper。\n\t如：BaseMenuMapper.xml，基础XML文件，包括增删改查方法。MenuMapper是XML的扩展，自定义方法放在里面。\n\t\n### PPms生成的文件\n#### JAVA文件\n* Po 基本对象. 如:Menu,对应表的各个字段信息.\n* Dao dao层. 如:MenuDao.对应mybatis文件中相应的SQL方法.\n* Service service层. 如:MenuService,MenuServiceImpl.\n* Action action层. 如:Action.\n\n#### XML文件\n* xml文件mapper. 如:MenuMapper.xml. 基本方法中包括增(insert),批量增(insertBatch),改(update),删(delete),查(get),查列表(列表),分页(findPage).\n\n#### spring文件\n* spring对应的action, servlet, tx.\n\t\n### 感谢开源项目\n![MyBatis](https://camo.githubusercontent.com/196d30052623ff7b233765c5f641dbc8ae2f287d/687474703a2f2f6d7962617469732e6769746875622e696f2f696d616765732f6d7962617469732d6c6f676f2e706e67)\n---\n[MyBatis Generator](https://github.com/mybatis/generator.git)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffartherp%2Fcode-generator-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffartherp%2Fcode-generator-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffartherp%2Fcode-generator-core/lists"}