-->
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: Stored text format
PostPosted: Tue Dec 19, 2006 12:44 pm 
Newbie

Joined: Thu Dec 07, 2006 6:02 pm
Posts: 4
MYSQL, JBoss, Seam

Hallo,
in my application, I store a longer Text in the Database. But the formats like line breaks are lost. Is there a way to keep these formats.
Code:
@Column(length = 5000)
public String getContDescription() {
      return contDescription;
}


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 19, 2006 2:44 pm 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
I can't see why line breaks would be lost. How did you create the db schema? What is the type of the "contDescription" column?

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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.