[ http://issues.apache.org/jira/browse/JDO-110?page=all ]
     
Michael Bouschen closed JDO-110:
--------------------------------

    Fix Version: JDO 2 beta
     Resolution: Fixed

> Change mapping of char fields
> -----------------------------
>
>          Key: JDO-110
>          URL: http://issues.apache.org/jira/browse/JDO-110
>      Project: JDO
>         Type: Bug

>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Michael Watzek
>      Fix For: JDO 2 beta

>
> The mapping of character fields in pc classes 
> "PCPointSingleFieldPrimitiveChar", "PCPointSingleFieldCharacter", 
> "FieldsOfCharacter", "AllTypes" needs to be changed from CHAR(1) to INTEGER.
> The rationale is that instances of those classes have character values which 
> are initialized based on numerical values rather than character values, e.g. 
> "Character.MAX_VALUE", "Character.MIN_VALUE", or 
> "System.currentTimeMillis()%Character.MAX_VALUE". 
> For this reason, we decided to adapt the ORM metadata rather than to adapt 
> the schema: <field> elements corresponding to fields of type "char" or 
> "java.lang.Character" will have "jdbc-type" attributes, e.g.
>     <class name="PCPointSingleFieldPrimitivechar" 
> table="PCPointSingleFieldChar">
>       <field name="id" primary-key="true">
>         <column name="ID" jdbc-type="INTEGER"/>
>       </field>
>       ...
>     </class>

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

Reply via email to