-->
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: Help regarding Hibernate Truncation.....(Urgent)
PostPosted: Mon Dec 26, 2005 7:57 pm 
Newbie

Joined: Mon Dec 26, 2005 7:28 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Code between sessionFactory.openSession() and session.close():

When my hibernate is going to update my Object in the table it truncates the value automatically ...I am unable to understand what is the problem behind this...

The actual problem is .... I have one field of Properties in my Object say==> User . The properties contains comma seperated data ........when it is going for the first two times....mysql shows the correct data seperated by comma but for the third time...it is showing something like this --> 123456,4548798,12312... (the three dots in the end) and after additioning any other property ....no effect takes place....I have debugged my code and found that uptil the call to hibernate for updation..it is giving the hibernate the exact object with the correct number of properties (comma seperated in a correct ordeR)...but when hibernates updates that the above effect takes place...

Please help me out..

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 27, 2005 10:13 am 
Regular
Regular

Joined: Wed Dec 21, 2005 6:57 pm
Posts: 70
A bit more info would be good.

Does it get saved properly in the DB the first time, or is it just ok in the hibernate cache? Naturally, check that the DB field width is big enough. Turn sql logging on and see if it is Hibernate writing the truncated string, or if the DB is doing it somehow.


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.