[HepData-svn] r1675 - trunk/hepdata-model/src/main/java/cedar/hepdata/model

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Nov 13 20:06:14 GMT 2013


Author: watt
Date: Wed Nov 13 20:06:14 2013
New Revision: 1675

Log:
Added CDS ID

Modified:
   trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java

Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java
==============================================================================
--- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java	Wed Nov 13 20:02:34 2013	(r1674)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java	Wed Nov 13 20:06:14 2013	(r1675)
@@ -35,6 +35,10 @@
     private Long _inspireId = null;
 
 
+    @Column(name="CdsId", unique=false, nullable=true)
+    /** CERN Document Server publication identifier. */
+    private Long _cdsId = null;   
+
 
     @Column(name="RedId", unique=false, nullable=true)
     /** Durham reaction database legacy identifier. */
@@ -511,6 +515,22 @@
     }
 
 
+    /** Get method for CDS ID */
+    public Long getCdsId() {
+        return _cdsId;
+    }
+    /** Set method for CDS ID */
+    public Paper setCdsId(Long cdsId) {
+        _cdsId = cdsId;
+        return this;
+    }
+    /** Compatibility set method for CDS ID */
+    public Paper setCdsId(Integer cdsId) {
+        _cdsId = new Long(cdsId);
+        return this;
+    }
+
+
     /** Get method for reaction database ID */
     public Long getRedId() {
         return _redId;
@@ -821,6 +841,7 @@
         int code = 37;
         if (getSpiresId() != null) code ^= getSpiresId().hashCode();
         if (getInspireId() != null) code ^= getInspireId().hashCode();
+	if (getCdsId() != null) code ^= getCdsId().hashCode();
 
         if (getRedId() != null)    code ^= getRedId().hashCode();
         if (getTitle() != null)    code ^= getTitle().hashCode();


More information about the HepData-svn mailing list