Hibernate version:
hibernate3.0beta1
hibernate-metadata test case
Mapping documents:
<session-factory>
<property name="hibernate.connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:microsoft
qlserver://localhost:1433;DatabaseName=sjpt2005</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password"></property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="show_sql">true</property>
<property name="transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.cache.provider_class">
org.hibernate.cache.EhCacheProvider
</property>
</session-factory>
Full stack trace of any exception that occurs:
org.hibernate.test.metadata.Flight
org.hibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.
at org.hibernate.dialect.Dialect.getDialect(Dialect.java:419)
at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:859)
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:613)
at org.hibernate.cfg.AnnotationBinder.processElementsOfAClass(AnnotationBinat junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474)
Name and version of the database you are using:
sql server2000
Hibernate Annotations test can not work , i don't konw how to work with testcase ,who can tell me please?
Debug level Hibernate log excerpt: