摘要: 1.ProductType的JPA映射View Code 1 @Entity 2 public class ProductType { 3 private int id; 4 private String name; 5 private String note; 6 private boolean visible = true; 7 private Set<ProductType> child; 8 private ProductType parent; 9 10 @Id @GeneratedValue(strategy = Gener... 阅读全文
posted @ 2012-03-25 17:44 xiao秋 阅读(766) 评论(0) 推荐(0) 编辑
摘要: a.完成spring+jpa的集成并测试成功b.导入strut1所用的jar包c.在web.xml添加spring的启动配置代码:View Code 1 <context-param>2 <param-name>contextConfigLocation</param-name>3 <param-value>classpath:beans.xml</param-value>4 </context-param>5 <listener>6 <listener-class>org.springframew 阅读全文
posted @ 2012-03-25 12:43 xiao秋 阅读(774) 评论(0) 推荐(0) 编辑