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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Oct 23 14:40:43 BST 2014


Author: whalley
Date: Thu Oct 23 14:40:43 2014
New Revision: 1824

Log:
adding DataType to Dataset to be used in correltations etc.

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

Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java
==============================================================================
--- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java	Tue Oct 21 19:11:24 2014	(r1823)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java	Thu Oct 23 14:40:43 2014	(r1824)
@@ -30,6 +30,10 @@
     @Column(name="LocalId", nullable=false)
     private Integer _localId;
 
+     /** Type of dataset, normal , correlation, 3D etc. */
+     @Column(name="DataType", nullable=true, length=20)
+     private String _dataType;
+
     /** Searchable dataset properties. */
     @OneToMany(mappedBy="_dataset")
     @org.hibernate.annotations.Cascade(value={org.hibernate.annotations.CascadeType.ALL,
@@ -278,7 +282,16 @@
         return this;
     }
 
+    /** Get datatype. */
+    public String getDataType(){
+        return _dataType;
+    }
 
+    /** Set datatype. */
+    public Dataset setDataType(String datatype){
+        _dataType  =datatype;
+        return this;
+    }
 
     /** Get parent paper. */
     public Paper getPaper() {


More information about the HepData-svn mailing list