Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
jadetang
/
maliang
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
13
Code
Issues
0
Pull requests
2
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
maliang
/
TODO.txt
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
15 lines (11 loc) · 1.17 KB
master
Breadcrumbs
maliang
/
TODO.txt
Copy path
Top
File metadata and controls
Code
Blame
15 lines (11 loc) · 1.17 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
按照是否值得做从前到后排序
0. 更多的模板
1. 领域对象需要更加完善的信息以生成更加强大的模板。例如
~ 某个字段为空,则生成的java对象应该有@NotNull标注。
~ 如果表有一个自增长的id字段,则可以生成selectById,deleteById等方法
~ 如果某些字段是date类型,生成的spring controller方法实际上是需要对于date类型的http参数进行特殊。
现在用的是jsqlparser,这些信息都应该可以拿到,通过修改JavaDataBaseRelationBuilder方法,可以增强model包下的领域模型的信息,例如java type是否是日期类型,是否为空,是否是主键。
或者重新写一个真对create table的parser
2. 目前的路径只能是绝对路径,如果在windows下,配置成/data/dirX之类的路径是不行的,但是log4j等日志框架,可以支持。
3. 目前的ddl只能通过输入的方式,也可以通过直接连数据库的方式来获取,例如mybatis generator的做法。
4. 只支持单表生成sql,可以通过配置表和表之间关系的方式生成join sql和更加复杂的复合model,可以参考 spring roo的one to many的表关系配置。
You can’t perform that action at this time.