HHH-6700 mysql test failures

This commit is contained in:
Strong Liu 2011-11-09 13:48:21 +08:00
parent 05b815c5f5
commit 5f494d4fca
5 changed files with 7 additions and 6 deletions

View File

@ -30,7 +30,7 @@
<class name="Node">
<id name="id">
<id name="id" length="16">
<generator class="uuid2"/>
</id>
<property name="name"/>

View File

@ -71,6 +71,7 @@ public abstract class AbstractEntityWithManyToManyTest extends BaseCoreFunctiona
}
isPlanVersioned = sessionFactory().getEntityPersister( Plan.class.getName() ).isVersioned();
isContractVersioned = sessionFactory().getEntityPersister( Contract.class.getName() ).isVersioned();
sessionFactory().getStatistics().clear();
}
@Test

View File

@ -117,14 +117,14 @@
<property name="length" column="flength"/>
</class>
<class name="TextHolder">
<class name="TextHolder" table="TEXT_HOLDER">
<id name="id" column="id">
<generator class="increment"/>
</id>
<property name="description" type="text" length="15000"/>
</class>
<class name="ImageHolder">
<class name="ImageHolder" table="IMAGE_HOLDER">
<id name="id" column="id">
<generator class="increment"/>
</id>

View File

@ -107,11 +107,11 @@ public class NativeSQLQueriesTest extends BaseCoreFunctionalTestCase {
}
protected String getDescriptionsSQL() {
return "select DESCRIPTION from TEXTHOLDER";
return "select DESCRIPTION from TEXT_HOLDER";
}
protected String getPhotosSQL() {
return "select PHOTO from IMAGEHOLDER";
return "select PHOTO from IMAGE_HOLDER";
}
@Test

View File

@ -9,7 +9,7 @@
<hibernate-mapping package="org.hibernate.test.tm">
<class entity-name="Item" table="Things">
<class entity-name="Item">
<id name="name" type="string"/>
<property name="description" type="string"/>
</class>