快速生成 java bean 工具
2017-07-19 00:00
127 查看
摘要: 自己做的一个开发中常用工具
快速生成 java bean 工具
在写代码过程中经常会去写一张表的column,当一张表中内有五六十个字段的时候特别容易写错,本工具是快速生成 java Field 的一个工具,避免在写实体类过程中把字段名写错而诞生此工具
效果:
git地址:http://git.oschina.net/zgdhd/JavaDBField
如果觉得还不错,请点个赞
快速生成 java bean 工具
在写代码过程中经常会去写一张表的column,当一张表中内有五六十个字段的时候特别容易写错,本工具是快速生成 java Field 的一个工具,避免在写实体类过程中把字段名写错而诞生此工具
效果:
@NotNull(message="参数[theId]不能为空") @Max(999999999) private Long theId;//自增ID [the_id, 10] @NotNull(message="参数[theName]不能为空") @Length(message="参数[the_name]长度不能超过16", max = 16) private String theName;//名 [the_name, 16] @NotNull(message="参数[theValue]不能为空") @Length(message="参数[the_value]长度不能超过32767", max = 32767) private String theValue;//值 [the_value, 32767] private byte[] thepic;//图片 [thePic, 65535] @NotNull(message="参数[thenum]不能为空") @Max(999999999) private BigDecimal thenum;//number [theNum, 10] @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date thedate;//日期 [theDate, null] private Timestamp thedatetime;//时间戳 [theDatetime, null] @NotNull(message="参数[theDouble]不能为空") @Max(999999999999999999999) private Double theDouble;//Double [the_double, 22] @NotNull(message="参数[theFloat]不能为空") @Max(99999999999) private Float theFloat;//浮点 [the_float, 12] @NotNull(message="参数[theinteger]不能为空") @Max(999999999) private Long theinteger;//大Int(Integer) [theInteger, 10] @NotNull(message="参数[theChar]不能为空") @Length(message="参数[the_char]长度不能超过127", max = 127) private String theChar;//字节 char [the_char, 127] //共[11]个字段
git地址:http://git.oschina.net/zgdhd/JavaDBField
如果觉得还不错,请点个赞
相关文章推荐
- Android Studio 定制快速生成Jni 头文件工具 Ndk教程
- 如何利用NB代码生成工具和NBear框架,快速开发WEB项目
- 快速生成移动设备应用图标的在线工具 - makeappicon
- VVDocument 快速生成注释工具(适用于Xcode6)
- 快速生成移动设备应用图标的在线工具 - makeappicon
- 使用SchemaSpy逆向工程生成数据库依赖关系使用SchemaSpy工具可以快速的从数据库中得到
- https://www.5ceo.cn/generator/index.htm [5CEO.cn-代码生成工具,在线快速生成java代码,springmvc框架]
- Web API应用架构在Winform混合框架中的应用(4)--利用代码生成工具快速开发整套应用
- 用rapid-framework开源工具快速生成SSH的网站框架MVC模式
- AppIcon各种图片的生成使用Prepo工具快速便捷
- unity 快速生成ui代码工具
- Android Studio 定制快速生成Jni 头文件工具 Ndk教程
- 【自用建设中小型网站工具】快速生成后台
- 翻译:Laravel-4-Generators 使用自定义代码生成工具快速进行Laravel开发
- 用rapid-framework开源工具快速生成SSH的网站框架MVC模式
- WinForm版软件快速开发工具平台,生成B/S软件项目
- 软件代码生成工具--软工厂V2.0版本免费使用地址+教学视频,快速完成开发任务。
- 【自用建设中小型网站工具】快速生成后台
- Coco/R 快速编译器生成工具