社区
Java EE
帖子详情
ibator生成代码 insert()报空指针
bsty2014
2014-09-21 01:25:52
用ibator生成的代码 我调用selectByExample()和insert()方法都报空指针异常,查询或者插入的对象都存在,这是为啥
...全文
120
4
打赏
收藏
ibator生成代码 insert()报空指针
用ibator生成的代码 我调用selectByExample()和insert()方法都报空指针异常,查询或者插入的对象都存在,这是为啥
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
tony4geek
2014-09-25
打赏
举报
回复
调试看看那句出错?
tom_66
2014-09-25
打赏
举报
回复
看异常信息,看看是多少行抛出的空指针,然后检查代码里那一行的对象,是不是有可能为空。或者加断点,debug
bsty2014
2014-09-24
打赏
举报
回复
String openId = fromUserName; String name = request.getParameter("name"); String phoneNum = request.getParameter("phoneNum"); Scposusers scposusers = new Scposusers(); scposusers.setName(name); scposusers.setOpenid(openId); scposusers.setPhonenum(phoneNum); System.out.println(scposusers.toString()); scposusersDAO.insert(scposusers);
执笔记忆的空白
2014-09-22
打赏
举报
回复
贴出你用ibator生成的代码
I
BAT
OR动态
生成
sql和DAO层
此项目通过对i
bat
or的改造,通过执行cmd命令自动
生成
sql与Dao,大大提高开发效率
i
bat
is:使用i
bat
or自动
生成
代码
和配置文件
NULL 博文链接:https://xiao9.iteye.com/blog/954159
为 I
bat
is 2.3.4 构建增强的 Apache I
bat
or 实体类
生成
工具
I
bat
or is a code generator for i
BAT
IS. I
bat
or will introspect a database table (or many tables) and will generate i
BAT
IS artifacts that can be used to access the table(s). This a
bat
es some of the initial nuisance of setting up objects and configuration files to interact with database tables. I
bat
or seeks to make a major impact on the large percentage of database operations that are simple CRUD (Create, Retrieve, Update, Delete). You will still need to hand code SQL and objects for custom queries, or stored procedures. I
bat
or will generate: SqlMap XML Files Java Classes to match the primary key and fields of the table(s) DAO Classes that use the above objects (optional) I
bat
or can run as a standalone JAR file, or as an Ant task, or as an Eclipse plugin. 欲了解更多详细说明,敬请移步:http://blog.csdn.net/DavidHsing/archive/2010/07/12/5729027.aspx
i
bat
or 1.2.1
eclipse的i
bat
is
代码
生成
器,最新版i
bat
or 1.2.1
i
BAT
OR-V1.1.0
i
BAT
OR is a code generator for i
BAT
IS.
Java EE
67,513
社区成员
225,878
社区内容
发帖
与我相关
我的任务
Java EE
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
复制链接
扫一扫
分享
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章