摘要:
HibernateTest.java代码:/*** */package com.b510.examplex;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;/**** @author XHW** @date 2011-7-15**/public class HibernateTest {/** * @param args */public static void main(String[] args) {new HibernateTest().ge 阅读全文
摘要:
hibernate.cfg.xml代码:<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><!-- Generated by MyEclipse Hibe 阅读全文
摘要:
HibernateTest.java代码:/*** */package com.b510.examplex;import org.hibernate.Session;/**** @author XHW** @date 2011-7-15**/public class HibernateTest {/** * @param args */public static void main(String[] args) {new HibernateTest().getGuestbooks();}public void getGuestbooks(){Session session=HibernateS 阅读全文
摘要:
HibernateTest.java代码: 1 /** 2 * 3 */ 4 package com.b510.examplex; 5 6 import org.hibernate.Session; 7 8 9 /**10 *11 * @author XHW12 *13 * @date 2011-7-1514 *15 */16 public class HibernateTest {17 18 /**19 * @param args20 */21 public static void main(String[] args) {22 new Hiberna... 阅读全文