-->
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.  [ 6 posts ] 
Author Message
 Post subject: scale and precision don't work work ??
PostPosted: Tue May 03, 2005 5:26 am 
Regular
Regular

Joined: Mon Apr 25, 2005 5:36 am
Posts: 103
hi

scale and precision don't work work ??


Why am i oblige to put number(10,2) in the hbm.xml file and not use scale and precison field?


It seems that hibernate tools don't recognize this fields.


can you explain to me please.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 6:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
please provide examples of what does not work.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 8:45 am 
Regular
Regular

Joined: Mon Apr 25, 2005 5:36 am
Posts: 103
in fact I create in my database this:


NUMBER(7)


using tools, i have in the hbm.xml file

<property name="Prenom" type="java.lang.Integer">
<column name="PRENOM" scale="7" precision="0" not-null="false" sql-type="NUMBER" />
</property>


I don't understand why?



I have found a solution :

<property name="Prenom" type="java.lang.Integer">
<column name="PRENOM" not-null="false" sql-type="NUMBER(7)" />
</property>

but it 's boring


help me


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 12:33 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
that should be fixed in the cvs version

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 04, 2005 4:26 am 
Regular
Regular

Joined: Mon Apr 25, 2005 5:36 am
Posts: 103
max wrote:
that should be fixed in the cvs version




what is the cvs version?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 04, 2005 4:31 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the one located in cvs (http://www.hibernate.org/268.html)

_________________
Max
Don't forget to rate


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