Issue #176 fix PersistablePluginDataObject

Change-Id: I29f37b0fceb180eb0950ff1e00c44eb94b05f82e

Former-commit-id: 873ee3ed41 [formerly 3ed59f81ec] [formerly 20247d0d89] [formerly 6d901d27ae [formerly 20247d0d89 [formerly 34eb69e6ead3aa811c018e364517998d356e4feb]]]
Former-commit-id: 6d901d27ae
Former-commit-id: d4431a08dccab4217d79b8e75d636a66ad256b70 [formerly 22809228d6]
Former-commit-id: 2437d60929
This commit is contained in:
Ben Steffensmeier 2012-02-07 09:42:07 -06:00
parent e7ce35acd0
commit ae653bead2

View file

@ -23,14 +23,17 @@ import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.TimeZone; import java.util.TimeZone;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Inheritance; import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.InheritanceType;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import com.raytheon.uf.common.dataplugin.PluginDataObject; import com.raytheon.uf.common.dataplugin.PluginDataObject;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize; import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
/** /**
* Provides an abstract implementation of plugindataobject with clustered file * Provides an abstract implementation of plugindataobject with clustered file
@ -57,6 +60,11 @@ public abstract class PersistablePluginDataObject extends PluginDataObject
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Column
@XmlAttribute
@DynamicSerializeElement
private Integer hdfFileId;
/** /**
* Constructor * Constructor
*/ */
@ -76,17 +84,16 @@ public abstract class PersistablePluginDataObject extends PluginDataObject
* *
* @see com.raytheon.edex.plugin.IPersistable#getHdfFileId() * @see com.raytheon.edex.plugin.IPersistable#getHdfFileId()
*/ */
@Override
public Integer getHdfFileId() { public Integer getHdfFileId() {
return null; return hdfFileId;
} }
/** /**
* @param hdfFileId * @param hdfFileId
* the hdfFileId to set * the hdfFileId to set
*/ */
@Override
public void setHdfFileId(Integer hdfFileId) { public void setHdfFileId(Integer hdfFileId) {
this.hdfFileId = hdfFileId;
} }
/** /**