Axis.java

Go to the documentation of this file.
00001 package cedar.hepdata.model;
00002 
00003 import cedar.hepdata.util.*;
00004 import javax.persistence.*;
00005 
00015 @Entity
00016 @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
00017 @Table(name="Axes")
00018 public abstract class Axis extends Storeable {
00020     @Id @GeneratedValue(strategy=GenerationType.TABLE)
00021     @Column(name="AXIS_ID")
00022     private Long _id = null;
00023 
00025     @Column(name="Header", nullable=false)
00026     private String _header = "";
00027 
00029     @Column(name="Unit", nullable=false)
00030     @org.hibernate.annotations.Type(type="cedar.hepdata.db.UnitUserType")
00031     private Unit _unit = new Unit();
00032 
00033 
00035 
00036 
00038     public Axis() {}
00039 
00040     public Axis(String header) {
00041         this();
00042         setHeader(header);
00043     }
00044 
00045     public Axis(String header, Unit unit) {
00046         this(header);
00047         setUnit(unit);
00048     }
00049 
00050 
00052 
00053 
00055     public String getHeader() {
00056         return _header;
00057     }
00059     public Axis setHeader(String header) {
00060         _header = header;
00061         return this;
00062     }
00063 
00064 
00066     public Unit getUnit() {
00067         return _unit;
00068     }
00069 
00071     public Axis setUnit(Unit unit) {
00072         _unit = unit;
00073         return this;
00074     }
00075 
00076 
00078 
00079 
00081     public String toString() {
00082        return "";
00083     }
00084 
00085 }

Generated on Tue Apr 21 15:54:38 2009 for HepData object model by  doxygen 1.5.5