/**
*
*/
package com.laotou99.test1;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
import com.laotou99.domain.Test1;
import com.laotou99.domain.Test2;
/**
* @author gjj
*
*/
public class MainTest1 {
/**
*
*/
public MainTest1() {
// TODO Auto-generated constructor stub
}
/**
* @param args
*/
public static void main(String[] args) {
Configuration conf = new Configuration()
.addAnnotatedClass(com.laotou99.domain.Test1.class)
.addAnnotatedClass(com.laotou99.domain.Test2.class)
.setProperty("hibernate.connection.driver_class"
, "com.mysql.jdbc.Driver")
.setProperty("hibernate.connection.url"
, "jdbc:mysql://localhost:3306/