[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-1008) SchemaValidator mapping of double to SQL-Type DECIMAL with Precision and Scale

Diego Pires Plentz (JIRA) noreply at atlassian.com
Sat Sep 29 16:43:25 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Diego Pires Plentz resolved HHH-1008.
-------------------------------------

      Assignee: Diego Pires Plentz
    Resolution: Duplicate

> SchemaValidator mapping of double to SQL-Type DECIMAL with Precision and Scale
> ------------------------------------------------------------------------------
>
>                 Key: HHH-1008
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1008
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.1 beta 2
>         Environment: DB2, Win2k
>            Reporter: Phritz Grau
>            Assignee: Diego Pires Plentz
>            Priority: Minor
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> I am using the new SchemaValidator, it really is very useful. 1000x thanks.
> However we have one problem.
> Our tables contain a lot columns of SQL-Type DECIMAL with precision and scale.
> These are mapped to double or java.lang.Double and
> we specify the mapping like e.g.:
>         <property
>             name="doubleVal"
>             type="double">
>             <column name="dVal" precision="12" scale="6"/>
>         </property>
> Using the SchemaValidator results in an error:
> org.hibernate.HibernateException: Wrong column type: dVal, expected: double
> 	at org.hibernate.mapping.Table.validateColumns(Table.java:205)
> 	at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:938)
> Since there is not appropriate java type for sql type decimal,
> it would be very nice if the above error is omittet,
> when the mapping contains the correct precision and scale
> values.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list