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: format to specify LONGTEXT from mysql to hibernate seam
PostPosted: Mon Feb 01, 2010 12:54 pm 
Newbie

Joined: Tue Nov 15, 2005 7:20 am
Posts: 17
I've googled arround to get a BLOB specified with LONGTEXT though for some reason
I always get an error message during JBOSS upload (just verifying the DB:)
wrong column type note expected : LONGTEXT

what i'm I specifying :



Mysql:(5.1)
`note` LONGTEXT default NULL COMMENT 'no default site ',


hibernate -entity (annotation )

@Column(name="note", columnDefinition="LONGTEXT")
private String note;//blog


@Column(name="note", columnDefinition="LONGTEXT")
public String getNote() {return this.note;}





I tried alternatively adding @Lob and placed the @Column individualy and both on the definition as well as the getNote


I suspect someone who has done it can explain me immediatly

I seam to miss something and always get org.hibernate.HibernateException: Wrong column type: note, expected: LONGTEXT



as I change to MEDIUMTEXT or simply TEXT the error comment changed to expected: MEDIUMTEXT .....

in my googling arround I find that the problem is alreay very old (2005-2008) And was sopposed to be solved in older versions
of hibernate. Or better said the Hibernate-jboss-mysql combination. Can can anyone give me a bypass to store long.... very long text elements
in an hibernate data base. Text is the most simple item of a database (A for long term stable sollution is the essence of a database)



Is this problem solved in newer versions ? mySQL clearly is continuing the support for LONGTEXT 5.5 .....6
Hibernate ; Multiple newer versions of jboss and hibernate are produced and released There must be a solution or a bypass!!!!!

_________________
XML way to go


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.