2013年10月17日
摘要: 基于JavaScript的HashSet实现。像这种有用的工具类应该再多一些。 阅读全文
posted @ 2013-10-17 11:08 月涛阑珊 阅读(1919) 评论(0) 推荐(0)
  2013年10月15日
摘要: 首先,当创建一个表的时候,该自增字段必须是serial类型。其次,在entity类里面的数据类型应该和数据库中的数据类型保持一致。最后,在hibernate.hbm.xml配置文件中作如下设置:1 2 3 xxx_id_seq4 5 阅读全文
posted @ 2013-10-15 09:48 月涛阑珊 阅读(611) 评论(0) 推荐(0)
摘要: 1 2 12 13 14 15 16 17 18 org.springframework.web.servlet.view.JstlView19 20 21 /page/22 23 24 .jsp25 26 27 28 阅读全文
posted @ 2013-10-15 09:46 月涛阑珊 阅读(233) 评论(0) 推荐(0)
摘要: 1 2 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 阅读全文
posted @ 2013-10-15 09:42 月涛阑珊 阅读(765) 评论(0) 推荐(0)
摘要: 在Hibernate4与Spring3的集成中,已经不再使用Hibernate Template了。那么SessionFactory要如何获取呢? 1 package demo; 2 3 import org.hibernate.SessionFactory; 4 import org.hibernate.cfg.Configuration; 5 import org.hibernate.service.ServiceRegistry; 6 import org.hibernate.service.ServiceRegistryBuilder; 7 8 public final class.. 阅读全文
posted @ 2013-10-15 09:36 月涛阑珊 阅读(384) 评论(0) 推荐(0)
摘要: 1 2 7 8 9 contextConfigLocation10 classpath*:application-context_beans.xml11 12 13 14 15 org.springframework.web.context.ContextLoaderListener16 17 18 19 20 SpringServlet21 SpringServlet22 23 ... 阅读全文
posted @ 2013-10-15 09:36 月涛阑珊 阅读(665) 评论(0) 推荐(0)
  2013年10月14日
摘要: Hibernate4基于XML的配置文件与以前版本并无太大区别。 阅读全文
posted @ 2013-10-14 11:01 月涛阑珊 阅读(438) 评论(0) 推荐(0)