item05 订货
文章平均质量分 87
chaoyv
这个作者很懒,什么都没留下…
展开
-
Struts2+Hibernate entity+dao+biz+tool
Goods 实体层及注解 package entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax....原创 2014-11-29 16:30:29 · 125 阅读 · 0 评论 -
Struts2+Hibernate hibernate.cfg.xml+util
hibernate.cfg.xml 配置 <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibern...原创 2014-11-29 16:49:32 · 123 阅读 · 0 评论 -
Struts2+Hibernate Action+struts.xml+jsp
GetAllGoodsAction 控制器 package action; import java.util.ArrayList; import java.util.List; import entity.Goods; import biz.GoodsBiz; import biz.impl.GoodsBizImpl; import com.opensymphony.xwork2...原创 2014-11-29 17:33:13 · 216 阅读 · 0 评论 -
Struts2+Hibernate entity+dao+biz+tool
mport javax.persistence.Id; import javax.persistence.SequenceGenerator; import javax.persistence.Table; /** * 商品表 * */ @Entity @Table(name="t_goods") public class Goods { @Id @GeneratedValue(generator="seq_goods",strategy=原创 2014-11-29 16:30:29 · 94 阅读 · 0 评论 -
Struts2+Hibernate hibernate.cfg.xml+util
bernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <!-- Generated by MyEclipse Hibernate Tools. --> <hibernate-configuration> <session-factory> <!-- 数据库URL -->原创 2014-11-29 16:49:32 · 90 阅读 · 0 评论 -
Struts2+Hibernate Action+struts.xml+jsp
xwork2.ActionSupport; /** * 获取所有商品表的信息 Action * */ public class GetAllGoodsAction extends ActionSupport { private GoodsBiz goodsBiz=new GoodsBizImpl(); private List<Goods> goods=new ArrayList<Goods>(); public GoodsB原创 2014-11-29 17:33:13 · 94 阅读 · 0 评论