Hi,
I'm using mySQL 5.0 with hibernate 3. I want to store binary data in a mySQL 'longblob' data type. As far as I can see there is no hibermate mapping for this. For example, I might have a mapping file like this:
<class name="myClass" table="bin_data">
<id name="id" column="ID">
<generator class="native"/>
</id>
<property name="fileBlob" column="FILE" type="blob" />
</class>
Which will create for me a mySQL table with column called FILE of type blob. However, I want the column to be a longblob. How can I do this with Hibernate? Is there another 'type' I can use?
Thanks in advance,
Martin.
|