[
https://issues.apache.org/jira/browse/OPENJPA-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569033#comment-13569033
]
Pinaki Poddar commented on OPENJPA-2280:
----------------------------------------
The discipline with BigDecimal values should be as follows
1. The database column is defined with DECIMAL(p,s) where <p> is the precision
and <s> is the scale as defined in the @Column metadata
2. Irrespective of the scale of the value is set into a BigDecimal field in the
POJO x, the return value of the BigDecimal field always must be of the same
scale <s>
3. Rule #1 and #2 is ignored if the storeLargeNumberAsString property is set in
Database dictionary.
Do you agree?
> MappingTool ignores column precision / scale for some databases
> ---------------------------------------------------------------
>
> Key: OPENJPA-2280
> URL: https://issues.apache.org/jira/browse/OPENJPA-2280
> Project: OpenJPA
> Issue Type: Bug
> Components: tooling
> Affects Versions: 1.2.3, 2.3.0, 2.2.1
> Reporter: Rick Curtis
>
> This JIRA is the same issue as reported by OPENJPA-1224.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira