编程资料集中营
 | 网站首页 | 文章中心 | 编程资料2 | 软件下载 | BT下载 | 八卦星闻 | 音乐在线 | 在线游戏 | 免费电影 | 进入问吧 | 
Hibernate version:,,
您现在的位置: 编程资料,学习资料,c,c++,vc,vc++,java,jsp,j2ee,j2me,asp,php >> 文章中心 >> JAVA 专区 >> Hibernate 技术 >> 文章正文
【字体:
Hibernate version:   进入问吧

本站地址:http://www.bajiao123.com

作者:admin    文章来源:网络    点击数:    更新时间:2006-12-27    

Hibernate version:

来源:WEB开发资源联盟(http://cnpoint.com/)
作者:point
原文:Hibernate version:(http://cnpoint.com/framwwork/2006/1224/content_4763.htm)

Hibernate version:

3.0

Mapping documents:

<?xml version="1.0" ?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >


<hibernate-mapping>
<class name="test.UserObject" table="USEROBJECT">
<id name="id" column="ID" type="long">
<generator class="native" />
</id>
<property name="name" column="NAME" type="string" />
</class>
</hibernate-mapping>

Hibernate Configuration

<?xml version="1.0" ?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd" >

<hibernate-configuration>
<session-factory>
<property name="connection.username">prhodes</property>
<property name="connection.password">redacted</property>
<property name="connection.url">jdbc:db2://localhost:50000/HIBTEST</property>
<property name="connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">org.hibernate.transaction.JOTMTransactionManagerLookup</property>
<property name="current_session_context_class">jta</property>
<property name="jta.UserTransaction">java:comp/UserTransaction</property>

<mapping resource="test/UserObject.hbm.xml" />

</session-factory>


</hibernate-configuration>


Name and version of the database you are using:

DB/2 8.1.0

logging excerpt:

23:53:36,984 INFO [Environment] Hibernate 3.0.5
23:53:36,984 INFO [Environment] hibernate.properties not found
23:53:36,984 INFO [Environment] using CGLIB reflection optimizer
23:53:37,000 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
23:53:37,093 WARN [TestDriver] Welcome to TRANSACT!
23:53:37,109 INFO [jotm] JOTM started with a local transaction factory which is not bound.
23:53:37,109 INFO [jotm] CAROL initialization
23:53:37,125 DEBUG [ConfigurationRepository] Return empty properties, URL is null
23:53:37,125 DEBUG [ConfigurationRepository] Build protocol object for protocol name found 'cmi'.
23:53:37,140 DEBUG [ConfigurationRepository] Cmi is not available, don't configure it.
23:53:37,140 DEBUG [ConfigurationRepository] Build protocol object for protocol name found 'jeremie'.
23:53:37,140 DEBUG [ConfigurationRepository] Build protocol object for protocol name found 'iiop'.
23:53:37,140 DEBUG [ConfigurationRepository] Build protocol object for protocol name found 'jrmp'.
23:53:37,140 INFO [ConfigurationRepository] No protocols were defined for property 'carol.protocols', trying with default protocol = 'jrmp'.
23:53:37,375 DEBUG [jotm] default constructor 
23:53:37,406 INFO [jta] JOTM 2.0.10
23:53:37,406 DEBUG [jta] TransactionFactory=org.objectweb.jotm.TransactionFactoryImpl@110003
23:53:37,406 DEBUG [jta] Batch constructor 
23:53:37,406 DEBUG [jta] Clock constructor 
23:53:37,421 DEBUG [recovery] TransactionRecoveryImpl constructor 
23:53:37,421 DEBUG [recovery] JOTM Recovery is disabled
23:53:37,421 DEBUG [jotm] UserTransaction=org.objectweb.jotm.Current@290fbc
23:53:37,468 INFO [Configuration] configuring from file: hibernate.cfg.xml
23:53:37,578 DEBUG [DTDEntityResolver] trying to locate http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in classpath under org/hibernate/
23:53:37,578 DEBUG [DTDEntityResolver] found http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in classpath
23:53:37,625 DEBUG [Configuration] connection.username=prhodes
23:53:37,625 DEBUG [Configuration] connection.password=@dilbert
23:53:37,625 DEBUG [Configuration] connection.url=jdbc:db2://localhost:50000/HIBTEST
23:53:37,625 DEBUG [Configuration] connection.driver_class

[1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页

   

进入问吧

本站地址:http://www.bajiao123.com

文章录入:admin    责任编辑:admin 
高级搜索
编程资料集中营