-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from DiamondLightSource/I15_1-563
I'm merging now as I don't expect anyone else to chip in at this point. We'll see if it does the job, and if not we'll just have to make another version.
- Loading branch information
Showing
9 changed files
with
664 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/*- | ||
******************************************************************************* | ||
* Copyright (c) 2011, 2018 Diamond Light Source Ltd. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* See git history | ||
*******************************************************************************/ | ||
package uk.ac.diamond.ispyb.api; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder; | ||
|
||
public class PDB { | ||
private Long pdbId; | ||
private String name; | ||
private String contents; | ||
private String code; | ||
|
||
public Long getPdbId() { | ||
return pdbId; | ||
} | ||
|
||
public void setPdbId(Long pdbId) { | ||
this.pdbId = pdbId; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getContents() { | ||
return contents; | ||
} | ||
|
||
public void setContents(String contents) { | ||
this.contents = contents; | ||
} | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
|
||
public void setCode(String code) { | ||
this.code = code; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return ReflectionToStringBuilder.toString(this); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return HashCodeBuilder.reflectionHashCode(this); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object that) { | ||
return EqualsBuilder.reflectionEquals(this, that); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/*- | ||
******************************************************************************* | ||
* Copyright (c) 2011, 2018 Diamond Light Source Ltd. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* See git history | ||
*******************************************************************************/ | ||
package uk.ac.diamond.ispyb.api; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder; | ||
|
||
public class SampleType { | ||
private Long sampleTypeId; | ||
private Long componentId; | ||
private String name; | ||
private String comments; | ||
|
||
public Long getSampleTypeId() { | ||
return sampleTypeId; | ||
} | ||
|
||
public void setSampleTypeId(Long sampleTypeId) { | ||
this.sampleTypeId = sampleTypeId; | ||
} | ||
|
||
public Long getComponentId() { | ||
return componentId; | ||
} | ||
|
||
public void setComponentId(Long componentId) { | ||
this.componentId = componentId; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getComments() { | ||
return comments; | ||
} | ||
|
||
public void setComments(String comments) { | ||
this.comments = comments; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return ReflectionToStringBuilder.toString(this); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return HashCodeBuilder.reflectionHashCode(this); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object that) { | ||
return EqualsBuilder.reflectionEquals(this, that); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.