This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Sybase text column insert with Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply locked New topic
Author

Sybase text column insert with Hibernate

Balaji VR
Ranch Hand

Joined: Mar 22, 2006
Posts: 76
Hi,

I have a Sybase table that has a column of type TEXT.

What I am doing is that, I am reading characters from a file, convert them into String object and then insert into this column.
The value of the String gets into the TEXT column.

The String object (roughly 4K characters) gets inserted successfully into the column and when I do a select, i could see the characters correctly stored in the table's column.

But, when I try to insert a very big String(12MB file read), it gets stored as ??? into the table's column.

Im just using the session.save(wfit); to save my object to database.

Please help me.


Bala<br />SCJP 1.4 98%<br />SCBCD 1.3 -- 88%
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sybase text column insert with Hibernate