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 17:15 Go to next message
George Jackson is currently offline George Jackson
Messages: 6
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 {

@Lob
@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,

George
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 09:48 Go to previous message
James Sutherland is currently offline James Sutherland
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: Thu Jul 31 17:40:12 EDT 2014

Powered by FUDForum. Page generated in 0.01935 seconds