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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Aug 23 14:41:32 BST 2012


Author: whalley
Date: Thu Aug 23 14:41:32 2012
New Revision: 1567

Log:
Adding DOI field

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 Aug 15 14:07:12 2012	(r1566)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java	Thu Aug 23 14:41:32 2012	(r1567)
@@ -45,6 +45,9 @@
     /** Title of the paper. */
     private String _title = "";
 
+    @Column(name="DOI", unique=false, nullable=true)
+    /** DOI of the paper/journal. */
+    private String _doi = "";
 
     @org.hibernate.annotations.CollectionOfElements
     @JoinTable(name="PaperExpts", joinColumns=@JoinColumn(name="PAPER_ID"))
@@ -517,6 +520,15 @@
         return this;
     }
 
+    /** Get paper doi */
+    public String getDOI() {
+        return _doi;
+    }
+    /** Set paper doi */
+    public Paper setDOI(String doi) {
+        _doi = doi;
+        return this;
+    }
 
 
     /** Get experiments */


More information about the HepData-svn mailing list