-->
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: Precision and Scale behaviour for Column annotation
PostPosted: Mon Apr 02, 2007 9:34 am 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
Hi,
Does Hibernate do any validation checking when the attributes precision and scale are set for the column annotation?
For example, suppose in my POJO, I have:

Code:
@Column(precision=10, scale=2)
public float getPension() {
return pension;
}



Does hibernate do any in memory checking on the precision and scale of pension or does this check only happen at the database?

If this check happens only at the database, what is the point of these annotations?
Is it just to update the DDL?

Comments appreciated

Kind Regards


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 4:26 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
yes
But you can use Hibernate Validator's @Digits annotations for in memory checking

_________________
Emmanuel


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.