lqxue
导航
BlogJava
首页
新随笔
联系
聚合
管理
<
2007年4月
>
日
一
二
三
四
五
六
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
留言簿
(4)
给我留言
查看公开留言
查看私人留言
随笔分类
c(1)
(rss)
cad(2)
(rss)
database(27)
(rss)
ejb(2)
(rss)
html(20)
(rss)
java(16)
(rss)
jsp/taglib(2)
(rss)
linux(10)
(rss)
network(3)
(rss)
other(3)
(rss)
soa(4)
(rss)
sport(1)
(rss)
struts(1)
(rss)
web(12)
(rss)
web service(9)
(rss)
xml(6)
(rss)
算法(2)
(rss)
文章分类
book
(rss)
收藏夹
perl(2)
(rss)
web2.0(13)
(rss)
收藏(24)
(rss)
随笔档案
2008年11月 (3)
2008年10月 (2)
2008年9月 (3)
2008年7月 (12)
2008年6月 (12)
2008年5月 (10)
2008年4月 (2)
2008年3月 (1)
2008年2月 (2)
2008年1月 (1)
2007年12月 (4)
2007年11月 (3)
2007年10月 (10)
2007年9月 (4)
2007年8月 (18)
2007年7月 (16)
2007年6月 (18)
2007年5月 (20)
2007年4月 (10)
2007年3月 (1)
2007年2月 (1)
文章档案
2007年3月 (1)
相册
Me
阅读排行榜
1. [收藏]MyEclipse5.5,注册码(11753)
2. html:select 使用(1935)
3. svnservice下载地址(1481)
4. 为什么在hibernate中用list影射one-to-many时,在查询数据时,经常有null值(989)
5. mysql 判断表是否存在(965)
评论排行榜
1. [收藏]MyEclipse5.5,注册码(29)
2. 清除文件中含有指定特征字符串(例如puma166)的行。(6)
3. svnservice下载地址(4)
4. 根据已有的表创建新表(2)
5. [收藏]javascript调试(1)
常用链接
我的随笔
我的评论
我的参与
最新评论
统计
随笔 - 153
文章 - 1
评论 - 47
引用 - 0
book
Apache 重写规则的常见应用 (rewrite)
http://lamp.linux.gov.cn/Apache/ApacheMenu/rewrite/rewrite_guide.html http://www.eygle.com/digest/2005/09/apache_oeoeooaeuooa_rewrite.html http://bbs.phpres.com/archiver/tid-2093.html
c3p0 - JDBC3 Connection and Statement Pooling
十八春
林彪的这一生
林氏三兄弟
讲解数据库调优与程序员相关的几个方面
tools
经典强大的服务器软件Apache
linux的命令详解2
spring 、 struts 整合
在eclipse上配置svn
或http://dev2dev.bea.com.cn/techdoc/20060620822.html
如何在Windows Console下使用命令svn
通过 JAX-RPC 来处理异常
配置适用于正式使用环境下的Tomcat Web服务器双向SSL认证
最新评论
1. re: [收藏]MyEclipse5.5,注册码
@暗暗11
--wang
2. re: [收藏]MyEclipse5.5,注册码
3Q3Q
--asadas
3. re: [收藏]MyEclipse5.5,注册码
太感谢了
--tigerchou
4. re: [收藏]MyEclipse5.5,注册码
非常感谢!
--D
5. re: [收藏]javascript调试[未登录]
Implied global
--a
为什么在hibernate中用list影射one-to-many时,在查询数据时,经常有null值
Learned a little this weekend - Bag vs List in Hibernate. I was troubled since i really wanted to have a Java ArrayList in my object so i could index in my jsp and iterate over the list in an update form. Using a Hibernate Set left me unable to index. A Hibernate List left the Java ArrayList populated using the primary key - if the keys were 0,1,2,... that would have been ok. But i only needed a few items from the database in my ArrayList and since the Hibernate List maintains the position of the object in the ArrayList equal to the position in the database the technique was leaving holes in my ArrayList of nulls. Of course this was not what i wanted. Now this may be explained in the documentation but after reading it twice i did not fully understand the Hibernate List. Over the weekend i read the book Hibernate in Action and discovered the Hibernate Bag and it solved my problem. I can use a Java ArrayList that is loaded simply by adding new objects to the beginning of the ArrayList.
posted on 2007-04-05 16:50
lqx
阅读(989)
评论(0)
编辑
收藏
IT新闻
新用户注册
刷新评论列表
标题
姓名
主页
验证码
*
内容(请不要发表任何与政治相关的内容)
Remember Me?
登录
使用高级评论
新用户注册
返回页首
恢复上次提交
[使用Ctrl+Enter键可以直接提交]
相关链接:
网站导航:
博客园
BlogJava
博客生活
IT博客网
C++博客
PHP博客
博客园社区
管理博客
教师博客
天文博客
汽车博客
足球博客
股票博客
电子博客
管理
Powered by:
BlogJava
Copyright © lqx