column « jdo « Java Enterprise Q&A





1. Store java.util.Calendar field into one column    stackoverflow.com

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" 
   ...

2. Datanucleus changing column names?    stackoverflow.com

I've got a two classes that look like this:

@PersistenceCapable(detachable="true")
@Inheritance(strategy=InheritanceStrategy.SUBCLASS_TABLE)
public abstract class BasicReference implements Serializable {

   private static final long serialVersionUID = 1L;

   @Persistent(column="last_modified")
   private Date ...