Does anyone know why the following mapping entries generate different table column types? I usually write the mapping files by hand but I recently tried the jboss tools hibernate plugin for eclipse to generate the mapping files. The plugin puts a "column" element in the "property" element instead of making it an attribute.
This mapping entry creates a column of type tinyblob.
Code:
<property name="fileContent" type="binary" not-null="true" length="10485760">
<column name="FILE_CONTENT"></column>
</property>
This mapping entry creates a column of type mediumblob.
Code:
<property name="fileContent" column="FILE_CONTENT" type="binary" not-null="true" length="10485760" />
I'm using hibernate-core-3.3.2.GA, MySQL 5.0.51a, and MySQL5Dialect.