摘要: http://www.blogjava.net/TrampEagle/archive/2006/05/26/48326.html 阅读全文
posted @ 2015-06-17 14:14 BigShui 阅读(93) 评论(0) 推荐(0) 编辑
摘要: http://jingyan.baidu.com/article/aa6a2c14d99f7b0d4c19c4d7.html 阅读全文
posted @ 2015-06-06 16:03 BigShui 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1:临时状态 new2: 持久化状态 save ,get,update3: 脱管状态 clear close, evict在操作了hibernate的方法如save()等后,并没有直接生成sql语句,去操作数据库,而是把这些更新存入Session中,只有Session缓存要被更新时,底层的sql... 阅读全文
posted @ 2015-05-11 19:02 BigShui 阅读(185) 评论(0) 推荐(0) 编辑
摘要: public class generator extends hibernateUtil { /* * increment机制是int 查找当前id的最大值加1,两次查询效率底点 * Hibernate: select max(id) from Person Hibernate: i... 阅读全文
posted @ 2015-05-11 18:57 BigShui 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1:hibernate操作的帮助类public class hibernateUtil { public static SessionFactory factory; static{ Configuration cfg = new Configuration(); cfg.configure()... 阅读全文
posted @ 2015-05-11 18:48 BigShui 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1:注册表单get方式请求数据,不要传参数2:请求的 servlet对客户端提交的数据进行校验public class sevletDemo2 extends HttpServlet { private static final long serialVersionUID = 1L; p... 阅读全文
posted @ 2015-05-08 22:49 BigShui 阅读(267) 评论(0) 推荐(0) 编辑
摘要: JSON(JavaScript Object Notation)一种简单的数据格式,比xml更轻巧。JSON是JavaScript原生格式,这意味着在JavaScript中处理JSON数据不需要任何特殊的API或工具包。 JSON的规则很简单:对象是一个无序的“‘名称/值’对”集合。一个对象以“{”... 阅读全文
posted @ 2015-05-08 22:45 BigShui 阅读(350) 评论(0) 推荐(0) 编辑
摘要: ajax学习 阅读全文
posted @ 2015-04-13 11:13 BigShui 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-04-12 18:40 BigShui 阅读(90) 评论(0) 推荐(0) 编辑
摘要: import java.awt.List;import java.io.File;import java.io.FileOutputStream;import java.io.FileWriter;import java.util.Iterator;import org.dom4j.Document... 阅读全文
posted @ 2015-04-04 21:09 BigShui 阅读(176) 评论(0) 推荐(0) 编辑