2014年7月21日

ssh 注解(annotation)

摘要: Struts2注解@Action(value="login",results={ @Result(name="login",type="redirectAction",params={"actionName","index","namespace","/","code","10... 阅读全文

posted @ 2014-07-21 16:23 jiandan123 阅读(232) 评论(0) 推荐(0)

hibernate缓存

摘要: memcache 服务器缓存, ehcache服务器缓存使用ehcache 导入jar 包 添加ehcache.xml 设置二级缓存 ehcache.xml hibernate.cfg.xml org.hi... 阅读全文

posted @ 2014-07-21 16:15 jiandan123 阅读(139) 评论(0) 推荐(0)

hibernate的数据关联映射

摘要: 数据关联映射分为:一对多、多对一,一对一,多对多。cascade属性•save-update:在执行保存和修改是进行级联操作•delete:在执行删除时进行级联操作•all:在所有情况下进行级联操作•none:不进行级联操作(默认)抓取策略一对多、多对一一对多、多对一持久化类设计// User类pu... 阅读全文

posted @ 2014-07-21 10:48 jiandan123 阅读(176) 评论(0) 推荐(0)

导航