Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » how to store a page of text as string in JPA 2.0(Need advice on storing long strings in JPA 2.0)
icon7.gif  how to store a page of text as string in JPA 2.0 [message #1021310] Tue, 19 March 2013 21:15 Go to next message
George Jackson is currently offline George JacksonFriend
Messages: 9
Registered: March 2013
Junior Member
Dear Eclipse Link Experts,

I am having difficulty storing a page of text using the following JPA 2.0 Eclipse Link annotation:

@Embeddable public class Hobbies implements Serializable {

@Column(name="DESCRIPTION", length=1024)
private String description;
public String getDescription() {
    return this.description;
    public void setDescription(String description) {
    return this.description;

Unfortunately, only the first line of the whole page of text has been stored even though the parameter passed consisted of the whole page of text.

Any idea on where the problem lies? I have done some quick searches but could not find a solution so far.

I am running Eclipse Link 2.4.1, Java 7 on Windows XP / 7 platform.

Many thanks,

Re: how to store a page of text as string in JPA 2.0 [message #1027035 is a reply to message #1021310] Tue, 26 March 2013 13:48 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Check the size of your column in the database, it is big enough to hold the whole page?

What database are you using, try a test only using JDBC, it could be a problem with your driver or database.

Ensure you are using binding, and include the log on finest.

James : Wiki : Book : Blog : Twitter
Previous Topic:Validate xml against multiple schema
Next Topic:[RESOLVED] How to Query "nextval('sequence_name');" in EclipseLink
Goto Forum:

Current Time: Sun May 27 19:51:31 GMT 2018

Powered by FUDForum. Page generated in 0.02196 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top