-->
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: Mapping string fields to longtext MySQL columns
PostPosted: Mon Oct 20, 2008 7:27 am 
Newbie

Joined: Mon Oct 20, 2008 6:26 am
Posts: 1
Hi All,

My apologies if this question has already been answered, but I have searched the forums and could not find a solution.

We have a hibernate mapping file with the definition:

<property name="script" type="text"/>

Our current underlying database is MySQL 5. What we want is to map this to a MySQL "longtext" type. What is the correct way to do this?

It will work by adding the 'length="2147483647" ' property to this definition, but then we have a MySQL specific solution in our generic definition file.


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.