-->
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.  [ 3 posts ] 
Author Message
 Post subject: Column length mapping and oracle overflow
PostPosted: Wed Sep 09, 2009 4:23 am 
Newbie

Joined: Wed Sep 09, 2009 4:15 am
Posts: 14
Hello, first of all i'm very new of HB and i'm sorry for my poor english.
I have this trobule: In my application I'm using the tables mapping filled with column length property.
I would like to know what it is used for, because when i insert a new record with a bigger length i get an oracle error (too large field). Can i setup hibernate to truncate the entity string with a length bigger than the specified mapping column length?

Thank you very much.


Top
 Profile  
 
 Post subject: Re: Column length mapping and oracle overflow
PostPosted: Wed Sep 09, 2009 8:30 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Quote:
Can i setup hibernate to truncate the entity string


Better yet, why not do it programatically during a validation phase?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
 Post subject: Re: Column length mapping and oracle overflow
PostPosted: Wed Sep 09, 2009 8:35 am 
Newbie

Joined: Wed Sep 09, 2009 4:15 am
Posts: 14
Yes, i can do, but so I can not understand what this "length" property is used for...
If i do it programmatically i need to add all field lenghts to my code although in HB mapping there are these informations


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.