db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (JDO-110) Change mapping of char fields
Date Sat, 22 Apr 2006 19:59:07 GMT
     [ http://issues.apache.org/jira/browse/JDO-110?page=all ]
Michael Bouschen reopened JDO-110:

> 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

> 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:
For more information on JIRA, see:

View raw message