共 8 篇文章 |
|
$.post传JSON到后台及接收方法。后台用到:json.jar(调用方法:import net.sf.json.JSONObject;)//拼装JSON格式数据json.var json={"edit":[{"bh":"11111","mc":"11111","dbms":"ORACLE9i","dwmmc":"","addr":"","user... 阅2349 转1 评0 公众公开 16-03-20 00:29 |
阅1649 转8 评0 公众公开 16-03-20 00:24 |
阅3620 转27 评0 公众公开 16-03-19 23:38 |
HibernateSessionFactoryUtil类和封装了(增删改查)方法的HibernateTest类。Session session = HibernateSessionFactoryUtil.getSessionFactory().getCurrentSession();public class HibernateTest { public static void main(String args[]){ HibernateTest test = new HibernateTest();// Guestbook gb = (Guestbook) se... 阅338 转3 评0 公众公开 16-03-19 23:33 |
Criteria crit = session.createCriteria(Guestbook.System.out.println("当前数据库中的Guestbook表中一共有" + l + "条name字段为ka字符开始且id值为1-20之间的记录"); Guestbook gb = new Guestbook(); for(int i =0;i<l;i++){ gb = (Guestbook) list.get(i); System.o... 阅414 转1 评0 公众公开 16-03-19 23:32 |
阅929 转25 评0 公众公开 16-03-19 23:29 |
Eclipse 中Hibernate tools 的安装和使用。eclipse->Help>Install New Software>Find and Install->add-> (name:hibernate,URL:http://download.jboss.org/jbosstools/updates/stable/galileo/) eclipse3.6版本。二.hibernate-configuration.如果你不能看到上图所示的Hibernate Configurations窗口,说明你没有打开这个View,选... 阅66 转0 评0 公众公开 15-04-29 10:00 |