jubincn

导航

2012年4月6日 #

复杂对象ibatis插入,属性为list,怎么一次性插入

摘要: 转自:http://mzhj.iteye.com/blog/1030359public class PfStuffInfoVo implements Serializable {/** 信息Id */ private String infoId; /** 项目Id */ private String proid;/** 附件信息 */ private List fileList;...这是我的对象 该怎么把fileList属性已插入,PfFileVo 有对应的表貌似iBatis没有提供多个关联对象的同时插入你需要再Service层调用多个DAO去做多个关联对象的插入操作批处理在iBatis里是 阅读全文

posted @ 2012-04-06 16:47 jubincn 阅读(710) 评论(0) 推荐(0)

Errors occurred while updating the change sets for SVNStatusSubscriber的解决

摘要: 在linux的eclipse中,保存文件时出现了这个问题:Errors occurred while updating the change sets for SVNStatusSubscriber看详细信息发现我的build文件夹不在svn中,将其加入到svn中就可以了。当然,这不是一种好的方法,但可以用作权宜之计。 阅读全文

posted @ 2012-04-06 16:36 jubincn 阅读(1451) 评论(0) 推荐(0)

MySQL中修改主字段属性为auto_increment

摘要: 使用MySQL Query Browser中可以很方便的实现,使用命令行的话可以使用alter table 表名 modify column来实现。ALTER TABLE `c`.`a` MODIFY COLUMN `a` BIGINT(20) NOT NULL AUTO_INCREMENT;在执行这个命令时,可能会遇到这个错误:ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '1' for key 'PRIMARY'在网上找到的解决方法是将表中主键为0的记 阅读全文

posted @ 2012-04-06 15:31 jubincn 阅读(693) 评论(0) 推荐(0)