The following comment has been added to this issue:
Author: xfgdf
Created: Fri, 26 Sep 2003 5:27 AM
Body:
Sorry, wrong project (bug re-enter in Hibernate2)...
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HBI-12
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HBI-12
Summary: Length and precision of Numeric
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate 1.2
Assignee:
Reporter: xfgdf
Created: Fri, 26 Sep 2003 5:24 AM
Updated: Fri, 26 Sep 2003 5:24 AM
Environment: Hibernate 2.1 beta 3 (7.9.2003)
Description:
The default mapping of java.util.BigDecimal is the Decimal hibernate type, which is translate in most dialect in "NUMBER(19, $l)". This don't allow us to specify the length of the number, only is precision.
The main problem come from the default value of the length use is the Column.DEFAULT_PROPERTY_LENGTH=255. This make an invalid type because the precision can't be greater than the length (NUMERIC(19, 255)).
It would be great to have a different default value for the length (something like 2), and also to be able to specify the precision in the mapping file (may be by something like <property name="price" length="19,4" />).
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|