Hibernate version:3.0beta
Mapping documents:
<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping> <class name="de.xxx.XXXX" table="XXXXX"> <id name="id" column="id" type="long"> <generator class="increment"/> </id> <property name="valid" not-null="false" type="timestamp"/> <property name="stream" not-null="false" type="blob" insert="false"/> <property name="Info" column="info" not-null="false"/> </class> </hibernate-mapping>
hi,
i have the above hibernate-xml-file.
it works fine. but i have one problem:
<property name="stream" not-null="false" type="blob" insert="false"/>
i need something like:
<property name="stream" not-null="false" type="blob" insert="false" default="empty_blob()" />
how can i realize this? the dtd says, that there is no parameter "default" for property.
plz help me :-)
|