随笔分类 -  Hibernate

xdoclet生成hibernate映射文件
摘要:1. 打开xdoclet-plugins-1.0.3\plugins\xdoclet-plugin-hibernate-1.0.3.jar2. winrar打开并找到 org\xdoclet\plugin\hibernate\property.jelly文件 3. 将其解压后将property标签中的access="${property.access}"去掉4. 将修改好的property.jelly 覆盖掉原来位置上的property.jelly 5. 生成hibernate映射文件,property标签里就没有access="field"了 在hib 阅读全文
posted @ 2010-08-04 16:20 你画的彩虹 阅读(129) 评论(0) 推荐(0)
HashSet集合
摘要:java.lang.Object |_ java.util.AbstractCollection<E> |_ java.util.AbstractSet<E> |_ java.util.HashSet<E>HashSet中不允许有重复的元素。例如:Set hashSet = new HashSet(); hashSet.add(new String("aaa")); hashSet.add(new String("bbb")); hashSet.add(new String("ccc")); has 阅读全文
posted @ 2010-07-16 15:24 你画的彩虹 阅读(1971) 评论(0) 推荐(1)