-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: text mapping and DB2
PostPosted: Thu Apr 28, 2005 10:29 am 
Newbie

Joined: Thu Jan 13, 2005 4:06 am
Posts: 1
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 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.