资源简介

计算机、软件类专业毕业设计,基于struts和hibernate

资源截图

代码片段和文件信息

package com.ptms.entity;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

import com.ptms.util.HibernateUtil;

public class Init {
private static SessionFactory sf = null;

@BeforeClass
public static void setUpBeforeClass() throws Exception {
     sf = HibernateUtil.getSessionFactory();
}

@Test
public void testSchemaExport() {
Configuration configuration = new Configuration().configure();
new SchemaExport(configuration.configure()).create(false true);
}

@AfterClass
public static void tearDownAfterClass() throws Exception {
sf.close();
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1971  2011-05-20 15:55  ptms_v1.5.5\.classpath

     文件        307  2011-05-20 15:55  ptms_v1.5.5\.mymetadata

     文件       1284  2011-05-20 15:55  ptms_v1.5.5\.project

     文件       1040  2011-05-20 15:55  ptms_v1.5.5\.settings\com.genuitec.eclipse.j2eedt.core.prefs

     文件        148  2011-05-20 15:55  ptms_v1.5.5\.settings\org.eclipse.core.resources.prefs

     文件        330  2011-05-20 15:55  ptms_v1.5.5\.settings\org.eclipse.jdt.core.prefs

     文件        756  2011-05-20 15:55  ptms_v1.5.5\junit\com\ptms\entity\Init.java

     文件       1054  2011-05-20 15:55  ptms_v1.5.5\junit\com\ptms\jfreechart\ChartTest.java

     文件       5080  2011-05-20 15:55  ptms_v1.5.5\src\.struts.mex

     文件       7039  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\AddAction.java

     文件       1984  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\AdminAction.java

     文件       1841  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\BookAction.java

     文件       4200  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\DeleteAction.java

     文件       1593  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\GetAdministerAction.java

     文件       2826  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\GetDestinationAction.java

     文件       2566  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\GetFrequencyAction.java

     文件       1841  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\GetMyTicketsAction.java

     文件       3139  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\GetTicketsAction.java

     文件       3651  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\GetTicketsInfoAction.java

     文件       1065  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\InitAction.java

     文件       1610  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\InitSystemAction.java

     文件       2024  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\LoginAction.java

     文件        677  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\LogoutAction.java

     文件       2078  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\ModifyAction.java

     文件       2249  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\PageAction.java

     文件       2060  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\RefundAction.java

     文件       1621  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\SaleAction.java

     文件       2137  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\SignupAction.java

     文件       3301  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\StatisticsAction.java

     文件       5251  2011-05-20 15:55  ptms_v1.5.5\src\com\ptms\action\TrolleyAction.java

............此处省略1148个文件信息

评论

共有 条评论