Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0.2
Mapping documents:
<hibernate-mapping package="database.hibernate">
<class name="Customer" table="lic_customer">
<id name="id" column="id" type="java.lang.Long">
<generator class="native"/>
</id>
<property name="RefId" column="refid" type="java.lang.String" unique="true" not-null="true" />
<property name="CustomerNumber" column="customernumber" type="java.lang.String" not-null="true" />
<property name="Name" column="name" type="java.lang.String" not-null="true" />
<property name="Street" column="street" type="java.lang.String" not-null="true" />
<property name="Zip" column="zip" type="java.lang.String" not-null="true" />
<property name="City" column="city" type="java.lang.String" not-null="true" />
<property name="State" column="state" type="java.lang.String" not-null="true" />
<property name="Country" column="country" type="java.lang.String" not-null="true" />
<property name="Telephone" column="telephone" type="java.lang.String" not-null="true" />
<property name="PublicKey" column="publickey" type="text" not-null="true" />
<property name="CryptKey" column="cryptkey" type="text" not-null="true" />
<property name="CRCCheck" column="crccheck" type="text" not-null="true" />
<set name="Contacts" inverse="true" cascade="all" >
<key column="customerid"/>
<one-to-many class="Contact"/>
</set>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
Name and version of the database you are using:
IBM DB2 8..1.2
The Hibernate Schema Export creates a CLOB with only 255 Characters.
How can i increase this value ?