0

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?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Rasika
  • 1
  • 1

1 Answers1

0

Store it in 1 column and potentially lose the timezone, want that ? Metadata extension "calendar-one-column" set to "true" stores as 1 column (timestamp).

DataNucleus
  • 15,497
  • 3
  • 32
  • 37