-->
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.  [ 2 posts ] 
Author Message
 Post subject: SQL Generation for DB2 - Varchar size problem
PostPosted: Thu Jan 15, 2004 2:50 pm 
Newbie

Joined: Tue Aug 26, 2003 2:31 pm
Posts: 15
Location: San Diego, CA
The SQL Generated code is great for most of my tables, but some of the columns have very large text strings. The generation is creating them as varchar(16000000) which is well beyond the maximum for a db2 varchar.

Is there a way to tell hibernate to have the create script use a blob whenever it encounters a string too large for db2 varchar's to handle? For the mySQL generation, the sql code correctly converts large strings to the correct type.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 3:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Implement your own Dialect. Check the constructor of the exiting DB2Dialect and MySQLDialect on how to register the types to use.


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

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.