[
https://issues.apache.org/jira/browse/OFBIZ-3245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782140#action_12782140
]
Adrian Crum commented on OFBIZ-3245:
------------------------------------
Okay, how about a sql-object-type attribute? The current sql-type attribute
contains the type needed for a CREATE statement, and what I need is the Java
object type the database vendor uses to represent it.
For example, Derby uses BigDecimal for the numeric type, so it would look
something like:
{code}
<field-type-def type="numeric" sql-type="NUMERIC(20,0)"
sql-object-type="BigDecimal" java-type="Long"></field-type-def>
{code}
I could set it up as an optional attribute. In the absence of the
sql-object-type attribute, the java-type attribute will be used.
The duration type would look like:
{code}
<field-type-def type="duration" sql-type="NUMERIC(20,0)"
sql-object-type="BigDecimal" java-type="TimeDuration"></field-type-def>
{code}
What do you think?
> Sandbox: Integrating The New Conversion Framework Into The Entity Engine
> ------------------------------------------------------------------------
>
> Key: OFBIZ-3245
> URL: https://issues.apache.org/jira/browse/OFBIZ-3245
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Adrian Crum
> Assignee: Adrian Crum
> Priority: Minor
> Attachments: conversion.patch, conversion.patch
>
>
> This issue contains a patch intended for evaluation before it is committed.
> See comments for details.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.