锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
]]>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!--鏄劇ず鎵ц鐨凷QL璇彞-->
<property name="show_sql">true</property>
<!--榪炴帴瀛楃涓?->
<property name="connection.url">jdbc:mysql://localhost:3306/Test</property>
<!--榪炴帴鏁版嵁搴撶殑鐢ㄦ埛鍚?->
<property name="connection.username">sa</property>
<!--鏁版嵁搴撶敤鎴峰瘑鐮?->
<property name="connection.password">sa</property>
<!--鏁版嵁搴撻┍鍔?->
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<!--JDBC榪炴帴姹狅紙浣跨敤鍐呯疆鐨勮繛鎺ユ睜錛?->
<property name="connection.pool_size">1</property>
<!--璁劇疆Hibernate鑷姩綆$悊涓婁笅鏂囩殑絳栫暐-->
<property name="current_session_context_class">thread</property>
<!--閫夋嫨浣跨敤鐨勬柟璦-->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!--鍦ㄥ惎鍔ㄦ椂鍒犻櫎騫墮噸鏂板垱寤烘暟鎹簱-->
<property name="hbm2ddl.auto">create</property>
<mapping resource="events/User.hbm.xml"/>
<mapping resource="events/Student.hbm.xml"/>
</session-factory>
</hibernate-configuration>
jar鍖呭悕縐?/p>
鎵鍦ㄤ綅緗?/p>
璇存槑
antlr-2.7.6.jar
hibernate/lib/required
瑙f瀽HQL
aspectjrt
spring/lib/aspectj
AOP
aspectjweaver
..
AOP
cglib-nodep-2.1_3.jar
spring/lib/cglib
浠g悊錛屼簩榪涘埗澧炲己
common-annotations.jar
spring/lib/j2ee
@Resource
commons-collections-3.1.jar
hibernate/lib/required
闆嗗悎妗嗘灦
commons-fileupload-1.2.1.jar
struts/lib
struts
commons-io-1.3.2
struts/lib
struts
commons-logging-1.1.1
鍗曠嫭涓嬭澆錛屽垹闄?.0.4(struts/lib)
struts
spring
dom4j-1.6.1.jar
hibernate/required
瑙f瀽xml
ejb3-persistence
hibernate-annotation/lib
@Entity
freemarker-2.3.13
struts/lib
struts
hibernate3.jar
hibernate
hibernate-annotations
hibernate-annotation/
hibernate-common-annotations
hibernate-annotation/lib
javassist-3.9.0.GA.jar
hiberante/lib/required
hibernate
jta-1.1.jar
..
hibernate transaction
junit4.5
mysql-
ognl-2.6.11.jar
struts/lib
slf4j-api-1.5.8.jar
hibernate/lib/required
hibernate-log
slf4j-nop-1.5.8.jar
hibernate/lib/required
spring.jar
spring/dist
struts2-core-2.1.6.jar
struts/lib
xwork-2.1.2.jar
struts/lib
struts2
commons-dbcp
spring/lib/jarkata-commons
commons-pool.jar
..
struts2-spring-plugin-2.1.6.jar
struts/lib