-->
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: @Lob String -> Text (and not Longtext) in MySQL
PostPosted: Fri Jun 11, 2010 7:31 am 
Newbie

Joined: Sun Jun 17, 2007 7:04 am
Posts: 11
Hello,
I use Hibernate as persistence in Glassfish V3. When I annotate String properties as @Lob Hibernate creates "longtext" MySQL data type. I'd like to change this to the smaller "text" MySQL type... but not using the @Column annotation; I'd prefer to configure it via XML. What is the simplest way of doing it? Can I configure that mapping in the web application and/or in the main Hibernate engine installed in Glassfish?

Thanks for any directions,
Ignacio


Top
 Profile  
 
 Post subject: Re: @Lob String -> Text (and not Longtext) in MySQL
PostPosted: Tue Apr 26, 2016 12:14 am 
Newbie

Joined: Tue Apr 26, 2016 12:06 am
Posts: 3
@Column(columnDefinition="text")


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.