Beginner |
|
Joined: Tue May 11, 2004 10:21 am Posts: 20
|
Hibernate version:
2.1.6
Mapping documents:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- properties -->
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/Ads?autoReconnect=true</property>
<property name="hibernate.connection.username">tkoc</property>
<property name="hibernate.connection.password">trustno1</property>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<!-- Mapping files -->
<mapping resource="com/classads/hh/AdInfoView.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Full stack trace of any exception that occurs:
Schema text failed: The dialect was not set.
Name and version of the database you are using:
MySQL 4.0.17-nt
I am doing an ant build within MyEclipse 3.8 which works fine when using a hibernate.properties file. When I use an xml file (hibernate.cfg.xml) I get the "Schema text failed: The dialect was not set" error. I don't know if this is a hibernate problem, a MyEclipse problem or an ant problem. Does the hibernate.cfg.xml file look correct for the "dialect"?
Tom K.
|
|