-->
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: Can i set scale with Wrapper classes for primitive types
PostPosted: Sun Aug 07, 2005 11:50 pm 
Regular
Regular

Joined: Tue Nov 09, 2004 5:15 pm
Posts: 100
I want to set "scale" for a Long attribute as follows:


@Column(name="PARAM", scale=12)
Long getParam() {
return param;
}

But schema export sets the default scale of 19.


Is that a bug? Could someone please help?

Thanks for any input in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 08, 2005 10:16 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is not a bug, scale and precision are a hint to Hibernate.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 9:41 pm 
Regular
Regular

Joined: Tue Nov 09, 2004 5:15 pm
Posts: 100
Thanks Emmanuel. Can you please tell me what should i do to set the scale of any column?

Thanks again!


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.