Store java.util.Calendar field into one column

Posted by Rasika on Stack Overflow See other posts from Stack Overflow or by Rasika
Published on 2010-03-03T16:40:54Z Indexed on 2010/04/04 14:03 UTC
Read the original article Hit count: 313

Filed under:
|
|

How to store java.util.Calendar field into one column with Datanucleus JDO. By default it is stored into two columns (millisecs, Timezone) with following JDO metadata.

field name="startDate" serialized="true" embedded="true" 
                                   persistence-modifier="persistent"

What need to be changed in metadata to store it into single column (Timestamp)?

Is it posible query (JDOQL) on calendar field when it is in two clumn?

© Stack Overflow or respective owner

Related posts about datanucleus

Related posts about jdo