-->
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: Handling large Strings with Hibernate
PostPosted: Wed Feb 06, 2008 6:47 am 
Newbie

Joined: Tue Feb 05, 2008 4:55 pm
Posts: 2
Location: Germany
We have a program that works with large sequences, i.e. more than 8000 characters. Now, the question is how to map it with Hibernate that it works on every supported database. Using MySQL for instance is no problem, because the MySQL supports VARCHARS up to 32000 characters. Therefore, it is possible to use primitive string mapping types. On the other hand with Oracle and other RDBMS it is not possible to use such strings. The question is, are there any default mapping methods in Hibernate to handle these large strings. I know, there are some workarounds converting a CLOB/BLOB into strings, but I do not want to use a user defined (mapping) type that possibly not works on every RDBMS.
Are there any other options?

Thanks in advance.


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.